diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cb2a5bf06a..ca36693ddc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,365 +1,375 @@ -2006-12-04 Raul Mateos - - * help/[en|es]/images/servers1.png, servers2.png: New files. - - * help/[en|es]/chap2.php, chap7.php: Update files. - - * godmode/admin_access_logs.php: Add help icon. - -2006-12-03 Sancho Lerena - - * godmode/agentes/configurar_agente.php: Fixed bug editing alerts. - -2006-12-03 Raul Mateos - - * include/styles/pandora.css: new style for not found items. Join styles. - - * operation/events/events.php: Add filter to events by group. Changed - style for not found items. - - * operation/agentes/estado_agente.php, status_monitor.php, - estado_alertas.php: Add name to filter combo. Changed style for not - found items. - - * operation/incidents/incident.php: Changed style for not found items. - - * images/cancel.gif: Changed image to one with smaller size. - -2006-11-27 Raul Mateos - - * general/footer.php: Add variable $time to get time from server which - PHP < 5.1. Style correction. - -2006-11-23 Raul Mateos - - * general/footer.php: Changed text from Pandora to Pandora FMS. - -2006-11-23 Sancho Lerena - - * agentes/estado_ultimopaquete.php: Added "border=0" to some graphic. - Fixed typo in hourly graph. - - * agentes/estado_generalagente.php: Added "border=0" in setup icon. - - * agentes/datos_agente.php: Better output (sort DESC and with M and K suffix) - -2006-11-22 Sancho Lerena - - * agentes/estado_ultimopaquete.php: Fixed small size of - visualization of data in packet view. Big values was cutted. Added - elimination of decimals, and suffix for M (1000) divisible values. - -2006-11-21 Raul Mateos - - * general/footer.php: Change time() function to $_SERVER['REQUEST_TIME'] - for optimization, Esteban's suggestion. Changed text from Pandora to - Pandora FMS. - - * operation/agentes/estado_alertas.php: small code changes - - * operation/agentes/status_monitor.php: change bulb images from botton - to top, some style corrections - - * operation/agentes/estado_generalagente.php, - operation/agentes/estado_ultimopaquete.php: - Several changes to make it more HTML compliant, and better sytle. - -2006-11-17 Raul Mateos - - * operation/agentes/estado_generalagente.php: Clean code, small adapt to - guidelines. Add code for showing 'Never' if there wasn't a previous contact - of the agent. - - * include/styles/pandora.css, god.css, link.css, op.css, tip.css: Style - correction. Add border: 0px to tables and images. With this change, all the - tables and images shouln't have the "border=0" parameter. - -2006-11-14 Raul Mateos - - * include/styles/pandora.css: Change some styles. - - * operation/agentes/estado_agente.php, - operation/agentes/estado_alertas.php, - operation/incidents/incident.php: Clear code, change styles. - - * operation/events/event.php: New selection for event type. EXPERIMENTAL. - TO DO: Add selection for groups. - -2006-11-13 Raul Mateos - - * include/config.php: Change build date to correct order. - -2006-11-06 Raul Mateos - - * index.php: Added FMS to title - - * include/languages/language_es_es.php, language_en.php, - language_es_la.php, language_it.php: Remove "distributed" from title - -2006-11-05 Sancho Lerena - - * images/outlimits.png: Static image for progress bar out of - limits. - - * reporting/fgraph.php: Progress bar now show static image if there is - out of limits before calculating (faster). - -2006-10-31 Raul Mateos - - * operation/menu.php: Add highlighting when creating note in incidents - page. - -2006-10-21 Sancho Lerena - - * include/functions.php: Change function no_permission () to show - noaccess.gif image correctly, due a path problem. - - * general/noaccess.php: Change code to show noaccess.gif correctly. - -2006-10-09 Raul Mateos - - * operation/agentes/estado_alertas.php: Add code for showing 'Never' - if never an alert has been triggered. - - * operation/agentes/estado_alertas.php, estado_agente.php - , status_monitor.php: Changed select size. - - * operation/incidents/incident_search.php: Changed select size. - - * operation/messages/message.php: Changed select size. - - * godmode/usuarios/configurar_usuarios.php: Changed select size. - - * godmode/setup/setup.php: Changed select size. - -2006-10-08 Sancho Lerena - - * incident_detail.php: Fixed DOS newlines to UNIX newlines. Fixed - help code. Fixed Background color for field "Source". - -2006-10-04 Raul Mateos - - * operation/agentes/estado_ultimopaquete.php: Delete old comments. - - * general/login_page.php, logon_ok.php: Updated headers. - - * include/config.php: Set PHP errors disabled by default. - -2006-09-28 Sancho Lerena - - * languages/language_es_es.php: Fixed message "out of limits" - without tildes in spanish for jpgraph output. - - * pandoradb_1.1_to_1.2.sql: Fixed small issues: mod_data_inc was - as mod_inc.gif in modify SQL sentence. Spanish language is - _es_es not _es. Setup by default english language after - migration. Added network agent as OS. Changed Build versions in - DB Scheme and versions (1.1 in old one !!!). - - * pandora_console/pandoradb_data.sql: Fixed version number and - build. - -2006-09-23 Raul Mateos - - * godmode/agentes/configurar_agente.php: Comment DEBUG code added - last update. - -2006-09-21 Sancho Lerena - - * pandoradb.sql: Altered tagente_datos field "datos" to have - DOUBLE(18,2) instead of DOUBLE (12,2). - - * pandora_db1.1_to1.2.sql: Altered tagente_datos field "datos" to - have DOUBLE(18,2) instead of DOUBLE (12,2). - -2006-09-16 Raul Mateos - - * Set all timestamp values in pandoradb.sql file to 0000-00-00 00:00:00 - -2006-09-11 Raul Mateos - - * Massive upload of several help files to update text. - -2006-09-10 Raul Mateos - - * Massive upload several files, to reflect changes in help, - only text, no code changed - - * pandoradb.sql: change value of ultimo_contacto row in - tagente table to 0000-00-00 00:00:00, to solve a small issue - when the agent haven't send any data - -2006-09-08 Raul Mateos - - * images/pandora.ico: New icon for Pandora Web Console - -2006-09-04 Raul Mateos - - * help/es/image001.gif: Replaced old image - * help/en/image001.gif: Repladed old image - -2006-08-30 Sancho Lerena - - * CHANGELOG: Renamed to ChangeLog - - * reporting/*.php: Replaced old code with new code for trunk. Deleted - old_jpg_functions directory from repository - - -2006-07-20 Raul Mateos - - * language_fr.php. Update text. - - * language_ca.php. Update text. - - * language_pt_br.php. Update text. - - * language_ast_es.php. Update text. - - * language_it.php. Update text. - - * snmp_alert.php. Add text when alert not created /updated / deleted. Add - different colors between - rows (cosmetic changes). - - -2006-07-18 Raul Mateos - - * Some headers changed to show the "official" GPL Header info. No new features or solved bugs - - -2006-07-17 Raul Mateos - - * exportdata.php. Add a line at the end of table - - * view_server.php. Add different colors between rows (cosmetic changes) - - * Some headers changed to show the "official" GPL Header info - - * modificar_server.php. Add different colors between rows (cosmetic changes). Add line before the submit button. Add help. - - * configurar_agente.php. Solved small bug that only show the last alert when creating alert in an agent, but the alert was created into database. - -2006-07-13 Sancho Lerena - - * estado_grupo.php. Fix bug viewing groups, agent intervar was not read and - misused, resulting in a bad result of module down total sum. - - * Some headers changed to show the "official" GPL Header info - - * godmode/setup/setup.php. Fixed small bug showing filelist. - -2006-07-12 Raul Mateos - - * datos_agente.php. Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). Add Help. - - * user.php. Add new text about authors. Clean code. - - * menu.php. Add highlight when datos_agente selected. - - * pandora.css. Add new text about authors. - - * changed name from pandora_info_es.html to pandora_info_es_es.html and pandora_info_bb.html to pandora_info_ast_es.html - - * pandora_info_it.html. New file, GPL license in italian - - * language_it.php. New language file, italian - - * pandoradb_data.sql. Change to add that the new language - - * help/it. New directory for help files in italian - -2006-07-11 Raul Mateos - - * Moved FreeSans.ttf to the reporting directory - - * Modified config.php. Now only shows the font, $config_fontpath var is set without the path (it should look for the font in the reporting directory) - -2006-07-11 Sancho Lerena - - * config.php: Replaced default font for use in graphs to use FreeSans.ttf - - * FreeSans.ttf: added to SVN repository. - - * fpgraph.php: Fixed problem with Call-time pass-by-reference in PHP. - - * functions.php: Updated parametro_limpio() security function to parse better. - Includes a regular expression to purge %00 expresions. - - -2006-07-11 Raul Mateos - - * user_edit.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). - - * menu.php: Add new text about authors. Add code to highlight "edit my user" when editing the user authenticated. - - * index.php: Add new text about authors. - - * functions.php: Add new text about authors. Change PATH to noaccess.php file. - - * noaccess.php: Add new text about authors. - - * login_failed.php: Add new text about authors. - - * logoff.php: Add new text about authors. - - * config.php: Add new text about authors. - - * configurar_usuarios.php: Add new text about authors. Clean code. Solve small bug that avoid creating a new user. Add a line between table and button. Add different colors between rows (cosmetic changes). - - * pandora.css: Added new class .datos2t - - * ver_agente.php: Add new text about authors. Clean Code. - - * estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes). - - * estado_agente.php: Clean code, add new text about authors. - - * configurar_agente.php: Solve small bug that in some cases the module association form didn't work. - Added the feature of disable the not required inputs for the different type of agents while editing - module. - - * incident_search.php: Add new text about authors and add a line between table and button (cosmetic change). - - * setup.php: Add new text about authors and add a line between table and button (cosmetic change). - - * estado_grupo.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. - - * view_server.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. - - * snmp_alert.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. Cosmetic change, adding class 'suc' when creating alert is successful. - - * snmp_view.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. - - * tip.css: Change class padding to not showing error in Firefox Javascript Console. - - * message.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. Add a line between table and button (cosmetic change). - - * incident_detail.php: Add new text about authors. Add a line between table and button. Add different colors between rows. Change button position (cosmetic changes). - - * incident_note.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). - - - -2006-07-09 Sancho Lerena - - * ChangeLog: Create this file, prior to launch final 1.2 version. For the next - versions, will use it for every branch and subproject. - - * configurar_agente.php : Fixed Undefined index: combo_snmp_oid notice error. - - * estado_grupo.php: Detect old "OK" monitors, but doesnt check if they are down - in time, so for example, a old monitor with OK signal but from a week old, it is - shown as GREEN (good) value, not as a DOWN (white with ? symbol). FIXED. - Now counts data modules for DOWN total account, and show grey button if ANY - type of module is down, not only monitors. Improved SQL searches. - - * estado_agente.php, estado_ultimopaquete.php: Same as estado_grupo with data_modules, - included in total account, more accurate accounting. A new value shown in grey for - DOWN modules, being monitors or single data modules, no matter type. Improved SQL - searches. Individual module intervals are used to determine if a module is down, - if there is no individual module interval, global agent interval is used. - Now it's possible to have a module with higher interval than Agent interval, so - we take now the more higest interval in modules to calculate if an agent is DOWN. - - * fgraph.php: updated progressbar function to show N/A when data is above 100 or below 0. +2006-12-07 Raul Mateos + + * include/config.php: Changed build + + * operation/snmp/*: Close some HTML tags. Changed style + for not found items. + + * operation/servers/view_server.php: Close some HTML tags. Changed style + for not found items. + +2006-12-04 Raul Mateos + + * help/[en|es]/images/servers1.png, servers2.png: New files. + + * help/[en|es]/chap2.php, chap7.php: Update files. + + * godmode/admin_access_logs.php: Add help icon. + +2006-12-03 Sancho Lerena + + * godmode/agentes/configurar_agente.php: Fixed bug editing alerts. + +2006-12-03 Raul Mateos + + * include/styles/pandora.css: new style for not found items. Join styles. + + * operation/events/events.php: Add filter to events by group. Changed + style for not found items. + + * operation/agentes/estado_agente.php, status_monitor.php, + estado_alertas.php: Add name to filter combo. Changed style for not + found items. + + * operation/incidents/incident.php: Changed style for not found items. + + * images/cancel.gif: Changed image to one with smaller size. + +2006-11-27 Raul Mateos + + * general/footer.php: Add variable $time to get time from server which + PHP < 5.1. Style correction. + +2006-11-23 Raul Mateos + + * general/footer.php: Changed text from Pandora to Pandora FMS. + +2006-11-23 Sancho Lerena + + * agentes/estado_ultimopaquete.php: Added "border=0" to some graphic. + Fixed typo in hourly graph. + + * agentes/estado_generalagente.php: Added "border=0" in setup icon. + + * agentes/datos_agente.php: Better output (sort DESC and with M and K suffix) + +2006-11-22 Sancho Lerena + + * agentes/estado_ultimopaquete.php: Fixed small size of + visualization of data in packet view. Big values was cutted. Added + elimination of decimals, and suffix for M (1000) divisible values. + +2006-11-21 Raul Mateos + + * general/footer.php: Change time() function to $_SERVER['REQUEST_TIME'] + for optimization, Esteban's suggestion. Changed text from Pandora to + Pandora FMS. + + * operation/agentes/estado_alertas.php: small code changes + + * operation/agentes/status_monitor.php: change bulb images from botton + to top, some style corrections + + * operation/agentes/estado_generalagente.php, + operation/agentes/estado_ultimopaquete.php: + Several changes to make it more HTML compliant, and better sytle. + +2006-11-17 Raul Mateos + + * operation/agentes/estado_generalagente.php: Clean code, small adapt to + guidelines. Add code for showing 'Never' if there wasn't a previous contact + of the agent. + + * include/styles/pandora.css, god.css, link.css, op.css, tip.css: Style + correction. Add border: 0px to tables and images. With this change, all the + tables and images shouln't have the "border=0" parameter. + +2006-11-14 Raul Mateos + + * include/styles/pandora.css: Change some styles. + + * operation/agentes/estado_agente.php, + operation/agentes/estado_alertas.php, + operation/incidents/incident.php: Clear code, change styles. + + * operation/events/event.php: New selection for event type. EXPERIMENTAL. + TO DO: Add selection for groups. + +2006-11-13 Raul Mateos + + * include/config.php: Change build date to correct order. + +2006-11-06 Raul Mateos + + * index.php: Added FMS to title + + * include/languages/language_es_es.php, language_en.php, + language_es_la.php, language_it.php: Remove "distributed" from title + +2006-11-05 Sancho Lerena + + * images/outlimits.png: Static image for progress bar out of + limits. + + * reporting/fgraph.php: Progress bar now show static image if there is + out of limits before calculating (faster). + +2006-10-31 Raul Mateos + + * operation/menu.php: Add highlighting when creating note in incidents + page. + +2006-10-21 Sancho Lerena + + * include/functions.php: Change function no_permission () to show + noaccess.gif image correctly, due a path problem. + + * general/noaccess.php: Change code to show noaccess.gif correctly. + +2006-10-09 Raul Mateos + + * operation/agentes/estado_alertas.php: Add code for showing 'Never' + if never an alert has been triggered. + + * operation/agentes/estado_alertas.php, estado_agente.php + , status_monitor.php: Changed select size. + + * operation/incidents/incident_search.php: Changed select size. + + * operation/messages/message.php: Changed select size. + + * godmode/usuarios/configurar_usuarios.php: Changed select size. + + * godmode/setup/setup.php: Changed select size. + +2006-10-08 Sancho Lerena + + * incident_detail.php: Fixed DOS newlines to UNIX newlines. Fixed + help code. Fixed Background color for field "Source". + +2006-10-04 Raul Mateos + + * operation/agentes/estado_ultimopaquete.php: Delete old comments. + + * general/login_page.php, logon_ok.php: Updated headers. + + * include/config.php: Set PHP errors disabled by default. + +2006-09-28 Sancho Lerena + + * languages/language_es_es.php: Fixed message "out of limits" + without tildes in spanish for jpgraph output. + + * pandoradb_1.1_to_1.2.sql: Fixed small issues: mod_data_inc was + as mod_inc.gif in modify SQL sentence. Spanish language is + _es_es not _es. Setup by default english language after + migration. Added network agent as OS. Changed Build versions in + DB Scheme and versions (1.1 in old one !!!). + + * pandora_console/pandoradb_data.sql: Fixed version number and + build. + +2006-09-23 Raul Mateos + + * godmode/agentes/configurar_agente.php: Comment DEBUG code added + last update. + +2006-09-21 Sancho Lerena + + * pandoradb.sql: Altered tagente_datos field "datos" to have + DOUBLE(18,2) instead of DOUBLE (12,2). + + * pandora_db1.1_to1.2.sql: Altered tagente_datos field "datos" to + have DOUBLE(18,2) instead of DOUBLE (12,2). + +2006-09-16 Raul Mateos + + * Set all timestamp values in pandoradb.sql file to 0000-00-00 00:00:00 + +2006-09-11 Raul Mateos + + * Massive upload of several help files to update text. + +2006-09-10 Raul Mateos + + * Massive upload several files, to reflect changes in help, + only text, no code changed + + * pandoradb.sql: change value of ultimo_contacto row in + tagente table to 0000-00-00 00:00:00, to solve a small issue + when the agent haven't send any data + +2006-09-08 Raul Mateos + + * images/pandora.ico: New icon for Pandora Web Console + +2006-09-04 Raul Mateos + + * help/es/image001.gif: Replaced old image + * help/en/image001.gif: Repladed old image + +2006-08-30 Sancho Lerena + + * CHANGELOG: Renamed to ChangeLog + + * reporting/*.php: Replaced old code with new code for trunk. Deleted + old_jpg_functions directory from repository + + +2006-07-20 Raul Mateos + + * language_fr.php. Update text. + + * language_ca.php. Update text. + + * language_pt_br.php. Update text. + + * language_ast_es.php. Update text. + + * language_it.php. Update text. + + * snmp_alert.php. Add text when alert not created /updated / deleted. Add + different colors between + rows (cosmetic changes). + + +2006-07-18 Raul Mateos + + * Some headers changed to show the "official" GPL Header info. No new features or solved bugs + + +2006-07-17 Raul Mateos + + * exportdata.php. Add a line at the end of table + + * view_server.php. Add different colors between rows (cosmetic changes) + + * Some headers changed to show the "official" GPL Header info + + * modificar_server.php. Add different colors between rows (cosmetic changes). Add line before the submit button. Add help. + + * configurar_agente.php. Solved small bug that only show the last alert when creating alert in an agent, but the alert was created into database. + +2006-07-13 Sancho Lerena + + * estado_grupo.php. Fix bug viewing groups, agent intervar was not read and + misused, resulting in a bad result of module down total sum. + + * Some headers changed to show the "official" GPL Header info + + * godmode/setup/setup.php. Fixed small bug showing filelist. + +2006-07-12 Raul Mateos + + * datos_agente.php. Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). Add Help. + + * user.php. Add new text about authors. Clean code. + + * menu.php. Add highlight when datos_agente selected. + + * pandora.css. Add new text about authors. + + * changed name from pandora_info_es.html to pandora_info_es_es.html and pandora_info_bb.html to pandora_info_ast_es.html + + * pandora_info_it.html. New file, GPL license in italian + + * language_it.php. New language file, italian + + * pandoradb_data.sql. Change to add that the new language + + * help/it. New directory for help files in italian + +2006-07-11 Raul Mateos + + * Moved FreeSans.ttf to the reporting directory + + * Modified config.php. Now only shows the font, $config_fontpath var is set without the path (it should look for the font in the reporting directory) + +2006-07-11 Sancho Lerena + + * config.php: Replaced default font for use in graphs to use FreeSans.ttf + + * FreeSans.ttf: added to SVN repository. + + * fpgraph.php: Fixed problem with Call-time pass-by-reference in PHP. + + * functions.php: Updated parametro_limpio() security function to parse better. + Includes a regular expression to purge %00 expresions. + + +2006-07-11 Raul Mateos + + * user_edit.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). + + * menu.php: Add new text about authors. Add code to highlight "edit my user" when editing the user authenticated. + + * index.php: Add new text about authors. + + * functions.php: Add new text about authors. Change PATH to noaccess.php file. + + * noaccess.php: Add new text about authors. + + * login_failed.php: Add new text about authors. + + * logoff.php: Add new text about authors. + + * config.php: Add new text about authors. + + * configurar_usuarios.php: Add new text about authors. Clean code. Solve small bug that avoid creating a new user. Add a line between table and button. Add different colors between rows (cosmetic changes). + + * pandora.css: Added new class .datos2t + + * ver_agente.php: Add new text about authors. Clean Code. + + * estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes). + + * estado_agente.php: Clean code, add new text about authors. + + * configurar_agente.php: Solve small bug that in some cases the module association form didn't work. + Added the feature of disable the not required inputs for the different type of agents while editing + module. + + * incident_search.php: Add new text about authors and add a line between table and button (cosmetic change). + + * setup.php: Add new text about authors and add a line between table and button (cosmetic change). + + * estado_grupo.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. + + * view_server.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. + + * snmp_alert.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. Cosmetic change, adding class 'suc' when creating alert is successful. + + * snmp_view.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. + + * tip.css: Change class padding to not showing error in Firefox Javascript Console. + + * message.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. Add a line between table and button (cosmetic change). + + * incident_detail.php: Add new text about authors. Add a line between table and button. Add different colors between rows. Change button position (cosmetic changes). + + * incident_note.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). + + + +2006-07-09 Sancho Lerena + + * ChangeLog: Create this file, prior to launch final 1.2 version. For the next + versions, will use it for every branch and subproject. + + * configurar_agente.php : Fixed Undefined index: combo_snmp_oid notice error. + + * estado_grupo.php: Detect old "OK" monitors, but doesnt check if they are down + in time, so for example, a old monitor with OK signal but from a week old, it is + shown as GREEN (good) value, not as a DOWN (white with ? symbol). FIXED. + Now counts data modules for DOWN total account, and show grey button if ANY + type of module is down, not only monitors. Improved SQL searches. + + * estado_agente.php, estado_ultimopaquete.php: Same as estado_grupo with data_modules, + included in total account, more accurate accounting. A new value shown in grey for + DOWN modules, being monitors or single data modules, no matter type. Improved SQL + searches. Individual module intervals are used to determine if a module is down, + if there is no individual module interval, global agent interval is used. + Now it's possible to have a module with higher interval than Agent interval, so + we take now the more higest interval in modules to calculate if an agent is DOWN. + + * fgraph.php: updated progressbar function to show N/A when data is above 100 or below 0. diff --git a/pandora_console/include/config.php b/pandora_console/include/config.php index e89aaba95d..f4a9b8a790 100644 --- a/pandora_console/include/config.php +++ b/pandora_console/include/config.php @@ -20,8 +20,8 @@ // This is the base config file //Pandora Version -$build_version="PC061004"; //PCyymmdd -$pandora_version="v1.2 Beta 3"; +$build_version="PC061207"; //PCyymmdd +$pandora_version="v1.3 Beta 1"; // Database configuration $dbname="pandora"; // MySQL DataBase @@ -39,7 +39,8 @@ $config_fontpath = "../reporting/FreeSans.ttf"; // Change this to your font fold error_reporting(E_ALL); // Read rest of config from DB -if (! mysql_pconnect($dbhost,$dbuser,$dbpassword)){ //Persistent connection. If you want non-persistent conn change it to mysql_connect() +if (! mysql_connect($dbhost,$dbuser,$dbpassword)){ +//Non-persistent connection. If you want persistent conn change it to mysql_pconnect() exit ('Pandora Error
diff --git a/pandora_console/operation/servers/view_server.php b/pandora_console/operation/servers/view_server.php index fd0a63c140..f7b9fbe47d 100644 --- a/pandora_console/operation/servers/view_server.php +++ b/pandora_console/operation/servers/view_server.php @@ -31,18 +31,18 @@ if (comprueba_login() == 0) { // Connect DataBase $result=mysql_query($sql); if (mysql_num_rows($result)){ - echo ""; - echo "
".$lang_label["name"]; - echo "".$lang_label['status']; - echo "".$lang_label['ip_address']; - echo "".$lang_label['description']; - echo "".$lang_label['network']; - echo "".$lang_label['data']; - echo "".$lang_label['snmp']; - echo "".$lang_label['master']; - echo "".$lang_label['checksum']; - echo "".$lang_label['laststart']; - echo "".$lang_label['lastupdate']; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""]; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; $color=1; while ($row=mysql_fetch_array($result)){ if ($color == 1){ @@ -96,18 +96,19 @@ if (comprueba_login() == 0) { if ($checksum == 1){ echo ""; } - echo ""; + echo ""; } - echo '
".$lang_label["name"]."".$lang_label['status']."".$lang_label['ip_address']."".$lang_label['description']."".$lang_label['network'."".$lang_label['data']."".$lang_label['snmp']."".$lang_label['master']."".$lang_label['checksum']."".$lang_label['laststart']."".$lang_label['lastupdate']."".substr($laststart,0,25); - echo "".substr($keepalive,0,25); + echo "" + .substr($laststart,0,25)."" + .substr($keepalive,0,25)."
'; - } - else { - echo ''.$lang_label["no_server"].''; + echo '
'; + } else { + echo "
".$lang_label["no_server"]."
"; } -} else { + } else { audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Agent view"); require ("general/noaccess.php"); -} + } } ?> \ No newline at end of file diff --git a/pandora_console/operation/snmpconsole/snmp_alert.php b/pandora_console/operation/snmpconsole/snmp_alert.php index 59b0aa865e..f20b1456d9 100644 --- a/pandora_console/operation/snmpconsole/snmp_alert.php +++ b/pandora_console/operation/snmpconsole/snmp_alert.php @@ -206,16 +206,16 @@ if (give_acl($id_user, 0, "LW")==1) { echo '

'.$lang_label["snmp_assigned_alerts"]." ".$lang_label["help"]."

"; if (mysql_num_rows($result)){ - echo ''; - echo '
'.$lang_label["alert"]; - echo ''.$lang_label["alert_type"]; - echo ''.$lang_label["SNMP_agent"]; - echo ''.$lang_label["OID"]; - echo ''.$lang_label["customvalue"]; - echo ''.$lang_label["description"]; - echo ''.$lang_label["times_fired"]; - echo ''.$lang_label["last_fired"]; - echo ''.$lang_label["action"]; + echo ''; + echo '"; + echo '"; + echo '"; + echo '"; + echo '"; + echo '"; + echo '"; + echo '"; + echo '"; $color=1; while ($row=mysql_fetch_array($result)){ if ($color == 1){ @@ -297,8 +297,8 @@ if (give_acl($id_user, 0, "LW")==1) { echo ''; echo ""; echo "
'.$lang_label["alert"]."'.$lang_label["alert_type"]."'.$lang_label["SNMP_agent"]."'.$lang_label["OID"]."'.$lang_label["customvalue"]."'.$lang_label["description"]."'.$lang_label["times_fired"]."'.$lang_label["last_fired"]."'.$lang_label["action"]."
"; - } else { - echo ''.$lang_label["no_snmp_alert"].''; + } else { + echo "
".$lang_label["no_snmp_alert"]."
"; echo "

"; echo '
'; echo ''; diff --git a/pandora_console/operation/snmpconsole/snmp_view.php b/pandora_console/operation/snmpconsole/snmp_view.php index e9644bfc15..2cb754f5ed 100644 --- a/pandora_console/operation/snmpconsole/snmp_view.php +++ b/pandora_console/operation/snmpconsole/snmp_view.php @@ -188,16 +188,16 @@ if (comprueba_login() == 0) { $offset=0; } echo "
"; - echo ""; + echo "
"; echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo "'; @@ -227,17 +227,19 @@ if (comprueba_login() == 0) { $sql="SELECT * FROM tagente WHERE direccion = '".$row["source"]."'"; $result2=mysql_query($sql); // If there's any agent with this IP we show name and link to agent if ($row2=mysql_fetch_array($result2)){ - echo ""; } else { - echo ""; } - echo ""; echo ""; echo "
".$lang_label["status"]; - echo "".$lang_label["OID"]; - echo "".$lang_label["SNMP_agent"]; - echo "".$lang_label["customvalue"]; - echo "".$lang_label["id_user"]; - echo "".$lang_label["timestamp"]; - echo "".$lang_label["alert"]; - echo "".$lang_label["action"]; + echo "".$lang_label["status"]."".$lang_label["OID"]."".$lang_label["SNMP_agent"]."".$lang_label["customvalue"]."".$lang_label["id_user"]."".$lang_label["timestamp"]."".$lang_label["alert"]."".$lang_label["action"].""; echo ""; echo '".dame_nombre_agente($row2["id_agente"]).""; + echo " + + ".dame_nombre_agente($row2["id_agente"])."".$row["source"]; + echo "".$row["source"]."".$row["value_custom"]; + echo "".$row["value_custom"].""; if ($row["status"] <> 0) echo " ".dame_nombre_real($row["id_usuario"])."".substr($row["id_usuario"],0,8).""; - echo "".$row["timestamp"]; + echo "".$row["timestamp"].""; if ($row["alerted"] != 0 ) echo ""; @@ -263,8 +265,9 @@ if (comprueba_login() == 0) { } echo "
"; - } - else { echo ''.$lang_label["no_snmp_agent"].'';} + } else { + echo "
".$lang_label["no_snmp_agent"]."
"; + } } else {