How I may be sure monitoring database gets backed up?

How can I get notified if monitoring database automated backup gets too old?

Q: IPNetwork creates automated backup file (nms.gbak) for monitoring database. How can I get alerted if it stops updating it? A: You can check backup file(s) age by means offered below. However, you should also do your own monitoring database backups if possible. Note that automated backup is created only as additional precaution against losing data and saves backups to the same database directory. If you do not copy backup file(s) elsewhere on regular basis, and do not keep several copies of it, there are chances you lose the entire monitoring database if a hardware failure happens to computer running IPNetwork Monitor.

Configure script

Please download check-db-backup-age.zip script archive; unpack check-db-backup-age.txt from it, rename to check-db-backup-age.vbs and place into a directory of your choice (in the instructions below we assume it’s unpacked into C:\Scripts folder). The directory must be readable by account used by monitoring service (SYSTEM, by default). Create “Script or Program” monitor and set its parameters like below:

DB backup age checking script

“Arguments” field should contain full path name of the folder where IPNetwork creates its backups. If the path contains white space, wrap it in double quotes. By default, it’s the same folder used to keep DB file, i.e. “C:\ProgramData\IPNetwork Monitor\data”. Note: it’s extremely unsafe to store DB backups in the default folder, you are advised to choose a different folder, preferably on another disk (otherwise, if disk C: drive fails, you risk losing both DB and its backups). The script returns the age of most recent backup file in seconds. If this value is above 86400 (more than a day ago), you should check whether your monitoring service is healthy.
Related topics