jlocante

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

Discussion created by jlocante on Mar 1, 2016
Latest reply on Aug 31, 2017 by chrlu01

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.

Outcomes