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:
Mark Schouten
2015-11-23 14:12:46 +01:00
parent 5f4acdc64e
commit 91b1f28fb5
2 changed files with 8 additions and 2 deletions

View File

@@ -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';