Page 1 of 1
XI Monitoring Specific Linux Service
Posted: Wed Oct 07, 2015 1:58 pm
by derekb
Hi there,
I'm having a total brain-fart here -- I've added a number of my Linux servers via the XI Linux Wizard, and all is fine. Now, I want to go back and monitor if a specific Linux service is running (Asterisk).
How would I go about monitoring a specific service like this? I could have swore I've done this before...
Re: XI Monitoring Specific Linux Service
Posted: Wed Oct 07, 2015 2:08 pm
by hsmith
You'll want to use the core config manager for this.
Configure --> Core Config Manager --> Monitoring --> Services.
You'll want to set up a command similar to the following:
2015-10-07 14_02_24-Nagios XI - Nagios Core Config Manager.png
You'll want to set the config name to whatever config your host is on. I obfuscated mine since it's a personal domain
This is checking for the SSH service. You can change that to whatever.
Alternatively, we have a section for more specialized Asterisk plugins on Nagios Exchange
Let us know if you have further questions.
Thanks!
Re: XI Monitoring Specific Linux Service
Posted: Wed Oct 07, 2015 2:40 pm
by derekb
My remote Linux machine that I want to monitor the service on does not seem to have 'check_init_service' in nrpe.cfg.
I don't see it in /usr/bin/local or /usr/lib/64/nagios/plugins either.
Re: XI Monitoring Specific Linux Service
Posted: Wed Oct 07, 2015 2:46 pm
by hsmith
What is in your /usr/local/nagios/etc/nrpe/common.cfg file?
Re: XI Monitoring Specific Linux Service
Posted: Wed Oct 07, 2015 2:48 pm
by derekb
hsmith wrote:What is in your /usr/local/nagios/etc/nrpe/common.cfg file?
I don't have have that directory.
[root@PBX1 plugins]# whereis nagios
nagios: /etc/nagios /usr/lib64/nagios
Re: XI Monitoring Specific Linux Service
Posted: Wed Oct 07, 2015 2:53 pm
by derekb
Just did a reinstall of the NRPE agent using the tarball from my XI server. I had previously installed NRPE via yum.
All looking good now! Thank you!
Re: XI Monitoring Specific Linux Service
Posted: Wed Oct 07, 2015 3:02 pm
by hsmith
Ahhh, the generally preferred method is definitely to install it from source. Our Yum repos could use a little work at the moment
I'll go ahead and close this one up.
Thanks for letting us know how you resolved the issue!