Page 1 of 1

After upgrade, SQL check fails

Posted: Wed May 14, 2014 11:32 am
by jpipitone
Prior to upgrading to Nagios 2014, I had a few SQL checks that verified the MSSQL service was started. These services are named instances, and are configured as follows:

check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\\$$INST01 -d SHOWALL!!!!!

and

check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\\$$INST02 -d SHOWALL!!!!!

After upgrading to NagiosXI 2014, NagiosXI reports:

Warning: MSSQL\: Error

Anything I'm missing?

Re: After upgrade, SQL check fails

Posted: Wed May 14, 2014 11:33 am
by jpipitone
I took out a slash and now the check works:

I changed this:

check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\\$$INST01 -d SHOWALL!!!!!

To this:

check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\$$INST01 -d SHOWALL!!!!!

Re: After upgrade, SQL check fails

Posted: Wed May 14, 2014 1:08 pm
by abrist
I think this was already reported once as well. I have a suspicion that the syntax was ninja edited by Nick (as he was the maintainer of the plugin and performed a number of changes in this version). I can ask him when he is back in the office later this week (if I can find him, he is a ninja after all).

Re: After upgrade, SQL check fails

Posted: Wed May 14, 2014 1:11 pm
by jpipitone
If you can spot the ninja when he gets back, let me know!

Thanks for the response - the check seem to be working now, just wanted to confirm that was the fix

Re: After upgrade, SQL check fails

Posted: Wed May 14, 2014 1:22 pm
by abrist
Will do.