Adding thresholds for created service checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
natedmac
Posts: 20
Joined: Mon Apr 26, 2010 4:52 pm

Adding thresholds for created service checks

Post 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
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Adding thresholds for created service checks

Post 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
natedmac
Posts: 20
Joined: Mon Apr 26, 2010 4:52 pm

Re: Adding thresholds for created service checks

Post 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.
Locked