$sth = $dbh->prepare("SELECT m.name FROM machine m, printers p " .
"WHERE (p.type = 'DORM' OR p.type ='CLUSTER') " .
- "AND p.mach_id = m.mach_id")
+ "AND p.mach_id = m.mach_id AND m.status=1")
|| exit $MR_DBMS_ERR;
$sth->execute || exit $MR_DBMS_ERR;
host_name $name
alias $name
address $name
+ contact_groups ops-printers
use generic-host
}
define hostgroup{
hostgroup_name printers
alias printers
- contact_groups ops-printers
END
print OUT "\tmembers\t\t";