On Thu, Nov 03, 2005 at 12:12:00PM -0500, Bill wrote:
> 
> I have two questions:
> 
>  I am monitoring from a bunch of systems and would love to have a way
> to have the ALERT on my mail alerts have something defined before or
> after it I can set from the mon.cf file.

Quick clip from the Mon man page:

     As  with  monitor programs, alert programs are invoked with environment
     variables defined by the user in the service definition, in addition to
     the following which are explicitly set by the server:

Here's an example from one of my configs:

    service freespace
    description Is there 5GB free? Enough inodes?
    depend SELF:ping
    MIBDIRS=/usr/local/share/snmp/local-mibs:/usr/local/share/snmp/mibs
    interval 7m
    monitor netappfree.monitor

In this case, the monitor script won't work properly without MIBDIRS
defined.  You can use this feature to pass environment vars into your
script, so the same alert script could take different actions or send
different messages based on the contents of an environment var.

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to