Page 1 of 1

How to add a service to be monitored on a server

Posted: Wed Apr 06, 2011 8:36 pm
by razz0r
Hi All,

I have recommended & used Nagios for a number of years. Finally in my current contract I have done a full setup on Nagios XI.

I have added all of our hosts (Windows 2008 based) and just used the standard options for monitoring (CPU, hdd space, ram usage).

What I thought at the time was - I'll add in services to monitor on set servers at a later time. Thing like spooler service, some Citrix core services and also some application core services that should always be up & running.

However... I can't find a guide to show me how to do this. The initial wizard to monitor a host is awesome - and had a section for adding services that made the process very easy. However I can't find the same guide for simply adding a service to be monitored on a set host.

I have gotten as far as going in to the Nagios core config manager, monitoring\services - filtered for a host I want and clicked "add"
The common settings are ok... until I get to the check command.
It is not clear which command should be used or what arguments should be used if any.

Is there a wizard to add monitors to a host or something???

Any help would be great. Thanks. :?

Re: How to add a service to be monitored on a server

Posted: Thu Apr 07, 2011 9:42 am
by tonyyarusso
One possibility is to run through the wizard again, using the same settings for the host, and define anything you'd like to add. The other is to use the Core Config Manager as you described, although our documentation on that is a bit lacking currently. We have some new tutorials on that sort of thing that should be available "soon". One thing that should help is that if you run any check plugin on the command line with the -h switch it will give you a summary of what it does and an explanation of all available options and arguments, so you can use that to find which ones you want. You'll find them in the /usr/local/nagios/libexec/ directory on the XI server.

Re: How to add a service to be monitored on a server

Posted: Thu Apr 07, 2011 6:59 pm
by razz0r
Thank you for the quick reply!!

One question - re-run the wizard - would I have to delete to host first (Delete services tied to it first then the host as I understand it) ??

Thanks!!
(BW - 1250 a year - the group I am working for is buying it! hehe)

Re: How to add a service to be monitored on a server

Posted: Fri Apr 08, 2011 10:33 am
by rdedon
razz0r wrote:Thank you for the quick reply!!

One question - re-run the wizard - would I have to delete to host first (Delete services tied to it first then the host as I understand it) ??

Thanks!!
(BW - 1250 a year - the group I am working for is buying it! hehe)
Yes definitely delete or it could get messy very quickly. You will want to delete services first, then the host when all dependencies are gone and recheck to make sure they are all cleaned off. :-)