DX Unified Infrastructure Management

Expand all | Collapse all

LUA script assistance to take an NTEVL message and set the robot in it into maintenance for the time period.

  • 1.  LUA script assistance to take an NTEVL message and set the robot in it into maintenance for the time period.

    Posted Mar 01, 2016 02:49 PM

    Example of ntevl message:

    Application ASPServerReboot: username has disabled monitoring for server for 0 days 0 hours 20 minutes.

     

    1st need to strip out server name after "disabled monitoring for"

    Then find the hub it is in (we have 5 remote hubs so it could be any of them)  The ntevl will not be coming from the server to be placed into monitoring.

    Then convert days, hours, minutes into seconds

     

    Assuming we can set maint right from LUA instead of calling a restful webservice.

     

    There's also an ntevl for taking a server out of maint the message looks like:

    "Application ASPServerReboot: username has enabled monitoring for server"

     

    The in/out of maintenance has to come from the ntevl in our current setup, not a UMP request.

     

    Any help is appreciated.



  • 2.  Re: LUA script assistance to take an NTEVL message and set the robot in it into maintenance for the time period.

    Posted Aug 31, 2017 11:00 AM

    Perhaps Maintenance mode via nimalarm (version 2.91)  can help?

    With the probe_main_on implemented on your main hub your LUA script would only need to extract the servername and optionally the time to be set in maintenance (inyour example 20 minutes) and to generate a nimalarm like:

    nimalarm -l 1 "maint_on server time_ss"