Page 1 of 1

Check_NCPA.PY

Posted: Fri Feb 27, 2015 3:20 pm
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

Re: Check_NCPA.PY

Posted: Mon Mar 02, 2015 10:41 am
by jdalrymple
Can you please post the exact input (obfuscate hostname and token only please) and output when you run your command?

Thanks

Re: Check_NCPA.PY

Posted: Tue Mar 03, 2015 2:11 pm
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

Re: Check_NCPA.PY

Posted: Tue Mar 03, 2015 3:22 pm
by jdalrymple
try:

Code: Select all

./check_ncpa.py -H xxx -t xxx -M service/wuauserv/running

Re: Check_NCPA.PY

Posted: Tue Mar 03, 2015 3:51 pm
by bakker_ca
Thank you that worked.
Brian