2013-07-09 Sergio Martin <sergio.martin@artica.es>
* include/functions_graph.php: Fix the alerts status pie graph to make it more usefull * godmode/agentes/agent_wizard.snmp_interfaces_explorer.php: Comment code git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8500 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ba37e0195b
commit
dcf07af0a8
|
@ -1,3 +1,11 @@
|
|||
2013-07-09 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_graph.php: Fix the alerts status pie graph
|
||||
to make it more usefull
|
||||
|
||||
* godmode/agentes/agent_wizard.snmp_interfaces_explorer.php: Comment
|
||||
code
|
||||
|
||||
2013-07-09 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/styles/pandora.css
|
||||
|
|
|
@ -48,7 +48,7 @@ $create_modules = (int) get_parameter("create_modules", 0);
|
|||
$interfaces = array();
|
||||
|
||||
if ($snmpwalk) {
|
||||
|
||||
// OID Used is for SNMP MIB-2 Interfaces
|
||||
$snmpis = get_snmpwalk($ip_target, $snmp_version, $snmp_community, $snmp3_auth_user,
|
||||
$snmp3_security_level, $snmp3_auth_method, $snmp3_auth_pass,
|
||||
$snmp3_privacy_method, $snmp3_privacy_pass, 0, ".1.3.6.1.2.1.2", $tcp_port);
|
||||
|
|
|
@ -1355,14 +1355,14 @@ function graphic_agentaccess ($id_agent, $width, $height, $period = 0, $return =
|
|||
function graph_alert_status ($defined_alerts, $fired_alerts, $width = 300, $height = 200, $return = false) {
|
||||
global $config;
|
||||
|
||||
$data = array(__('Defined alerts') => $defined_alerts, __('Fired alerts') => $fired_alerts);
|
||||
$data = array(__('Not fired alerts') => $defined_alerts - $fired_alerts, __('Fired alerts') => $fired_alerts);
|
||||
$colors = array(COL_NORMAL, COL_ALERTFIRED);
|
||||
|
||||
$water_mark = array('file' => $config['homedir'] . "/images/logo_vertical_water.png",
|
||||
'url' => ui_get_full_url("/images/logo_vertical_water.png"));
|
||||
|
||||
$out = pie2d_graph($config['flash_charts'], $data, $width, $height, __("other"),
|
||||
'', $water_mark, $config['fontpath'], $config['font_size'], 1, "hidden", $colors);
|
||||
'', '', $config['fontpath'], $config['font_size'], 1, "hidden", $colors);
|
||||
|
||||
if ($return) {
|
||||
return $out;
|
||||
|
|
Loading…
Reference in New Issue