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
False Alert in Nagios XI
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: False Alert in Nagios XI
does this query return 2 sets of results?
Also, a stored procedure is usually passed with the -s
Code: Select all
exec dbo.SpaceUsage 'xxxxdb','primaryCode: Select all
-s, --storedproc Optional stored procedure to execute on MSSQL server.
-
akumarhe1868
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Re: False Alert in Nagios XI
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: False Alert in Nagios XI
Can you show what the output of this procedure is?
Code: Select all
exec dbo.SpaceUsage 'xxxxdb','primary'-
akumarhe1868
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Re: False Alert in Nagios XI
OK: Query duration=0.031215 seconds. Query result=59
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: False Alert in Nagios XI
Sorry, I meant from within MSSQLakumarhe1868 wrote:OK: Query duration=0.031215 seconds. Query result=59
I'm trying to verify that there is just a single row and single column returned.
-
akumarhe1868
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Re: False Alert in Nagios XI
MSSQL returned 0 on query execution.
kindly suggest how to avoid false alert.
Thanks,
Anand
kindly suggest how to avoid false alert.
Thanks,
Anand
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: False Alert in Nagios XI
It just return 0? I'm not familiar with what this stored procedure does.akumarhe1868 wrote:MSSQL returned 0 on query execution.
kindly suggest how to avoid false alert.
Thanks,
Anand
Can you get the same results with a standard query?