mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
75d4da325a
* add nfs-shared.inc.php * add nfs poller * polling now works * add nfs.inc.php page * mount options works now * format cleanup * add some missing items to the stats * commit work from last night so I can swap over to ldap * add gauge support * save the OS type for it * more work on NFS stuff * more nfs work * display cleanup some * more nfs work * update docs for NFS * add nfs_server_rpc * style fix * add snmprec file * more test stuff * data cleanup * style cleanup * more style fix * another style fix * add deleted_at * add client_rpc_info_calls * more test tweaks * more tweaks * set two items as gauges that should be gauges * convert a few more things from counters to gauges * a few more tweaks for NFSv4
41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
<?php
|
|
|
|
// use the default if not set
|
|
if (! isset($vars['nfs_os'])) {
|
|
$vars['nfs_os'] = '';
|
|
}
|
|
|
|
include 'includes/nfs-shared.inc.php';
|
|
|
|
$nfs_graph_name = 'client_rpc_info';
|
|
$name = 'nfs_' . $nfs_graph_name;
|
|
$app_id = $app['app_id'];
|
|
$unit_text = 'per second';
|
|
$colours = 'psychedelic';
|
|
$dostack = 0;
|
|
$printtotal = 1;
|
|
$addarea = 0;
|
|
$transparency = 0;
|
|
$float_precision = 3;
|
|
|
|
// if we don't have a OS specific graph set, use the default
|
|
if (! isset($nfs_graphs[$nfs_graph_name][$vars['nfs_os']])) {
|
|
$vars['nfs_os'] = '';
|
|
}
|
|
|
|
$rrd_list = [];
|
|
foreach ($nfs_graphs[$nfs_graph_name][$vars['nfs_os']] as $stat => $descr) {
|
|
$filename = $filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, $stat]);
|
|
if (Rrd::checkRrdExists($filename)) {
|
|
$rrd_list[] = [
|
|
'filename' => $filename,
|
|
'descr' => $descr,
|
|
'ds' => 'data',
|
|
];
|
|
}
|
|
}
|
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id]);
|
|
|
|
require 'includes/html/graphs/generic_multi_line.inc.php';
|