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.
Monitor ncpa_listener service on localhost
Re: Monitor ncpa_listener service on localhost
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:
If the ncpa_listener is not running, the check would exit with "2" exit code, and you will see an output as this one:
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
/usr/local/nagios/libexec/check_procs -C ncpa_listener -c 1:Code: Select all
PROCS CRITICAL: 0 processes with command name 'ncpa_listener' | procs=0;;1:;0;Code: Select all
PROCS OK: 1 process with command name 'ncpa_listener' | procs=1;;1:;0;[/codeBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitor ncpa_listener service on localhost
That did the trick. Thank you
Re: Monitor ncpa_listener service on localhost
I am glad I could help! 
Be sure to check out our Knowledgebase for helpful articles and solutions!