Ok, I'm completely new to nagios so trying to get it up and running has been difficult. I've just finished installing Nagios on A server (Running Linux Red Hat) and now I'm trying to figure out how to get nagios to check for different things such as disk and cpu and so forth. To sum that all up my question would be which file(s) do I edit if I want to monitor certain aspects of a local machine. What would be the proper example of how to add a check command to the file.
If you can help that would be greatly appreciated!
Nagios Service Monitoring Help!
Nagios Service Monitoring Help!
Last edited by Scuff on Tue Aug 12, 2014 3:32 pm, edited 1 time in total.
Re: Nagios Service Monitoring Help!
You are going to want to start at http://nagios.sourceforge.net/docs/3_0/quickstart.html and look at how to configure hosts and services. For now, skip notifications, escalations, hostgroups, templates, servicegroups, dependencies, event handlers and contacts.
Focus on getting Nagios to monitor what you want, then you can change it to monitor better, add notifications, and the rest.
Focus on getting Nagios to monitor what you want, then you can change it to monitor better, add notifications, and the rest.
Re: Nagios Service Monitoring Help!
Thanks for the reply!eloyd wrote:You are going to want to start at http://nagios.sourceforge.net/docs/3_0/quickstart.html and look at how to configure hosts and services. For now, skip notifications, escalations, hostgroups, templates, servicegroups, dependencies, event handlers and contacts.
Focus on getting Nagios to monitor what you want, then you can change it to monitor better, add notifications, and the rest.
Also, which file would I have to edit to add service definitions... I'm confused between localhost.cfg & commands.cfg or is it neither.
Re: Nagios Service Monitoring Help!
Look inside /usr/local/nagios/etc/nagios.cfg and read the comments near the localhost.cfg line. You'll see the differences more easily that way.
Re: Nagios Service Monitoring Help!
Thanks a bunch! Appreciate the help, things are getting much more clear now.eloyd wrote:Look inside /usr/local/nagios/etc/nagios.cfg and read the comments near the localhost.cfg line. You'll see the differences more easily that way.
Re: Nagios Service Monitoring Help!
No problem, and good luck!