Trivial cleanups

This commit is contained in:
Paul Gear
2015-08-16 22:07:48 +10:00
parent 161e2b82e1
commit 5d53761727
4 changed files with 12 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ function quote_sql_word($c)
}
$params = array(
$params = array(
$_POST['device_id'],
);

View File

@@ -1,6 +1,6 @@
<?php
/*
* LibreNMS device MIB association browser
* LibreNMS device MIB browser
*
* Copyright (c) 2015 Gear Consulting Pty Ltd <github@libertysys.com.au>
*

View File

@@ -739,6 +739,9 @@ function round_Nth($val = 0, $round_to) {
}
} // end round_Nth
/*
* FIXME: Dummy implementation
*/
function count_mib_mempools($device)
{
if ($device['os'] == 'ruckuswireless') {
@@ -747,6 +750,9 @@ function count_mib_mempools($device)
return 0;
}
/*
* FIXME: Dummy implementation
*/
function count_mib_processors($device)
{
if ($device['os'] == 'ruckuswireless') {
@@ -761,6 +767,7 @@ function count_mib_health($device)
}
/*
* FIXME: Dummy implementation
* @return true if there is a custom graph defined for this type, subtype, and device
*/
function is_custom_graph($type, $subtype, $device)
@@ -777,6 +784,7 @@ function is_custom_graph($type, $subtype, $device)
}
/*
* FIXME: Dummy implementation
* Set section/graph entries in $graph_enable for graphs specific to $os.
*/
function enable_os_graphs($os, &$graph_enable)

View File

@@ -904,7 +904,8 @@ function snmp_mib_parse($oid, $mib, $module, $mibdir=null) {
*/
function snmp_mib_walk($mib, $module, $mibdir=null) {
function snmp_mib_walk($mib, $module, $mibdir=null)
{
$cmd = 'snmptranslate -Ts';
$cmd .= mibdir($mibdir);
$cmd .= ' -m '.$module;