SQL Service errors after upgrading to 2014

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
msfhr
Posts: 14
Joined: Wed Aug 21, 2013 12:52 pm
Contact:

SQL Service errors after upgrading to 2014

Post by msfhr »

I am getting SQL Server check errors after upgrade to 2014. Error is pretty much the same for any SQL Server instance I have. Here's the one example.

***** Nagios XI Alert *****

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: SQL Server \__VIM_SQLEXP\__
Host: vcenter.comp.com
Address: 192.168.1.23
State: WARNING
Info:
MSSQL\: Error
Date/Time: 05/13/2014 11:18:40
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: SQL Service errors after upgrading to 2014

Post by lmiltchev »

Can you show the actual command that is run from the command line, along with the output of it? (hide sensitive info)
Be sure to check out our Knowledgebase for helpful articles and solutions!
msfhr
Posts: 14
Joined: Wed Aug 21, 2013 12:52 pm
Contact:

Re: SQL Service errors after upgrading to 2014

Post by msfhr »

lmiltchev wrote:Can you show the actual command that is run from the command line, along with the output of it? (hide sensitive info)
Don't know about command line as we are managing XI through web interface. This is the one that shows in "Monitor the service with this command... (Advanced users only)"
check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\\$$MICROSOFT##SSEE -d SHOWALL
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: SQL Service errors after upgrading to 2014

Post by abrist »

Can you run the same check with the verbose flag from the cli?

Code: Select all

check_nt -H <hostip> -s "<password>" -p 12489 -v SERVICESTATE -l MSSQL\\$$MICROSOFT##SSEE -d SHOWALL
And then again as verbose:

Code: Select all

check_nt -H <hostip> -vvv -s "<password>" -p 12489 -v SERVICESTATE -l MSSQL\\$$MICROSOFT##SSEE -d SHOWALL
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.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: SQL Service errors after upgrading to 2014

Post by snapon_admin »

I was getting the same thing today with a similar service, MSSQL$SCANMAIL. I think it might have something to do with the $ in the service name and the way it's commented out. In XI 2012, in order to include the $ in the service name being checked I had to add '\\$' to the command, like MSSQL\\$$SCANMAIL. After the upgrade, mine was doing the same thing as yours. Notice the service output from the email is MSSQL\: Error. The out put stops when it hits '\$'. I tried a couple of different options and the only one that made the output change back to OK was this:

Code: Select all

check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\$SCANMAIL -d SHOWALL!!!!!
I just used one \ before the $ and the service check went green again. The check still seems a bit different, though, and might not be accurate. This is what the output used to be:
MSSQL$SCANMAIL: Started
and this is what it is now:
OK: All services are in their appropriate state.
Sorry to hijack your thread, but I had a very similar issue and thought some additional info might help out.
msfhr
Posts: 14
Joined: Wed Aug 21, 2013 12:52 pm
Contact:

Re: SQL Service errors after upgrading to 2014

Post by msfhr »

abrist wrote:Can you run the same check with the verbose flag from the cli?

Code: Select all

check_nt -H <hostip> -s "<password>" -p 12489 -v SERVICESTATE -l MSSQL\\$$MICROSOFT##SSEE -d SHOWALL
And then again as verbose:

Code: Select all

check_nt -H <hostip> -vvv -s "<password>" -p 12489 -v SERVICESTATE -l MSSQL\\$$MICROSOFT##SSEE -d SHOWALL
Here it comes, I don't have password set for this server.

./check_nt -H 192.168.1.28 -p 12489 -v SERVICESTATE -l MSSQL\\$$MICROSOFT##SSEE -d SHOWALL
MSSQL\29698MICROSOFT##SSEE: Error

./check_nt -H 192.168.1.28 -vvv -p 12489 -v SERVICESTATE -l MSSQL\\$$MICROSOFT##SSEE -d SHOWALL
check_nt: Could not parse arguments
Usage:
check_nt -H host -v variable [-p port] [-w warning] [-c critical]

and here is Print Spooler example
./check_nt -H 192.168.1.28 -p 12489 -v SERVICESTATE -l Spooler -d SHOWALL
Spooler: Started
msfhr
Posts: 14
Joined: Wed Aug 21, 2013 12:52 pm
Contact:

Re: SQL Service errors after upgrading to 2014

Post by msfhr »

snapon_admin wrote:I was getting the same thing today with a similar service, MSSQL$SCANMAIL. I think it might have something to do with the $ in the service name and the way it's commented out. In XI 2012, in order to include the $ in the service name being checked I had to add '\\$' to the command, like MSSQL\\$$SCANMAIL. After the upgrade, mine was doing the same thing as yours. Notice the service output from the email is MSSQL\: Error. The out put stops when it hits '\$'. I tried a couple of different options and the only one that made the output change back to OK was this:

Code: Select all

check_xi_service_nsclient!!SERVICESTATE!-l MSSQL\$SCANMAIL -d SHOWALL!!!!!
I just used one \ before the $ and the service check went green again. The check still seems a bit different, though, and might not be accurate. This is what the output used to be:
MSSQL$SCANMAIL: Started
and this is what it is now:
OK: All services are in their appropriate state.
Sorry to hijack your thread, but I had a very similar issue and thought some additional info might help out.
Thanks snapon, that did it for me as well. I always thought that \\$ escape character was rather weird one, this one make more sense. Can Nagios people confirm that this is right escape character for version 2014?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: SQL Service errors after upgrading to 2014

Post by abrist »

Nick had done quite a bit of work to the MSSQL plugins, so that is a possibility. I will ask him later this week. Apologies though, these type of changes *should* have all been documented.
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