fix poller breaking on down device, add airport description and image, make zywall and 3com images transparent

git-svn-id: http://www.observium.org/svn/observer/trunk@1347 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-13 00:07:48 +00:00
parent 66c9047207
commit 12c561e73c
5 changed files with 4 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
html/images/os/airport.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -97,6 +97,9 @@ $config['os']['powerconnect']['text'] = "Dell PowerConnect";
$config['os']['powerconnect']['ifname'] = 1;
$config['os']['powerconnect']['type'] = "network";
$config['os']['airport']['type'] = "network";
$config['os']['airport']['text'] = "Apple AirPort";
$config['os']['windows']['text'] = "Microsoft Windows";
$config['os']['windows']['ifname'] = 1;

View File

@@ -86,7 +86,7 @@ while ($device = mysql_fetch_array($device_query)) {
mysql_query("UPDATE `devices` SET `status` = '".$status."' WHERE `device_id` = '".$device['device_id']."'");
mysql_query("INSERT INTO alerts (importance, device_id, message) VALUES ('0', '" . $device['device_id'] . "', 'Device is " .($status == '1' ? 'up' : 'down') . "')");
log_event('Device status changed to ' . ($status == '1' ? 'Up' : 'Down'), $device['device_id'], ($status == '1' ? 'up' : 'down'));
alert($device, "Device ".($status == '1' ? 'Up' : 'Down').": " . $device['hostname'], "Device ".($status == '1' ? 'up' : 'down').": " . $device['hostname'] . " at " . date($config['timestamp_format']));
notify($device, "Device ".($status == '1' ? 'Up' : 'Down').": " . $device['hostname'], "Device ".($status == '1' ? 'up' : 'down').": " . $device['hostname'] . " at " . date($config['timestamp_format']));
}
if ($status == "1")