Hi,
i use NagiosQL and i have this command to check if a service is down:
$USER1$/check_nt -t 90 -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
$ARG1$ SERVICESTATE -l "NtFrs" -d SHOWALL
Nagios go in a red state if service is down. Is it possible that i change the command that Nagios go in a red state if the service is up?
Regards
Dennis
Check Windows service if it is running
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Check Windows service if it is running
You would need to create a negated command such as the following, and change this service to use the new command with the same arguments
https://support.nagios.com/kb/article.p ... ce_stopped
Code: Select all
$USER1$/negate -s $USER1$/check_nt -t 90 -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
Re: Check Windows service if it is running
Works fine...thanks…...
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Check Windows service if it is running
Great!HaschkeD wrote:Works fine...thanks…...
Locking