Page 1 of 1

Service check MSSQL Instance

Posted: Wed Oct 30, 2019 4:18 am
by dazzlerellis
Hey does anyone know how to check service with service name similar to MSSQL$NAME
I am running command
$USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckServiceState -a ShowAll $ARG1$

I've read many posts abouts using double dollars, triple backslashes etc but they seem to be outdated as none seem to work with latest nsclient.

Many thanks this is the last check I need to solve to finish migration to XI, thanks in advance.

Re: Service check MSSQL Instance

Posted: Wed Oct 30, 2019 9:41 am
by scottwilkerson
Just tested to verify and this worked in $ARG1$

Code: Select all

MSSQL\$NAME

Re: Service check MSSQL Instance

Posted: Thu Oct 31, 2019 5:37 am
by dazzlerellis
Thanks sure I tried that but will test again once we are off the old monitoring.
Is the bug still around where the test fails but actual check works I wonder.

Re: Service check MSSQL Instance

Posted: Thu Oct 31, 2019 9:13 am
by scottwilkerson
dazzlerellis wrote:Thanks sure I tried that but will test again once we are off the old monitoring.
Is the bug still around where the test fails but actual check works I wonder.
I'm not sure what you are referring to.

Re: Service check MSSQL Instance

Posted: Wed Nov 06, 2019 2:28 pm
by benjaminsmith
Hello @dazzlerellis,

It looks like you were able to come to a resolution. Did you need any other assistance? When you have a moment let us know. Thanks.