mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use data_update instead of rrd_update/rrd_create and influx_update Centralize rrd file check so we can check against a remote rrdcached server too Use rrd_name() to generate rrd file names
16 lines
676 B
PHP
16 lines
676 B
PHP
<?php
|
|
|
|
if (is_numeric($vars['plugin'])) {
|
|
$mplug = dbFetchRow('SELECT * FROM `munin_plugins` AS M, `devices` AS D WHERE `mplug_id` = ? AND D.device_id = M.device_id ', array($vars['plugin']));
|
|
}
|
|
else {
|
|
$mplug = dbFetchRow('SELECT * FROM `munin_plugins` AS M, `devices` AS D WHERE M.`device_id` = ? AND `mplug_type` = ? AND D.device_id = M.device_id', array($device['device_id'], $vars['plugin']));
|
|
}
|
|
|
|
if (is_numeric($mplug['device_id']) && ($auth || device_permitted($mplug['device_id']))) {
|
|
$device = &$mplug;
|
|
$title = generate_device_link($device);
|
|
$title .= ' :: Plugin :: '.$mplug['mplug_type'].' - '.$mplug['mplug_title'];
|
|
$auth = true;
|
|
}
|