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
Check_NCPA.PY
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Check_NCPA.PY
Can you please post the exact input (obfuscate hostname and token only please) and output when you run your command?
Thanks
Thanks
Re: Check_NCPA.PY
The code is
The response I get is:
CRITICAL: Service wuauserv is running
The wuauserv is the windows update service.
Brian
Code: Select all
./check_ncpa.py -H xxx -t xxx -M service/wuauservCRITICAL: 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
try:
Code: Select all
./check_ncpa.py -H xxx -t xxx -M service/wuauserv/runningRe: Check_NCPA.PY
Thank you that worked.
Brian
Brian