#13258 permisions PM for server graphs

This commit is contained in:
Jonathan 2024-04-15 12:23:55 +02:00
parent 354fa324d8
commit 890af1270c

View File

@ -81,6 +81,9 @@ function pandora_realtime_graphs()
$table->style = [];
$table->data = [];
$graph = get_parameter('graph', 'snmp_interface');
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
$graph = get_parameter('graph', 'cpu_load');
$graph_fields['cpu_load'] = __('%s Server CPU', get_product_name());
$graph_fields['pending_packets'] = __(
'Pending packages from %s Server',
@ -102,9 +105,10 @@ function pandora_realtime_graphs()
'%s Server load',
get_product_name()
);
}
$graph_fields['snmp_interface'] = __('SNMP Interface throughput');
$graph = get_parameter('graph', 'cpu_load');
$refresh = get_parameter('refresh', '1000');
if ($graph != 'snmp_module') {