mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Trivial cleanups
This commit is contained in:
@@ -34,7 +34,7 @@ function quote_sql_word($c)
|
||||
}
|
||||
|
||||
|
||||
$params = array(
|
||||
$params = array(
|
||||
$_POST['device_id'],
|
||||
);
|
||||
|
||||
|
||||
@@ -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>
|
||||
*
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user