mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow the powerdns App to be set via the unix agent. Uses the agent in https://github.com/librenms/librenms-agent/pull/16
This commit is contained in:
@@ -6,7 +6,12 @@ $options = '-O qv';
|
||||
$mib = 'NET-SNMP-EXTEND-MIB';
|
||||
$oid = 'nsExtendOutputFull.8.112.111.119.101.114.100.110.115';
|
||||
|
||||
$powerdns = snmp_get($device, $oid, $options, $mib);
|
||||
if ($agent_data['app']['powerdns']) {
|
||||
$powerdns = $agent_data['app']['powerdns'];
|
||||
}
|
||||
else {
|
||||
$powerdns = snmp_get($device, $oid, $options, $mib);
|
||||
}
|
||||
|
||||
echo ' powerdns';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user