--On Tuesday, June 28, 2005 4:39 PM -0500 [EMAIL PROTECTED] wrote:
Can long lines in mon.cf be gracefully wrapped, as:
hostgroup testing_server_network 172.16.0.1 172.16.0.2 172.16.0.3 \
172.16.0.4 172.16.0.5
or does this mess things up?
Is this possible in mon.cf:
hostgroup "My Server Group"
watch "My Server Group"
...
From the man page:
Lines are parsed as they are read. Long lines may be continued by ending
them with a backslash ("\"). If a line is continued, then the backslash,
the trailing whitespace after the backslash, and the leading whitespace of
the following line are removed. The end result is assembled into a single
line.
Also from the man page:
Hostgroup entries begin with the keyword hostgroup, and are followed by a
hostgroup tag and one or more hostnames or IP addresses, separated by
whitespace. The hostgroup tag must be composed of alphanumeric characters,
a dash ("-"), a period ("."), or an underscore ("_"). Non-blank lines
following the first hostgroup line are interpreted as more hostnames. The
hostgroup definition ends with a blank line.
And:
Watch entries begin with a line that starts with the keyword watch,
followed by whitespace and a single word which normally refers to a
pre-defined hostgroup. If the second word is not recognized as a hostgroup
tag, a new hostgroup is created whose tag is that word, and that word is
its only member.
-David
David Nolan <*> [EMAIL PROTECTED]
curses: May you be forced to grep the termcap of an unclean yacc while
a herd of rogue emacs fsck your troff and vgrind your pathalias!
_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon