mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
removed snmp query from webui, changed and added echo if file is missing
This commit is contained in:
@@ -31,5 +31,8 @@ $unit_text = 'Percent';
|
||||
$ups_nut = rrd_name($device['hostname'], array('app', 'ups-nut', $app['app_id']));
|
||||
if (rrdtool_check_rrd_exists($ups_nut)) {
|
||||
$rrd_filename = $ups_nut;
|
||||
} else {
|
||||
echo "file missing: $rrd_filename";
|
||||
}
|
||||
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -31,5 +31,8 @@ $unit_text = 'Percent';
|
||||
$ups_nut = rrd_name($device['hostname'], array('app', 'ups-nut', $app['app_id']));
|
||||
if (rrdtool_check_rrd_exists($ups_nut)) {
|
||||
$rrd_filename = $ups_nut;
|
||||
} else {
|
||||
echo "file missing: $rrd_filename";
|
||||
}
|
||||
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -32,5 +32,8 @@ $unit_text = 'Minutes';
|
||||
$ups_nut = rrd_name($device['hostname'], array('app', 'ups-nut', $app['app_id']));
|
||||
if (rrdtool_check_rrd_exists($ups_nut)) {
|
||||
$rrd_filename = $ups_nut;
|
||||
} else {
|
||||
echo "file missing: $rrd_filename";
|
||||
}
|
||||
|
||||
require 'includes/graphs/generic_simplex.inc.php';
|
||||
|
@@ -48,7 +48,7 @@ if (rrdtool_check_rrd_exists($rrd_filename)) {
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo "file missing: ".$rrd_filename;
|
||||
echo "file missing: $rrd_filename";
|
||||
}
|
||||
|
||||
require 'includes/graphs/generic_v3_multiline_float.inc.php';
|
||||
|
Reference in New Issue
Block a user