In this post, I will show how I manage my Nagios server configuration file. So, it will be easier to understand and make to neat and clean. Of course, take little bit more time but believe me it’s worth it to do so.
Before begin, I assume that you already installed Nagios server.
This is my current configuration tree…
On the etc folder it contains main configuration files with some subdrirectories
On the computer folder, I put all my host configuration
On the objects folder, I put all nagios relatives configurations files : commands, contact, time, etc
As I said, it is the way I setup but you can put anywhere and anyway you want it as long as you give correct path on nagios.cfg configuration file
Therefore, open the nagios configuration file,
On that, happy wheels demo we have tell where are located our configurations files. On my side, on location /usr/local/nagios/etc/ I created a folder called :
Computer : to put all my hosts (server) that I would like to monitor
Router : All the routers that I want to monitor
Others : All other stuff that I want to monitor such as Facebook and Google web server …hihiihi 🙂
And the list can go as you want ….
Therefore my configuration file look like :
Feel free to ask if you have any question
Disclaimer: All work shared in this post is property of IT Secure Net