Nagios Service Monitoring Help!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Scuff
Posts: 3
Joined: Tue Aug 12, 2014 1:56 pm

Nagios Service Monitoring Help!

Post 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!
Last edited by Scuff on Tue Aug 12, 2014 3:32 pm, edited 1 time in total.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios Service Monitoring Help!

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Scuff
Posts: 3
Joined: Tue Aug 12, 2014 1:56 pm

Re: Nagios Service Monitoring Help!

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios Service Monitoring Help!

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Scuff
Posts: 3
Joined: Tue Aug 12, 2014 1:56 pm

Re: Nagios Service Monitoring Help!

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios Service Monitoring Help!

Post by eloyd »

No problem, and good luck!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Locked