Open Lprod opened 3 years ago
Please add "-vvvvvvvvvvvvvvvvvv" when you run the plugin, once when everything is fine, once when the database is offline/deleted and then post the resulting output here or mail it to gerhard.lausser@consol.de
I just reverse engeneered our problem. The real case is: We use the --name flag to specify a single databases with the "database-online" mode. If the specified database gets deleted the output is just a blank "ok".
I have the same problem with the database-backup-age mode. It's very easy to replicate, just run this command towards a real server with real credentials and type a name of a database that doesn't exist.
check_mssql_health --server asd --username asd --password asd --mode database-backup-age --name asd --warning 25 --commit
We are currently running a remote MSSQL monitoring with the check (check_mssql_health). Our database team noticed that this check does not notice when a database is offline or deleted. Although the check delivers a different output, it remains in the OK status and therefore does not send any notifications. Output if everything is ok: OK - Database is online and accepting connections
Output if database is offline / deleted: OK Is there a fix for this, if necessary, so that such cases are also recognized in the future and an alarm is generated?