Good morning,
all.
I was curious if anyone had any thoughts on
the matter below? Again, to summarize, we are unable to pass options in
the Mon configuration file to alerts. I do appreciate your time on the
matter.
Chris
Stringer
From: Chris Stringer
Sent: Tue 8/29/2006 1:18 PM
To: mon@linux.kernel.org
Subject: Unable to pass options in config file.
Hello, all.
We have multiple locations with server
pairs who check on themselves as well as each other, and also a virtual
"primary" system. The scripts that we have written request that
the server to be checked be identified via an option, such as
"./DHCPMonitor.alert -q primary." Is it possible to pass options to a
called alert within the mon.m4 configuration?
An example of what we're seeing is as
follows:
(From the mon.m4 file)
service
DHCP
interval 1m
monitor DHCPMonitor.monitor -s primary
description Is the DHCP service running on the primary server?
period _STANDARD_TIME_
startupalert trap.alert mainmonitor
alert trap.alert mainmonitor
alert DHCPMonitor.alert -q primary
upalert trap.alert mainmonitor
interval 1m
monitor DHCPMonitor.monitor -s primary
description Is the DHCP service running on the primary server?
period _STANDARD_TIME_
startupalert trap.alert mainmonitor
alert trap.alert mainmonitor
alert DHCPMonitor.alert -q primary
upalert trap.alert mainmonitor
When options are passed to the monitor,
everything works as intended. This behavior is limited to passing options
to the alert.
I'd appreciate your time and thoughts on
the matter.
Chris
Stringer
_______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon