mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* remove quotes from snmp result #6239 * add some spaces
This commit is contained in:
committed by
Neil Lathwood
parent
5d659a1b68
commit
359d5004f2
@@ -7,6 +7,7 @@ $name = 'ntp-client';
|
||||
$app_id = $app['app_id'];
|
||||
$oid = '.1.3.6.1.4.1.8072.1.3.2.3.1.2.10.110.116.112.45.99.108.105.101.110.116';
|
||||
$ntpclient = snmp_get($device, $oid, '-Oqv');
|
||||
$ntpclient = str_replace('"', '', $ntpclient);
|
||||
update_application($app, $ntpclient);
|
||||
|
||||
echo ' '.$name;
|
||||
|
||||
@@ -7,6 +7,7 @@ $name = 'ntp-server';
|
||||
$app_id = $app['app_id'];
|
||||
$oid = '.1.3.6.1.4.1.8072.1.3.2.3.1.2.10.110.116.112.45.115.101.114.118.101.114';
|
||||
$ntpserver_data = snmp_get($device, $oid, '-Oqv');
|
||||
$ntpserver_data = str_replace('"', '', $ntpserver_data);
|
||||
update_application($app, $ntpserver_data);
|
||||
list ($stratum, $offset, $frequency, $jitter, $noise, $stability, $uptime, $buffer_recv, $buffer_free, $buffer_used, $packets_drop, $packets_ignore, $packets_recv, $packets_sent) = explode("\n", $ntpserver_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user