Script to unlock database and relaunch netXMS if it crashes?

Started by agfjpcs, November 23, 2016, 07:30:31 AM

Previous topic - Next topic

agfjpcs

I've had NetXMS core crash on me once so far and it won't restart because the database is locked, this requires running "C:\NetXMS\bin\nxdbmgr.exe check" but that requires manually answering yes and then later confirming to save changes

Is there a parameter to automate this, so it automatically force unlocks the database and commits changes. That way I can write a simple .bat script to run and check if netXMS is not running and do the above
Because we don't use netXMS constantly we can't really afford for it to crash and nobody is aware for several hours (or days if its a weekend) and we lose a huge amount of logging during that period. Hence the need for an automated script to get it up and running again as quickly as possible

multix


adimitrov

i have a simple script to run nxdbmgr check and "nxdbmgr check -f" is doing the job. I am using ubuntu as a host.

Best regards,
Adrian