Monitor ncpa_listener service on localhost

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jvaira
Posts: 59
Joined: Tue Dec 22, 2015 7:40 pm

Monitor ncpa_listener service on localhost

Post by jvaira »

Hello,
I am trying to find a way to monitor the ncpa_listener service running on localhost. I saw the check_xi_service_status command but that only seems to apply to specific services.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor ncpa_listener service on localhost

Post by lmiltchev »

It seems like you are talking about a Nagios XI server on which you would like to monitor the ncpa_listener service, correct? You could use a command as this one:

Code: Select all

/usr/local/nagios/libexec/check_procs -C ncpa_listener -c 1:
If the ncpa_listener is not running, the check would exit with "2" exit code, and you will see an output as this one:

Code: Select all

PROCS CRITICAL: 0 processes with command name 'ncpa_listener' | procs=0;;1:;0;
If the service is running, the check would exit with "0" exit code, and you will see an output as this one:

Code: Select all

PROCS OK: 1 process with command name 'ncpa_listener' | procs=1;;1:;0;[/code
Be sure to check out our Knowledgebase for helpful articles and solutions!
jvaira
Posts: 59
Joined: Tue Dec 22, 2015 7:40 pm

Re: Monitor ncpa_listener service on localhost

Post by jvaira »

That did the trick. Thank you
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor ncpa_listener service on localhost

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked