Hi all !!,
When I use a list of host in the hostgroup entries, mon does not call
the alert script that I wrote, it only works when I put only a single
host.
It is strange, because I see messages in the logs, so mon is catching
the events, but does not call the alert script.
Please Help me,
any suggests are welcome.
Bellow is my mon.cf.
Thanks in advance,
Rafael Alfaro.
Omnilife Independent Distributor.
"People taking care of people".
/**************************************************************************/
mon -v
$Id: mon 1.27 Sat, 08 Sep 2001 09:42:05 -0400 trockij $
$ProjectVersion: mon-0-99-2.6 $
/************************************************************************/
/var/log/messages
May 25 01:30:33 cachux mon[8181]: failure for servers ping.monitor
1148542233 192.168.1.5
May 25 01:30:45 cachux mon[8181]: failure for servers ping.monitor
1148542245 192.168.1.6
/********************************************************************************/
mon.cf
#
# Very simple mon.cf file
#
# mon.cf,v 1.1 2001/01/20 01:05:43 achim Exp
cfbasedir = /etc/mon
pidfile = /var/run/mon.pid
statedir = /var/lib/mon/state.d
logdir = /var/lib/mon/log.d
dtlogfile = /var/lib/mon/log.d/downtime.log
alertdir = /usr/lib/mon/alert.d
mondir = /usr/lib/mon/mon.d
maxprocs = 20
histlength = 100
#randstart = 60s
authtype = pam
userfile = /etc/mon/userfile
#
# define groups of hosts to monitor
#
hostgroup servers 192.168.1.6 192.168.1.5
watch servers
service ping.monitor
interval 1s
monitor ping.monitor
period wd {Mon-Sun}
alert sms2.alert
alertevery 10s
numalerts 1
upalert sms2.alert
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon