How to get servicestate ok if the service is not running
Posted: Tue Aug 16, 2011 9:51 am
Hi people
I need to check a service, but I need get a OK state if the service is stopped.
For instance, I have the service "DPS" running on two servers, but one is started and the other one is stopped.
I need to get the service stopped as OK state
Anyone know how can I get this?
I´m using this command:
check_nt -H $HOSTADDRESS$ -p $PORT -v -d SHOWALL -l "DPS"
thanks
I need to check a service, but I need get a OK state if the service is stopped.
For instance, I have the service "DPS" running on two servers, but one is started and the other one is stopped.
I need to get the service stopped as OK state
Anyone know how can I get this?
I´m using this command:
check_nt -H $HOSTADDRESS$ -p $PORT -v -d SHOWALL -l "DPS"
thanks