mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
toner graphing
git-svn-id: http://www.observium.org/svn/observer/trunk@1016 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -32,6 +32,7 @@ if ($device['os'] == "dell-laser")
|
||||
$descr = str_replace('"','',snmp_get($device, $descr_oid, "-Oqv"));
|
||||
$current = snmp_get($device, $toner_oid, "-Oqv");
|
||||
$capacity = snmp_get($device, $capacity_oid, "-Oqv");
|
||||
$current = $current / $capacity * 100;
|
||||
$type = "dell-laser";
|
||||
echo discover_toner($device, $toner_oid, $index, $type, $descr, $capacity, $current);
|
||||
$toner_exists[$type][$index] = 1;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if ($config['show_printers'])
|
||||
if ($config['enable_printers'])
|
||||
{
|
||||
$query = "SELECT * FROM toner WHERE device_id = '" . $device['device_id'] . "'";
|
||||
$toner_data = mysql_query($query);
|
||||
|
||||
Reference in New Issue
Block a user