I'm trying to get a warning for a server restart. I've found another post that had a suggested answer but I can't get it to work properly. The suggestion was: module_begin module_name Reboot Windows module_type generic_data_inc module_exec wmic os get lastbootuptime | head -2 | tail -1 module_min_critical -1 module_max_critical 0.1 module_end But that seems to always return 0 even after several reboots. The "wmic os get lastbootuptime" does work and returns a value that looks like this: LastBootUpTime 20171210151531.489509-360 This is clearly a date but the Lastboot time string seems to be in there too. Maybe that's causing a problem? I know the agent can extract and send this data because I can use the generic data module to grab it and send it. Is there any way to filter out that LastBootUpTime string? Bill
It looks like windows creates an even 6009 on boot in the event log.. Is there a way to get an alert when that pops up? and if so how would it get reset back to green or normal? Bill
