print OUT "# This file is automatically generated by Moira. Do not edit.\n";
$sth = $dbh->prepare("SELECT m.name FROM machine m, imembers i " .
"WHERE i.list_id = " . $dbh->quote($root_list_id) .
- "AND i.member_type = 'MACHINE' " .
+ "AND i.member_type = 'MACHINE' AND m.status = 1 " .
"AND i.member_id = m.mach_id AND i.direct = 1 ORDER BY m.name")
|| exit $MR_DBMS_ERR;
$sth->execute;
host_name $name
alias $name
address $name
+ contact_groups colo,dost
use generic-host
}
define service{
host_name $name
- contact_groups ops
+ contact_groups colo
use ping-service
}
define hostescalation{
host_name $name
- contact_groups ops,dost
+ contact_groups colo,dost-mail
first_notification 2
last_notification 0
notification_interval 0
define serviceescalation{
host_name $name
- contact_groups ops,dost
+ contact_groups colo,dost-mail
service_description PING
first_notification 2
last_notification 0
define hostgroup{
hostgroup_name colo-hosts
alias colo-hosts
- contact_groups dost
END
print OUT "\tmembers\t\t\t";