On Thu, 3 Nov 2005 13:10:18 -0500 Ed Ravin <[EMAIL PROTECTED]> spake:
> 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. Yeah, I was hoping that there was already someway to do it without creating another alert program - I loath re-inventing the wheel so to speak. But have no problem doing so if it has not been done. I don't think that which you speak of is in there - so I will just make a new mail alert. Thanks! > > _______________________________________________ > mon mailing list > mon@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/mon -- Bill Chmura Director of Internet Technology Explosivo ITG Wolcott, CT p: 860.621.8693 e: [EMAIL PROTECTED] w. http://www.explosivo.com _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon