Subversion-Projekte lars-tiefland.nagios-php

Revision

Revision 42 | Revision 45 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 42 Revision 44
Zeile 18... Zeile 18...
18
                    host_id = $id
18
                    host_id = $id
19
                AND
19
                AND
20
                    instance_id = " . $GLOBALS["cfg"]["instance"] . "
20
                    instance_id = " . $GLOBALS["cfg"]["instance"] . "
21
            ";
21
            ";
22
            $res = $GLOBALS["db"]->query($sql);
22
            $res = $GLOBALS["db"]->query($sql);
23
            $row = $res->fetchObject("host");
23
            $row = $res->fetchRow();
-
 
24
            //$this->host_id=$row["host_id"];
-
 
25
            foreach($row as $feld => $wert)
-
 
26
            {
-
 
27
                $this->$$feld = $wert;
-
 
28
            }
24
        }
29
        }
25
        public static function getStatusList()
30
        public static function getStatusList()
26
        {
31
        {
27
            $sql = "SELECT
32
            $sql = "SELECT
28
					count(current_state) AS anz
33
					count(current_state) AS anz