* each monitor should return as details exactly one line per host, the first word being the host itself. This makes it easy for a gui to know wich host has what details
ie. for ping
x.x.x.x rtt=2ms loss=0% y.y.y.y rtt=3.5ms loss=20%
* list group should list all hostgroups if no argument given. To avoid issuing 1000 comands only to map hosts to groups.
* monitors, alterters etc. should be perl modules not external programs. To avoid forking 1000 processes each minute.
* the list opstatus should settle on value format (use or not quotes on non-numeric values - it would be easier for parsers not to use any quotes but to escape at least space so it could just look for \S+=\S+ and dequote %[0-9a-f]{2})
* cfg syntax in say bind9 format (to be able to write multiple things on one line) and with templates (it's not funny to write in some other language like m4 to avoid tons of copy/paste)
ie.
template std_alert {
period "wd {su-sa}" {
alertafter 5 5m;
alertnum 1;
alert mail.alert [EMAIL PROTECTED];
};
};template ping_check {
service ping {
monitor ping.monitor;
interval 1m;
include std_alert;
};
};watch xxx {
include ping_check;
};Btw, is there a php equivalent of Mon::Client? This time it has to be php (chroot enviroment).
danb
_______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
