NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Schedule Maintenance with a script  (Read 422 times)


  • Newbie
  • *
  • Posts: 44
    • View Profile
Schedule Maintenance with a script
« on: October 20, 2018, 12:13:24 am »

Is there a way to schedule maintenance on a node from a script (or another automated way to schedule maintenance)?

I want to automate putting the node into maintenance when a process has finished and closed, reboot the node, and then come out of maintenance an hour later. I can do everything I want except get the node out of maintenance.

Thank you


Tatjana Dubrovica

  • Global Moderator
  • Full Member
  • *****
  • Posts: 225
    • View Profile
Re: Schedule Maintenance with a script
« Reply #1 on: October 22, 2018, 02:44:56 pm »

The only option I see is to set custom attributes with maintenance entrance time on EnterMaintenance($node) function execution. Create a script that will go through all nodes every minute and will check the custom attribute with maintenance start and will initiate maintenance leave in case if the note is in maintenance more than an hour.