Forum Discussion

mnagel's avatar
mnagel
Icon for Professor rankProfessor
9 years ago

event handlers

In Nagios, there is a concept of an event handler that can run to try to fix problems (e.g., restart a service, remove old files, etc.).  I see no similar capability in LM and it is of course something customers want to see happen.  For example, I just deployed a custom DS for someone to check for too many files in a share, indicating a service problem.  Once I implemented that, the next question was "Can you restart the service when that goes into warning?"  I see no facility for this in LM, but perhaps a custom alert could be used to trigger the behavior.  If I used that approach, I would insert a custom HTTP alert into the escalation chain earlier on to give the problem a chance to be corrected, then I will have to create a secure REST API server to accept those and trigger the correct behavior.  So in theory it could be done (if I am not missing something), but it feels like using a screwdriver to hammer in a nail.

Thanks,

Mark