One of the counter-intuitive gotchas of mon, but mentioned in the man page:
Hostgroup Entries
[snip] Non-blank lines following the first hostgroup line are interpreted as
more hostnames. The hostgroup defi�nition ends with a blank line.
I've found that lines that begin with # are ignored, but not considered
blank so you need to add a blank line after your hostgroup entry:
hostgroup servergrp raven
watch servergrp
service ping
[...]
Regards,
Owen Crow
Systems Programmer (Unix)
BMC Software, Inc.
-----Original Message-----
From: Drew J. Como [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 9:03 AM
To: 'mon mailing list'
Subject: Problem starting mon
All,
I am having a problem starting mon. I think I may have
something wrong inside of the config file, but I am not
sure.
Here is a snippet of the config file:
#
# group definitions (hostnames or IP addresses)
#
hostgroup servergrp raven
#
watch servergrp
service ping
description ping servergrp
interval 5m
monitor ping.monitor
period wd {Mon-Sun} hr {12am-11:59pm}
alert mail.alert [EMAIL PROTECTED]
alertevery 1h
When I try to run mon, I get the following error:
Warning: hostgroup servergrp has no watch assigned to it!
Hmmm... I see a watch, why doesn't mon??
Thanks :-)
============================================
Drew J. Como Phone: 631-434-6600
Systems Administrator Fax: 631-434-7800
[EMAIL PROTECTED] Web: www.bascom.com
Bascom Global Internet Services, Inc.
--------------------------------------------
"When quality is the goal,
winning is guaranteed."