|
From: | Martin Pala |
Subject: | Re: [monit-dev] Feature suggestion: SNMP support in Monit |
Date: | Sun, 4 Sep 2011 16:08:40 +0200 |
Hi Lior, thank you for explaining the plan, we see the point and undestand that better SNMP support can be useful in SNMP-oriented environments. At this point however, we prefer not to integrate Monit with Net-SNMP - our approach is to keep Monit simple with minimum dependencies on 3rd party libraries, so if everything fail, monit will keep running and will be able to report and fix problems. To provide support for integrating monit with other systems (like SNMP), we plan to add general framework for custom actions, so it will be possible to use plugins like sending SNMP trap, SMS gateway plugin, tex-to-speach, etc. This way the plugins will be isolated and if there will be some bug let's say in Net-SNMP, it won't make Monit vulnerable nor crash it. The user will setup the action like this: set action snmptrap "/usr/bin/snmptrap <options> <agent> <trap parameters>" set action say "/usr/bin/say $MONIT_SERVICE $MONIT_EVENT $MONIT_ACTION" and the custom action can be used in the testing rules like this: if failed … then restart, snmptrap, say # note: this will restart the service, send SNMP trap and say loud what happened The Monit MIB based OID for the given event will be available for the plugin in the environment variable like $MONIT_OID. Best regards, Martin On Sep 4, 2011, at 11:46 AM, Lior Okman wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |