Page 1 of 1
NagiosXI - Checking specific ports.
Posted: Tue Nov 22, 2011 1:44 pm
by epx998
I am running a proof of concept instance for NagiosXI before we decide to purchase the licenses and I have a couple questions;
1. In the NRPE linux host wizard, I see a limited number of additional process fields that can be entered, is there a way to add more than just what has an open field?
2. Can process options be specifics, if one process is running multiple instances and has a different option defined for each instance?
Thanks for any information.
Cheers!
Re: NagiosXI - Checking specific ports.
Posted: Tue Nov 22, 2011 3:00 pm
by lmiltchev
1.You can run the Linux Monitoring Wizard, fill in all of the available fields under "Processes" and then rerun the wizard (and add more processes). The key is NOT to change the name of the host. The wizard will keep the old services and will add the new ones.
2. You can monitor multiple instances of a process if you can somehow ID this instance (in theory anyways). You can search the Nagios Exchange for plugins that can provide you with this functionality. I was able to find only some plugins for Windows, but not for Linux:
http://exchange.nagios.org/directory/Pl ... /Processes
Can you give us a specific example of what you would like to accomplish?
Re: NagiosXI - Checking specific ports.
Posted: Tue Nov 22, 2011 5:19 pm
by epx998
Thanks for the quick response.
Here is an example of what I am trying to do;
myprocess /usr/local/myapp/blah/conf
myprocess /usr/local/myapp/blah2/conf
Basically, we will have multiple instances of the same binary specifying paths to different conf files. We want to monitor each process seperately, but will Nagios just see it as one process?
Re: NagiosXI - Checking specific ports.
Posted: Wed Nov 23, 2011 2:34 pm
by nscott
epx,
Unfortunately the wizard will not behave the way you describe. However, that doesn't mean Nagios can't do it. What you can do is use some plugin found on the exchange (a quick search for check_proc yielded
http://exchange.nagios.org/directory/Pl ... ep/details ) and use that to monitor your process. Its supposed to be a drop in replacement for the older check_proc.
So, to sum it up, that's not available in the wizard, but is definitely doable by using a plugin, it will take a little configuration. Consult the following docs for help on setting up additional plugins:
http://assets.nagios.com/downloads/nagi ... lugins.pdf
And if you're using NRPE consult page 13 of this doc:
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
Re: NagiosXI - Checking specific ports.
Posted: Wed Nov 23, 2011 11:59 pm
by epx998
Found out the guys who configured NRPE previously customized nrpe.cfg quite a bit. The wizards dn't even work. I am having to manually change all the arguments myself. I found that chec_procs will do what I need it too. Not sure I will be able to add any third party plugins. I will look at the ones you linked, thanks for the help.