mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
add toner discovery for more hp models, patch by Paul Gear
git-svn-id: http://www.observium.org/svn/observer/trunk@1949 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -9,6 +9,9 @@ if ($config['enable_printers'])
|
||||
if ($device['os_group'] == 'printer')
|
||||
{
|
||||
$oids = trim(snmp_walk($device, "SNMPv2-SMI::mib-2.43.12.1.1.2.1 ", "-OsqnU"));
|
||||
if (!$oids) {
|
||||
$oids = trim(snmp_walk($device, "SNMPv2-SMI::mib-2.43.11.1.1.2.1 ", "-OsqnU"));
|
||||
}
|
||||
if ($debug) { echo($oids."\n"); }
|
||||
if ($oids) echo("Jetdirect ");
|
||||
foreach (explode("\n", $oids) as $data)
|
||||
@@ -59,4 +62,4 @@ if ($config['enable_printers'])
|
||||
unset($valid_toner); echo("\n");
|
||||
|
||||
} # if ($config['enable_printers'])
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user