Check_NCPA.PY

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bakker_ca
Posts: 5
Joined: Tue Jan 27, 2015 3:22 pm

Check_NCPA.PY

Post by bakker_ca »

Hello,

I am new to nagios core (4.0.8) and I have following several forums to get it working on Ubuntu 14.04. I am using Check_ncpa.py to actively monitor a few servers for testing and I was able to get it to work. The only issue I have is monitoring MS windows services. The service always shows as critical, whether it is running or not. I tested with the command below, both with the service running or not. It properly reports the service status but it will shows as critical.

./check_ncpa.py -H xxx -t xxx -M service/servicename

Does anybody know why it does that? Is there a way to fix it? I only want it to be critical if the service is not running.

Brian
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Check_NCPA.PY

Post by jdalrymple »

Can you please post the exact input (obfuscate hostname and token only please) and output when you run your command?

Thanks
bakker_ca
Posts: 5
Joined: Tue Jan 27, 2015 3:22 pm

Re: Check_NCPA.PY

Post by bakker_ca »

The code is

Code: Select all

./check_ncpa.py -H xxx -t xxx -M service/wuauserv
The response I get is:
CRITICAL: Service wuauserv is running

The wuauserv is the windows update service.
Brian
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Check_NCPA.PY

Post by jdalrymple »

try:

Code: Select all

./check_ncpa.py -H xxx -t xxx -M service/wuauserv/running
bakker_ca
Posts: 5
Joined: Tue Jan 27, 2015 3:22 pm

Re: Check_NCPA.PY

Post by bakker_ca »

Thank you that worked.
Brian
Locked