diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index a6d4cd52c2..1f3ea089e3 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 5.1SP3-150720 +Version: 5.1SP3-150723 Architecture: all Priority: optional Section: admin diff --git a/pandora_agents/unix/DEBIAN/make_deb_package.sh b/pandora_agents/unix/DEBIAN/make_deb_package.sh index 2b8c28bb55..d2bd2ea33f 100644 --- a/pandora_agents/unix/DEBIAN/make_deb_package.sh +++ b/pandora_agents/unix/DEBIAN/make_deb_package.sh @@ -14,7 +14,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -pandora_version="5.1SP3-150720" +pandora_version="5.1SP3-150723" echo "Test if you has the tools for to make the packages." whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index bc78aa561a..eb1c57a415 100644 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -41,7 +41,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '5.1SP3'; -use constant AGENT_BUILD => '150720'; +use constant AGENT_BUILD => '150723'; # Commands to retrieve total memory information in kB use constant TOTALMEMORY_CMDS => { diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index 46b0c3b10c..4f2d31d46c 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_unix %define version 5.1SP3 -%define release 150720 +%define release 150723 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index 7f81d21e9a..c82341ef5d 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_unix %define version 5.1SP3 -%define release 150720 +%define release 150723 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index f0b5584964..a2adb1e31a 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{150720} +{150723} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 08e6f2fd8d..a21c5ac24c 100644 --- a/pandora_agents/win32/pandora.cc +++ b/pandora_agents/win32/pandora.cc @@ -30,7 +30,7 @@ using namespace Pandora; using namespace Pandora_Strutils; #define PATH_SIZE _MAX_PATH+1 -#define PANDORA_VERSION ("5.1SP3(Build 150720)") +#define PANDORA_VERSION ("5.1SP3(Build 150723)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index c0c8f73cd3..662640b6ff 100644 --- a/pandora_agents/win32/versioninfo.rc +++ b/pandora_agents/win32/versioninfo.rc @@ -11,7 +11,7 @@ BEGIN VALUE "LegalCopyright", "Artica ST" VALUE "OriginalFilename", "PandoraAgent.exe" VALUE "ProductName", "Pandora FMS Windows Agent" - VALUE "ProductVersion", "(5.1SP3(Build 150720))" + VALUE "ProductVersion", "(5.1SP3(Build 150723))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index f37edc7982..b725c63342 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 5.1SP3-150720 +Version: 5.1SP3-150723 Architecture: all Priority: optional Section: admin diff --git a/pandora_console/DEBIAN/make_deb_package.sh b/pandora_console/DEBIAN/make_deb_package.sh index e77a7e8dfe..a7eef23b97 100644 --- a/pandora_console/DEBIAN/make_deb_package.sh +++ b/pandora_console/DEBIAN/make_deb_package.sh @@ -14,7 +14,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -pandora_version="5.1SP3-150720" +pandora_version="5.1SP3-150723" package_pear=0 package_pandora=1 diff --git a/pandora_console/extras/pandora_diag.php b/pandora_console/extras/pandora_diag.php index 9aff382ed4..8c3f0a60d9 100644 --- a/pandora_console/extras/pandora_diag.php +++ b/pandora_console/extras/pandora_diag.php @@ -123,7 +123,10 @@ switch ($config["dbtype"]) { case "mysql": render_info_data ("SELECT `value` FROM tconfig - WHERE `token` = 'db_scheme_version'", "DB Schema Version"); + WHERE `token` = 'db_scheme_first_version'", "DB Schema Version (first installed)"); + render_info_data ("SELECT `value` + FROM tconfig + WHERE `token` = 'db_scheme_version'", "DB Schema Version (actual)"); render_info_data ("SELECT `value` FROM tconfig WHERE `token` = 'db_scheme_build'", "DB Schema Build"); diff --git a/pandora_console/godmode/events/event_edit_filter.php b/pandora_console/godmode/events/event_edit_filter.php index da6e149ba5..02fb6cc7f5 100644 --- a/pandora_console/godmode/events/event_edit_filter.php +++ b/pandora_console/godmode/events/event_edit_filter.php @@ -31,7 +31,8 @@ $create = (string)get_parameter('create', 0); if ($id) { $permission = events_check_event_filter_group ($id); - if (!$permission) { // User doesn't have permissions to see this filter + if (!$permission) { + // User doesn't have permissions to see this filter require ("general/noaccess.php"); return; @@ -52,15 +53,15 @@ if ($id) { $event_view_hr = $filter['event_view_hr']; $id_user_ack = $filter['id_user_ack']; $group_rep = $filter['group_rep']; - - $tag_with_json = $filter['tag_with']; + + $tag_with_json = $filter['tag_with']; $tag_with_json_clean = io_safe_output($tag_with_json); $tag_with_base64 = base64_encode($tag_with_json_clean) ; $tag_without_json = $filter['tag_without']; $tag_without_json_clean = io_safe_output($tag_without_json); $tag_without_base64 = base64_encode($tag_without_json_clean) ; - + $filter_only_alert = $filter['filter_only_alert']; } else { @@ -99,10 +100,10 @@ if($update || $create) { $tag_with_base64 = get_parameter('tag_with', json_encode(array())); $tag_with_json = io_safe_input(base64_decode($tag_with_base64)); - + $tag_without_base64 = get_parameter('tag_without', json_encode(array())); $tag_without_json = io_safe_input(base64_decode($tag_without_base64)); - + $filter_only_alert = get_parameter('filter_only_alert',''); $values = array ( @@ -231,11 +232,11 @@ $table->data[11][1] = html_print_select ($repeated_sel, "group_rep", $group_rep, $tag_with = json_decode($tag_with_json_clean, true); -if(empty($tag_with)) { +if (empty($tag_with)) { $tag_with = array(); } $tag_without = json_decode($tag_without_json_clean, true); -if(empty($tag_without)) { +if (empty($tag_without)) { $tag_without = array(); } @@ -303,7 +304,8 @@ $table->data[18][1] = html_print_button(__('Remove'), 'remove_whithout', $remove $table->data[19][0] = '' . __('Alert events') . ''; $table->data[19][1] = html_print_select( - array('-1' => __('All'), + array( + '-1' => __('All'), '0' => __('Filter alert events'), '1' => __('Only alert events')), "filter_only_alert", $filter_only_alert, '', '', '', true); diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index b95ad63fe7..df7e000f39 100644 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -492,7 +492,7 @@ $table->data[$row][1] = html_print_input_text ('custom_graph_widht', $row++; -$table->data[$row][0] = __('Display proc modules in binary format (OK/FAIL)'); +$table->data[$row][0] = __('Display data of proc modules in other format'); $table->data[$row][1] = __('Yes') . ' ' . html_print_radio_button ('render_proc', 1, '', $config["render_proc"], true) . @@ -502,6 +502,13 @@ $table->data[$row][1] .= __('No') . ' ' . $config["render_proc"], true); $row++; +$table->data[$row][0] = __('Display text proc modules have state is ok'); +$table->data[$row][1] = html_print_input_text ('render_proc_ok', $config["render_proc_ok"], '', 25, 25, true); +$row++; + +$table->data[$row][0] = __('Display text when proc modules have state critical'); +$table->data[$row][1] = html_print_input_text ('render_proc_fail', $config["render_proc_fail"], '', 25, 25, true); +$row++; echo '