On Mon, 8 Apr 2002, SXren Neigaard wrote:
> I have started mon with './mon -f -c mon.cf', and it is running. If I do a
> './clients/moncmd -s localhost list state', I get this:
>
> scheduler running
> 220 list state completed
"list state" tells you if the scheduler is running or not.
"list opstatus" shows you the state of the watches and services.
> That looks ok, but I never get any alarms. I have attached my mon.cf file, I
> have no telnet running on this machine, so should that not give me an error?
> service telnet
> monitor telnet.monitor
> allow_empty_group
> period wd {Mon-Fri} hr {7am-10pm}
> alertevery 1h
> alertafter 2 30m
> alert file.alert /home/mobile/test.alert
> alert mail.alert [EMAIL PROTECTED]
there is no "interval" in the service, so it never gets scheduled, thus,
it never even gets the chance to fail.
do something like this:
service telnet
monitor telnet.monitor
interval 5m