Page 1 of 1
False Alert in Nagios XI
Posted: Tue Oct 09, 2018 1:16 am
by akumarhe1868
Hi All,
I am receiving False alert in Nagios XI as below which is set to warning 75 on Query execution using MSSQL Query wizard.
WARNING: Query result 9 was higher than Query warning threshold 75.
Below is the command used:
--username xxxxxxxx --password "xxxxxx" --database master --port 1433 --query "exec dbo.SpaceUsage 'xxxxdb','primary'" -W 75 -C 90
Can anyone help me to correct the issue of false alert?
Much Appreciated.
Thanks,
Anand
Re: False Alert in Nagios XI
Posted: Tue Oct 09, 2018 6:59 am
by scottwilkerson
does this query return 2 sets of results?
Code: Select all
exec dbo.SpaceUsage 'xxxxdb','primary
Also, a stored procedure is usually passed with the -s
Code: Select all
-s, --storedproc Optional stored procedure to execute on MSSQL server.
Re: False Alert in Nagios XI
Posted: Tue Oct 09, 2018 9:18 am
by akumarhe1868
No, only one result comes for the query.
Do you want to add -s to the query along with -w -c ? if yes please tell me where this could be added.
Thanks,
Anand
Re: False Alert in Nagios XI
Posted: Tue Oct 09, 2018 9:23 am
by scottwilkerson
Can you show what the output of this procedure is?
Code: Select all
exec dbo.SpaceUsage 'xxxxdb','primary'
Re: False Alert in Nagios XI
Posted: Tue Oct 09, 2018 10:00 am
by akumarhe1868
OK: Query duration=0.031215 seconds. Query result=59
Re: False Alert in Nagios XI
Posted: Tue Oct 09, 2018 10:19 am
by scottwilkerson
akumarhe1868 wrote:OK: Query duration=0.031215 seconds. Query result=59
Sorry, I meant from within MSSQL
I'm trying to verify that there is just a single row and single column returned.
Re: False Alert in Nagios XI
Posted: Wed Oct 10, 2018 3:45 am
by akumarhe1868
MSSQL returned 0 on query execution.
kindly suggest how to avoid false alert.
Thanks,
Anand
Re: False Alert in Nagios XI
Posted: Wed Oct 10, 2018 7:08 am
by scottwilkerson
akumarhe1868 wrote:MSSQL returned 0 on query execution.
kindly suggest how to avoid false alert.
Thanks,
Anand
It just return 0? I'm not familiar with what this stored procedure does.
Can you get the same results with a standard query?