MSSQL Monitor (null) after password reset

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jeffersjw
Posts: 32
Joined: Tue Aug 27, 2013 9:29 am

MSSQL Monitor (null) after password reset

Post by jeffersjw »

I changed the SA password on a MSSQL Server monitor and it is coming up as (null) even after recreating it several times. The SA password works and the monitors look the same as existing servers that work. The instance is local.

Here is an example:

check_xi_mssql_server!-U 'sa' -P '*********' -p 1433 --averagewait --warning 20 --critical 30

Any help appreciated. Thanks.
jeffersjw
Posts: 32
Joined: Tue Aug 27, 2013 9:29 am

Re: MSSQL Monitor (null) after password reset

Post by jeffersjw »

I had a special character in the password and it seems that Nagios saw it as a variable. Changing it resolved the issue.

The character was a $
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: MSSQL Monitor (null) after password reset

Post by tmcdonald »

Yea, you need to properly escape characters when dealing with just about anything on Linux. For dollar signs I believe the proper escape is \\$$
Former Nagios employee
Locked