XI Monitoring Specific Linux Service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

XI Monitoring Specific Linux Service

Post 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...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: XI Monitoring Specific Linux Service

Post 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!
You do not have the required permissions to view the files attached to this post.
Former Nagios Employee.
me.
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: XI Monitoring Specific Linux Service

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: XI Monitoring Specific Linux Service

Post by hsmith »

What is in your /usr/local/nagios/etc/nrpe/common.cfg file?
Former Nagios Employee.
me.
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: XI Monitoring Specific Linux Service

Post 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
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: XI Monitoring Specific Linux Service

Post 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!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: XI Monitoring Specific Linux Service

Post 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!
Former Nagios Employee.
me.
Locked