Page 1 of 1

Nagios Service Monitoring Help!

Posted: Tue Aug 12, 2014 3:00 pm
by Scuff
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!

Re: Nagios Service Monitoring Help!

Posted: Tue Aug 12, 2014 3:28 pm
by eloyd
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.

Re: Nagios Service Monitoring Help!

Posted: Wed Aug 13, 2014 2:46 pm
by Scuff
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.
Thanks for the reply!

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!

Posted: Wed Aug 13, 2014 3:45 pm
by eloyd
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!

Posted: Thu Aug 14, 2014 10:48 am
by Scuff
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.
Thanks a bunch! Appreciate the help, things are getting much more clear now. :D

Re: Nagios Service Monitoring Help!

Posted: Thu Aug 14, 2014 10:53 am
by eloyd
No problem, and good luck!