After upgrade, SQL check fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

After upgrade, SQL check fails

Post 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?
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: After upgrade, SQL check fails

Post 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!!!!!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: After upgrade, SQL check fails

Post 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).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: After upgrade, SQL check fails

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: After upgrade, SQL check fails

Post by abrist »

Will do.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked