2013-03-19 Ramon Novoa <rnovoa@artica.es>

* godmode/servers/modificar_server.php: Added an option to reset
	  counts.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2013-03-19 18:14:25 +00:00
parent 8c07c49770
commit 8fbb6963dd
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-03-19 Ramon Novoa <rnovoa@artica.es>
* godmode/servers/modificar_server.php: Added an option to reset
counts.
2013-03-19 Ramon Novoa <rnovoa@artica.es>
* extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,

View File

@ -61,6 +61,11 @@ else {
db_process_sql ("UPDATE tagente_estado SET last_error=0 WHERE last_error=1");
}
// Move SNMP modules back to the enterprise server
if (isset($_GET["server_reset_counts"])) {
db_process_sql ("UPDATE tagente SET update_module_count=1, update_alert_count=1");
}
if (isset ($_GET["delete"])) {
$id_server = get_parameter_get ("server_del");
@ -168,7 +173,12 @@ else {
if (check_acl ($config["id_user"], 0, "PM")) {
$data[8] = '';
if ($server['type'] == 'enterprise snmp') {
if ($server['type'] == 'data') {
$data[8] .= '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_reset_counts='.$server["id_server"].'">';
$data[8] .= html_print_image ('images/target.png', true,
array('title' => __('Reset module status and fired alert counts')));
$data[8] .= '</a>&nbsp;&nbsp;';
} else if ($server['type'] == 'enterprise snmp') {
$data[8] .= '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_reset_snmp_enterprise='.$server["id_server"].'">';
$data[8] .= html_print_image ('images/target.png', true,
array('title' => __('Claim back SNMP modules')));