mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
fix toner detection. sid3windr failure count decremented by 1.
git-svn-id: http://www.observium.org/svn/observer/trunk@1956 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -19,10 +19,10 @@ if ($config['enable_printers'])
|
||||
$data = trim($data);
|
||||
if ($data)
|
||||
{
|
||||
list($oid,$kind) = explode(" ", $data);
|
||||
list($oid,$role) = explode(" ", $data);
|
||||
$split_oid = explode('.',$oid);
|
||||
$index = $split_oid[count($split_oid)-1];
|
||||
if ($kind == 1)
|
||||
if (is_numeric($role))
|
||||
{
|
||||
$toner_oid = ".1.3.6.1.2.1.43.11.1.1.9.1.$index";
|
||||
$descr_oid = ".1.3.6.1.2.1.43.11.1.1.6.1.$index";
|
||||
|
||||
Reference in New Issue
Block a user