Page 1 of 1

Adding thresholds for created service checks

Posted: Fri Aug 27, 2010 2:47 pm
by natedmac
Hello,

I have created a new check using the check_mssql_health downloaded here. http://exchange.nagios.org/directory/Pl ... th/details
However i cannot for the life of me figure out how to add the warning/critical thresholds to this command. I am assuming that I can pass it is as a $ARG$ but not sure since I am not seeing anything really clear in the documentation of it.

IF any of you have some insight that would be great.

The command view is $USER1$/check_mssql_health --hostname=$HOSTADDRESS$ --username=$ARG1$ --password=$ARG2$ --mode=$ARG3$
Image

Re: Adding thresholds for created service checks

Posted: Fri Aug 27, 2010 3:42 pm
by mmestnik
These should have been quoted, notice the use of \'s:

Code: Select all

$USER1$/check_mssql_health --hostname='$HOSTADDRESS$' --username='$ARG1$' --password='$ARG2$' --mode='$ARG3$'
Since they are not you only need to use a space in $ARG1$, like so:

Code: Select all

mmestnik --optionb=37 --optionc=34
The options for check_mssql_health can be found by running the command like this:

Code: Select all

check_mssql_health --help

Re: Adding thresholds for created service checks

Posted: Tue Aug 31, 2010 4:17 pm
by natedmac
Thank you, I didnt notice or see that the check-commands there had a help. I will review that and go from there. Thank you again.