Log Growth check_mssql_database.py

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Log Growth check_mssql_database.py

Post by lpereira »

hello everyone. We have a few log growths alerts, and notified the DBA's. they checked and reduced the logs, so the nagios check should back to normal. however the counter still in critical.

I would need to know what parameters are being considered in order to get the result. the alert says "CRITICAL: Log Growths is 38.0" where this 38 comes from?.

i checked the .py file as well but the query result acording to the DBA team is empty.

Can i have some clarification about what and how this growth is being monitored?

thanks in advance.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Log Growth check_mssql_database.py

Post by mbellerue »

Hello,

Log Growths is a counter in SQL Server. It counts the number of times a transaction log has grown since the database has been online. To my knowledge, that counter does not reset unless you restart SQL Server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Re: Log Growth check_mssql_database.py

Post by lpereira »

so, the only way to get rid of the critical is increasing the thresholds?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Log Growth check_mssql_database.py

Post by tgriep »

The plugin does store temporary files in the /tmp folder.
Try removing the files starting with mssql-* from that folder and see if the plugin returns the changed value.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Re: Log Growth check_mssql_database.py

Post by lpereira »

tgriep wrote:The plugin does store temporary files in the /tmp folder.
Try removing the files starting with mssql-* from that folder and see if the plugin returns the changed value.
Unfurtunatelly it does not do the trick. i have figured out the correct DB query, and it actually returns 38 which is bigger than the ones we have configured.

i think that the only way to get rid of the critical is modifiyng the thresholds or restarting the sql services.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Log Growth check_mssql_database.py

Post by lmiltchev »

Either method should work fine - increasing the thresholds in your command or restarting the server. Let us know if you have any further questions or it is OK to close this topic. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Re: Log Growth check_mssql_database.py

Post by lpereira »

thanks you can close the tkt.
Locked