Trouble with check_mssql
Posted: Mon May 18, 2020 1:11 pm
Running directly on my xi host -
1) Since the row count is 1, should this be showing as OK?
2) Running check command from XI GUI, I get this -
Is the check running properly at all? Is it just Check command that is not working?
This check is showing green in XI but should be in critical state.
Code: Select all
php /usr/local/nagios/libexec/check_mssql -H 10.50.103.33 -U nagios -P password -d database -q "SELECT COUNT(*) FROM database.dbo.AuctionHouses WHERE (APN_ID IS NULL OR FTNI_Site_ID IS NULL) AND ApplicationStep > 0 AND AuctionHouseID >= 6284" -wrc 1 -crc 1
OK: Query duration=0.035825 seconds. Query result=1|query_duration=0.035825s;; 'computed0'=1;
2) Running check command from XI GUI, I get this -
Code: Select all
php /usr/local/nagios/libexec/check_mssql -H 10.50.103.33 -U nagios -P password-d database -q "SELECT COUNT(*) FROM database.dbo.AuctionHouses WHERE (APN_ID IS NULL OR FTNI_Site_ID IS NULL) AND ApplicationStep > 0 AND AuctionHouseID >= 6284" -wrc 1 -crc 1
CRITICAL: Could not execute the Query.This check is showing green in XI but should be in critical state.