]> andersk Git - moira.git/commitdiff
Only active hosts, please.
authorzacheiss <zacheiss>
Fri, 17 Aug 2007 15:37:30 +0000 (15:37 +0000)
committerzacheiss <zacheiss>
Fri, 17 Aug 2007 15:37:30 +0000 (15:37 +0000)
gen/nagios-colo.gen

index 2c9780fe5a46b92fb92919c453ecb0bbe371fa81..1cc10fe689828524c994538cea701da64bf33174 100755 (executable)
@@ -26,7 +26,7 @@ while (($root_list_id, $hostname) = $sth0->fetchrow_array) {
     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;
This page took 0.038573 seconds and 5 git commands to generate.