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:
Adam Amstrong
2011-03-22 13:58:04 +00:00
parent 5d623e869a
commit 0c4e6b5dfc
+2 -2
View File
@@ -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";