2006-12-07 Raul Mateos <raulofpandora@gmail.com>

* 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.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2006-12-07 18:53:43 +00:00
parent 1ac50ce67f
commit bd5300cd1b
5 changed files with 430 additions and 415 deletions

View File

@ -1,365 +1,375 @@
2006-12-04 Raul Mateos <raulofpandora@gmail.com> 2006-12-07 Raul Mateos <raulofpandora@gmail.com>
* help/[en|es]/images/servers1.png, servers2.png: New files. * include/config.php: Changed build
* help/[en|es]/chap2.php, chap7.php: Update files. * operation/snmp/*: Close some HTML tags. Changed style
for not found items.
* godmode/admin_access_logs.php: Add help icon.
* operation/servers/view_server.php: Close some HTML tags. Changed style
2006-12-03 Sancho Lerena <slerena@artica.es> for not found items.
* godmode/agentes/configurar_agente.php: Fixed bug editing alerts. 2006-12-04 Raul Mateos <raulofpandora@gmail.com>
2006-12-03 Raul Mateos <raulofpandora@gmail.com> * help/[en|es]/images/servers1.png, servers2.png: New files.
* include/styles/pandora.css: new style for not found items. Join styles. * help/[en|es]/chap2.php, chap7.php: Update files.
* operation/events/events.php: Add filter to events by group. Changed * godmode/admin_access_logs.php: Add help icon.
style for not found items.
2006-12-03 Sancho Lerena <slerena@artica.es>
* operation/agentes/estado_agente.php, status_monitor.php,
estado_alertas.php: Add name to filter combo. Changed style for not * godmode/agentes/configurar_agente.php: Fixed bug editing alerts.
found items.
2006-12-03 Raul Mateos <raulofpandora@gmail.com>
* operation/incidents/incident.php: Changed style for not found items.
* include/styles/pandora.css: new style for not found items. Join styles.
* images/cancel.gif: Changed image to one with smaller size.
* operation/events/events.php: Add filter to events by group. Changed
2006-11-27 Raul Mateos <raulofpandora@gmail.com> style for not found items.
* general/footer.php: Add variable $time to get time from server which * operation/agentes/estado_agente.php, status_monitor.php,
PHP < 5.1. Style correction. estado_alertas.php: Add name to filter combo. Changed style for not
found items.
2006-11-23 Raul Mateos <raulofpandora@gmail.com>
* operation/incidents/incident.php: Changed style for not found items.
* general/footer.php: Changed text from Pandora to Pandora FMS.
* images/cancel.gif: Changed image to one with smaller size.
2006-11-23 Sancho Lerena <slerena@artica.es>
2006-11-27 Raul Mateos <raulofpandora@gmail.com>
* agentes/estado_ultimopaquete.php: Added "border=0" to some graphic.
Fixed typo in hourly graph. * general/footer.php: Add variable $time to get time from server which
PHP < 5.1. Style correction.
* agentes/estado_generalagente.php: Added "border=0" in setup icon.
2006-11-23 Raul Mateos <raulofpandora@gmail.com>
* agentes/datos_agente.php: Better output (sort DESC and with M and K suffix)
* general/footer.php: Changed text from Pandora to Pandora FMS.
2006-11-22 Sancho Lerena <slerena@artica.es>
2006-11-23 Sancho Lerena <slerena@artica.es>
* agentes/estado_ultimopaquete.php: Fixed small size of
visualization of data in packet view. Big values was cutted. Added * agentes/estado_ultimopaquete.php: Added "border=0" to some graphic.
elimination of decimals, and suffix for M (1000) divisible values. Fixed typo in hourly graph.
2006-11-21 Raul Mateos <raulofpandora@gmail.com> * agentes/estado_generalagente.php: Added "border=0" in setup icon.
* general/footer.php: Change time() function to $_SERVER['REQUEST_TIME'] * agentes/datos_agente.php: Better output (sort DESC and with M and K suffix)
for optimization, Esteban's suggestion. Changed text from Pandora to
Pandora FMS. 2006-11-22 Sancho Lerena <slerena@artica.es>
* operation/agentes/estado_alertas.php: small code changes * agentes/estado_ultimopaquete.php: Fixed small size of
visualization of data in packet view. Big values was cutted. Added
* operation/agentes/status_monitor.php: change bulb images from botton elimination of decimals, and suffix for M (1000) divisible values.
to top, some style corrections
2006-11-21 Raul Mateos <raulofpandora@gmail.com>
* operation/agentes/estado_generalagente.php,
operation/agentes/estado_ultimopaquete.php: * general/footer.php: Change time() function to $_SERVER['REQUEST_TIME']
Several changes to make it more HTML compliant, and better sytle. for optimization, Esteban's suggestion. Changed text from Pandora to
Pandora FMS.
2006-11-17 Raul Mateos <raulofpandora@gmail.com>
* operation/agentes/estado_alertas.php: small code changes
* operation/agentes/estado_generalagente.php: Clean code, small adapt to
guidelines. Add code for showing 'Never' if there wasn't a previous contact * operation/agentes/status_monitor.php: change bulb images from botton
of the agent. to top, some style corrections
* include/styles/pandora.css, god.css, link.css, op.css, tip.css: Style * operation/agentes/estado_generalagente.php,
correction. Add border: 0px to tables and images. With this change, all the operation/agentes/estado_ultimopaquete.php:
tables and images shouln't have the "border=0" parameter. Several changes to make it more HTML compliant, and better sytle.
2006-11-14 Raul Mateos <raulofpandora@gmail.com> 2006-11-17 Raul Mateos <raulofpandora@gmail.com>
* include/styles/pandora.css: Change some styles. * operation/agentes/estado_generalagente.php: Clean code, small adapt to
guidelines. Add code for showing 'Never' if there wasn't a previous contact
* operation/agentes/estado_agente.php, of the agent.
operation/agentes/estado_alertas.php,
operation/incidents/incident.php: Clear code, change styles. * 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
* operation/events/event.php: New selection for event type. EXPERIMENTAL. tables and images shouln't have the "border=0" parameter.
TO DO: Add selection for groups.
2006-11-14 Raul Mateos <raulofpandora@gmail.com>
2006-11-13 Raul Mateos <raulofpandora@gmail.com>
* include/styles/pandora.css: Change some styles.
* include/config.php: Change build date to correct order.
* operation/agentes/estado_agente.php,
2006-11-06 Raul Mateos <raulofpandora@gmail.com> operation/agentes/estado_alertas.php,
operation/incidents/incident.php: Clear code, change styles.
* index.php: Added FMS to title
* operation/events/event.php: New selection for event type. EXPERIMENTAL.
* include/languages/language_es_es.php, language_en.php, TO DO: Add selection for groups.
language_es_la.php, language_it.php: Remove "distributed" from title
2006-11-13 Raul Mateos <raulofpandora@gmail.com>
2006-11-05 Sancho Lerena <slerena@artica.es>
* include/config.php: Change build date to correct order.
* images/outlimits.png: Static image for progress bar out of
limits. 2006-11-06 Raul Mateos <raulofpandora@gmail.com>
* reporting/fgraph.php: Progress bar now show static image if there is * index.php: Added FMS to title
out of limits before calculating (faster).
* include/languages/language_es_es.php, language_en.php,
2006-10-31 Raul Mateos <raulofpandora@gmail.com> language_es_la.php, language_it.php: Remove "distributed" from title
* operation/menu.php: Add highlighting when creating note in incidents 2006-11-05 Sancho Lerena <slerena@artica.es>
page.
* images/outlimits.png: Static image for progress bar out of
2006-10-21 Sancho Lerena <slerena@artica.es> limits.
* include/functions.php: Change function no_permission () to show * reporting/fgraph.php: Progress bar now show static image if there is
noaccess.gif image correctly, due a path problem. out of limits before calculating (faster).
* general/noaccess.php: Change code to show noaccess.gif correctly. 2006-10-31 Raul Mateos <raulofpandora@gmail.com>
2006-10-09 Raul Mateos <raulofpandora@gmail.com> * operation/menu.php: Add highlighting when creating note in incidents
page.
* operation/agentes/estado_alertas.php: Add code for showing 'Never'
if never an alert has been triggered. 2006-10-21 Sancho Lerena <slerena@artica.es>
* operation/agentes/estado_alertas.php, estado_agente.php * include/functions.php: Change function no_permission () to show
, status_monitor.php: Changed select size. noaccess.gif image correctly, due a path problem.
* operation/incidents/incident_search.php: Changed select size. * general/noaccess.php: Change code to show noaccess.gif correctly.
* operation/messages/message.php: Changed select size. 2006-10-09 Raul Mateos <raulofpandora@gmail.com>
* godmode/usuarios/configurar_usuarios.php: Changed select size. * operation/agentes/estado_alertas.php: Add code for showing 'Never'
if never an alert has been triggered.
* godmode/setup/setup.php: Changed select size.
* operation/agentes/estado_alertas.php, estado_agente.php
2006-10-08 Sancho Lerena <slerena@artica.es> , status_monitor.php: Changed select size.
* incident_detail.php: Fixed DOS newlines to UNIX newlines. Fixed * operation/incidents/incident_search.php: Changed select size.
help code. Fixed Background color for field "Source".
* operation/messages/message.php: Changed select size.
2006-10-04 Raul Mateos <raulofpandora@gmail.com>
* godmode/usuarios/configurar_usuarios.php: Changed select size.
* operation/agentes/estado_ultimopaquete.php: Delete old comments.
* godmode/setup/setup.php: Changed select size.
* general/login_page.php, logon_ok.php: Updated headers.
2006-10-08 Sancho Lerena <slerena@artica.es>
* include/config.php: Set PHP errors disabled by default.
* incident_detail.php: Fixed DOS newlines to UNIX newlines. Fixed
2006-09-28 Sancho Lerena <slerena@artica.es> help code. Fixed Background color for field "Source".
* languages/language_es_es.php: Fixed message "out of limits" 2006-10-04 Raul Mateos <raulofpandora@gmail.com>
without tildes in spanish for jpgraph output.
* operation/agentes/estado_ultimopaquete.php: Delete old comments.
* 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 * general/login_page.php, logon_ok.php: Updated headers.
_es_es not _es. Setup by default english language after
migration. Added network agent as OS. Changed Build versions in * include/config.php: Set PHP errors disabled by default.
DB Scheme and versions (1.1 in old one !!!).
2006-09-28 Sancho Lerena <slerena@artica.es>
* pandora_console/pandoradb_data.sql: Fixed version number and
build. * languages/language_es_es.php: Fixed message "out of limits"
without tildes in spanish for jpgraph output.
2006-09-23 Raul Mateos <raulofpandora@gmail.com>
* pandoradb_1.1_to_1.2.sql: Fixed small issues: mod_data_inc was
* godmode/agentes/configurar_agente.php: Comment DEBUG code added as mod_inc.gif in modify SQL sentence. Spanish language is
last update. _es_es not _es. Setup by default english language after
migration. Added network agent as OS. Changed Build versions in
2006-09-21 Sancho Lerena <slerena@artica.es> DB Scheme and versions (1.1 in old one !!!).
* pandoradb.sql: Altered tagente_datos field "datos" to have * pandora_console/pandoradb_data.sql: Fixed version number and
DOUBLE(18,2) instead of DOUBLE (12,2). build.
* pandora_db1.1_to1.2.sql: Altered tagente_datos field "datos" to 2006-09-23 Raul Mateos <raulofpandora@gmail.com>
have DOUBLE(18,2) instead of DOUBLE (12,2).
* godmode/agentes/configurar_agente.php: Comment DEBUG code added
2006-09-16 Raul Mateos <raulofpandora@gmail.com> last update.
* Set all timestamp values in pandoradb.sql file to 0000-00-00 00:00:00 2006-09-21 Sancho Lerena <slerena@artica.es>
2006-09-11 Raul Mateos <raulofpandora@gmail.com> * pandoradb.sql: Altered tagente_datos field "datos" to have
DOUBLE(18,2) instead of DOUBLE (12,2).
* Massive upload of several help files to update text.
* pandora_db1.1_to1.2.sql: Altered tagente_datos field "datos" to
2006-09-10 Raul Mateos <raulofpandora@gmail.com> have DOUBLE(18,2) instead of DOUBLE (12,2).
* Massive upload several files, to reflect changes in help, 2006-09-16 Raul Mateos <raulofpandora@gmail.com>
only text, no code changed
* Set all timestamp values in pandoradb.sql file to 0000-00-00 00:00:00
* pandoradb.sql: change value of ultimo_contacto row in
tagente table to 0000-00-00 00:00:00, to solve a small issue 2006-09-11 Raul Mateos <raulofpandora@gmail.com>
when the agent haven't send any data
* Massive upload of several help files to update text.
2006-09-08 Raul Mateos <raulofpandora@gmail.com>
2006-09-10 Raul Mateos <raulofpandora@gmail.com>
* images/pandora.ico: New icon for Pandora Web Console
* Massive upload several files, to reflect changes in help,
2006-09-04 Raul Mateos <raulofpandora@gmail.com> only text, no code changed
* help/es/image001.gif: Replaced old image * pandoradb.sql: change value of ultimo_contacto row in
* help/en/image001.gif: Repladed old image tagente table to 0000-00-00 00:00:00, to solve a small issue
when the agent haven't send any data
2006-08-30 Sancho Lerena <slerena@artica.es>
2006-09-08 Raul Mateos <raulofpandora@gmail.com>
* CHANGELOG: Renamed to ChangeLog
* images/pandora.ico: New icon for Pandora Web Console
* reporting/*.php: Replaced old code with new code for trunk. Deleted
old_jpg_functions directory from repository 2006-09-04 Raul Mateos <raulofpandora@gmail.com>
* help/es/image001.gif: Replaced old image
2006-07-20 Raul Mateos <raulofpandora@gmail.com> * help/en/image001.gif: Repladed old image
* language_fr.php. Update text. 2006-08-30 Sancho Lerena <slerena@artica.es>
* language_ca.php. Update text. * CHANGELOG: Renamed to ChangeLog
* language_pt_br.php. Update text. * reporting/*.php: Replaced old code with new code for trunk. Deleted
old_jpg_functions directory from repository
* language_ast_es.php. Update text.
* language_it.php. Update text. 2006-07-20 Raul Mateos <raulofpandora@gmail.com>
* snmp_alert.php. Add text when alert not created /updated / deleted. Add * language_fr.php. Update text.
different colors between
rows (cosmetic changes). * language_ca.php. Update text.
* language_pt_br.php. Update text.
2006-07-18 Raul Mateos <raulofpandora@gmail.com>
* language_ast_es.php. Update text.
* Some headers changed to show the "official" GPL Header info. No new features or solved bugs
* language_it.php. Update text.
2006-07-17 Raul Mateos <raulofpandora@gmail.com> * snmp_alert.php. Add text when alert not created /updated / deleted. Add
different colors between
* exportdata.php. Add a line at the end of table rows (cosmetic changes).
* view_server.php. Add different colors between rows (cosmetic changes)
2006-07-18 Raul Mateos <raulofpandora@gmail.com>
* Some headers changed to show the "official" GPL Header info
* Some headers changed to show the "official" GPL Header info. No new features or solved bugs
* 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-17 Raul Mateos <raulofpandora@gmail.com>
2006-07-13 Sancho Lerena <sancho.lerena@artica.es> * exportdata.php. Add a line at the end of table
* estado_grupo.php. Fix bug viewing groups, agent intervar was not read and * view_server.php. Add different colors between rows (cosmetic changes)
misused, resulting in a bad result of module down total sum.
* Some headers changed to show the "official" GPL Header info
* 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.
* godmode/setup/setup.php. Fixed small bug showing filelist.
* 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-12 Raul Mateos <raulofpandora@gmail.com>
2006-07-13 Sancho Lerena <sancho.lerena@artica.es>
* datos_agente.php. Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). Add Help.
* estado_grupo.php. Fix bug viewing groups, agent intervar was not read and
* user.php. Add new text about authors. Clean code. misused, resulting in a bad result of module down total sum.
* menu.php. Add highlight when datos_agente selected. * Some headers changed to show the "official" GPL Header info
* pandora.css. Add new text about authors. * godmode/setup/setup.php. Fixed small bug showing filelist.
* changed name from pandora_info_es.html to pandora_info_es_es.html and pandora_info_bb.html to pandora_info_ast_es.html 2006-07-12 Raul Mateos <raulofpandora@gmail.com>
* pandora_info_it.html. New file, GPL license in italian * datos_agente.php. Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). Add Help.
* language_it.php. New language file, italian * user.php. Add new text about authors. Clean code.
* pandoradb_data.sql. Change to add that the new language * menu.php. Add highlight when datos_agente selected.
* help/it. New directory for help files in italian * pandora.css. Add new text about authors.
2006-07-11 Raul Mateos <raulofpandora@gmail.com> * changed name from pandora_info_es.html to pandora_info_es_es.html and pandora_info_bb.html to pandora_info_ast_es.html
* Moved FreeSans.ttf to the reporting directory * pandora_info_it.html. New file, GPL license in italian
* 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) * language_it.php. New language file, italian
2006-07-11 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql. Change to add that the new language
* config.php: Replaced default font for use in graphs to use FreeSans.ttf * help/it. New directory for help files in italian
* FreeSans.ttf: added to SVN repository. 2006-07-11 Raul Mateos <raulofpandora@gmail.com>
* fpgraph.php: Fixed problem with Call-time pass-by-reference in PHP. * Moved FreeSans.ttf to the reporting directory
* functions.php: Updated parametro_limpio() security function to parse better. * 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)
Includes a regular expression to purge %00 expresions.
2006-07-11 Sancho Lerena <slerena@gmail.com>
2006-07-11 Raul Mateos <raulofpandora@gmail.com> * config.php: Replaced default font for use in graphs to use FreeSans.ttf
* user_edit.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). * FreeSans.ttf: added to SVN repository.
* menu.php: Add new text about authors. Add code to highlight "edit my user" when editing the user authenticated. * fpgraph.php: Fixed problem with Call-time pass-by-reference in PHP.
* index.php: Add new text about authors. * functions.php: Updated parametro_limpio() security function to parse better.
Includes a regular expression to purge %00 expresions.
* functions.php: Add new text about authors. Change PATH to noaccess.php file.
* noaccess.php: Add new text about authors. 2006-07-11 Raul Mateos <raulofpandora@gmail.com>
* login_failed.php: Add new text about authors. * user_edit.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes).
* logoff.php: Add new text about authors. * menu.php: Add new text about authors. Add code to highlight "edit my user" when editing the user authenticated.
* config.php: Add new text about authors. * index.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). * functions.php: Add new text about authors. Change PATH to noaccess.php file.
* pandora.css: Added new class .datos2t * noaccess.php: Add new text about authors.
* ver_agente.php: Add new text about authors. Clean Code. * login_failed.php: Add new text about authors.
* estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes). * logoff.php: Add new text about authors.
* estado_agente.php: Clean code, add new text about authors. * config.php: Add new text about authors.
* configurar_agente.php: Solve small bug that in some cases the module association form didn't work. * 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).
Added the feature of disable the not required inputs for the different type of agents while editing
module. * pandora.css: Added new class .datos2t
* incident_search.php: Add new text about authors and add a line between table and button (cosmetic change). * ver_agente.php: Add new text about authors. Clean Code.
* setup.php: Add new text about authors and add a line between table and button (cosmetic change). * estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes).
* estado_grupo.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. * estado_agente.php: Clean code, add new text about authors.
* view_server.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. * 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
* 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. module.
* snmp_view.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. * incident_search.php: Add new text about authors and add a line between table and button (cosmetic change).
* tip.css: Change class padding to not showing error in Firefox Javascript Console. * setup.php: Add new text about authors and add a line between table and button (cosmetic change).
* 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). * estado_grupo.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available.
* 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). * view_server.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available.
* incident_note.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). * 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.
2006-07-09 Sancho Lerena <slerena@artica.es> * tip.css: Change class padding to not showing error in Firefox Javascript Console.
* ChangeLog: Create this file, prior to launch final 1.2 version. For the next * 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).
versions, will use it for every branch and subproject.
* 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).
* configurar_agente.php : Fixed Undefined index: combo_snmp_oid notice error.
* incident_note.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes).
* 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 2006-07-09 Sancho Lerena <slerena@artica.es>
type of module is down, not only monitors. Improved SQL searches.
* ChangeLog: Create this file, prior to launch final 1.2 version. For the next
* estado_agente.php, estado_ultimopaquete.php: Same as estado_grupo with data_modules, versions, will use it for every branch and subproject.
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 * configurar_agente.php : Fixed Undefined index: combo_snmp_oid notice error.
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. * estado_grupo.php: Detect old "OK" monitors, but doesnt check if they are down
Now it's possible to have a module with higher interval than Agent interval, so in time, so for example, a old monitor with OK signal but from a week old, it is
we take now the more higest interval in modules to calculate if an agent is DOWN. 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
* fgraph.php: updated progressbar function to show N/A when data is above 100 or below 0. 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.

View File

@ -20,8 +20,8 @@
// This is the base config file // This is the base config file
//Pandora Version //Pandora Version
$build_version="PC061004"; //PCyymmdd $build_version="PC061207"; //PCyymmdd
$pandora_version="v1.2 Beta 3"; $pandora_version="v1.3 Beta 1";
// Database configuration // Database configuration
$dbname="pandora"; // MySQL DataBase $dbname="pandora"; // MySQL DataBase
@ -39,7 +39,8 @@ $config_fontpath = "../reporting/FreeSans.ttf"; // Change this to your font fold
error_reporting(E_ALL); error_reporting(E_ALL);
// Read rest of config from DB // 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 ('<html><head><title>Pandora Error</title> exit ('<html><head><title>Pandora Error</title>
<link rel="stylesheet" href="./include/styles/pandora.css" type="text/css"> <link rel="stylesheet" href="./include/styles/pandora.css" type="text/css">
</head><body><div align="center"> </head><body><div align="center">

View File

@ -31,18 +31,18 @@ if (comprueba_login() == 0) {
// Connect DataBase // Connect DataBase
$result=mysql_query($sql); $result=mysql_query($sql);
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo "<table cellpadding='3' cellspacing='3' witdh=550>"; echo "<table cellpadding='3' cellspacing='3' witdh=550>";
echo "<tr><th class='datos'>".$lang_label["name"]; echo "<tr><th class='datos'>".$lang_label["name"]."</th>";
echo "<th class='datos'>".$lang_label['status']; echo "<th class='datos'>".$lang_label['status']."</th>";
echo "<th class='datos'>".$lang_label['ip_address']; echo "<th class='datos'>".$lang_label['ip_address']."</th>";
echo "<th class='datos'>".$lang_label['description']; echo "<th class='datos'>".$lang_label['description']."</th>";
echo "<th class='datos'>".$lang_label['network']; echo "<th class='datos'>".$lang_label['network'."</th>"];
echo "<th class='datos'>".$lang_label['data']; echo "<th class='datos'>".$lang_label['data']."</th>";
echo "<th class='datos'>".$lang_label['snmp']; echo "<th class='datos'>".$lang_label['snmp']."</th>";
echo "<th class='datos'>".$lang_label['master']; echo "<th class='datos'>".$lang_label['master']."</th>";
echo "<th class='datos'>".$lang_label['checksum']; echo "<th class='datos'>".$lang_label['checksum']."</th>";
echo "<th class='datos'>".$lang_label['laststart']; echo "<th class='datos'>".$lang_label['laststart']."</th>";
echo "<th class='datos'>".$lang_label['lastupdate']; echo "<th class='datos'>".$lang_label['lastupdate']."</th>";
$color=1; $color=1;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
if ($color == 1){ if ($color == 1){
@ -96,18 +96,19 @@ if (comprueba_login() == 0) {
if ($checksum == 1){ if ($checksum == 1){
echo "<img src='images/binary.gif'>"; echo "<img src='images/binary.gif'>";
} }
echo "<td class='".$tdcolor."f9' align='middle'>".substr($laststart,0,25); echo "<td class='".$tdcolor."f9' align='middle'>"
echo "<td class='".$tdcolor."f9' align='middle'>".substr($keepalive,0,25); .substr($laststart,0,25)."</td>";
echo "<td class='".$tdcolor."f9' align='middle'>"
.substr($keepalive,0,25)."</td>";
} }
echo '<tr><td colspan="11"><div class="raya"></div></td></tr></table>'; echo '<tr><td colspan="11"><div class="raya"></div></td></tr></table>';
} } else {
else { echo "<div class='nf'>".$lang_label["no_server"]."</div>";
echo '<font class="red">'.$lang_label["no_server"].'</font>';
} }
} else { } else {
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Agent view"); audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Agent view");
require ("general/noaccess.php"); require ("general/noaccess.php");
} }
} }
?> ?>

View File

@ -206,16 +206,16 @@ if (give_acl($id_user, 0, "LW")==1) {
echo '<h3>'.$lang_label["snmp_assigned_alerts"]."<a href='help/".$help_code."/chap4.php#341' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>"; echo '<h3>'.$lang_label["snmp_assigned_alerts"]."<a href='help/".$help_code."/chap4.php#341' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo '<table cellpadding="3" cellspacing="3" width="750" class="fon" border=0>'; echo '<table cellpadding="3" cellspacing="3" width="750">';
echo '<tr><th>'.$lang_label["alert"]; echo '<tr><th>'.$lang_label["alert"]."</th>";
echo '<th width=75>'.$lang_label["alert_type"]; echo '<th width=75>'.$lang_label["alert_type"]."</th>";
echo '<th>'.$lang_label["SNMP_agent"]; echo '<th>'.$lang_label["SNMP_agent"]."</th>";
echo '<th>'.$lang_label["OID"]; echo '<th>'.$lang_label["OID"]."</th>";
echo '<th>'.$lang_label["customvalue"]; echo '<th>'.$lang_label["customvalue"]."</th>";
echo '<th>'.$lang_label["description"]; echo '<th>'.$lang_label["description"]."</th>";
echo '<th>'.$lang_label["times_fired"]; echo '<th>'.$lang_label["times_fired"]."</th>";
echo '<th>'.$lang_label["last_fired"]; echo '<th>'.$lang_label["last_fired"]."</th>";
echo '<th width="50">'.$lang_label["action"]; echo '<th width="50">'.$lang_label["action"]."</th>";
$color=1; $color=1;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
if ($color == 1){ if ($color == 1){
@ -297,8 +297,8 @@ if (give_acl($id_user, 0, "LW")==1) {
echo '<input name="add_alert" type="submit" class="sub" value="'.$lang_label["create"].'">'; echo '<input name="add_alert" type="submit" class="sub" value="'.$lang_label["create"].'">';
echo "</form>"; echo "</form>";
echo "</table>"; echo "</table>";
} else { } else {
echo '<font class="red">'.$lang_label["no_snmp_alert"].'</font>'; echo "<div class='nf'>".$lang_label["no_snmp_alert"]."</div>";
echo "<br><br>"; echo "<br><br>";
echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert">'; echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert">';
echo '<input name="add_alert" type="submit" class="sub" value="'.$lang_label["create"].'">'; echo '<input name="add_alert" type="submit" class="sub" value="'.$lang_label["create"].'">';

View File

@ -188,16 +188,16 @@ if (comprueba_login() == 0) {
$offset=0; $offset=0;
} }
echo "<br>"; echo "<br>";
echo "<table border=0 cellpadding='3' cellspacing='3' width='750'>"; echo "<table cellpadding='3' cellspacing='3' width='750'>";
echo "<tr>"; echo "<tr>";
echo "<th>".$lang_label["status"]; echo "<th>".$lang_label["status"]."</th>";
echo "<th>".$lang_label["OID"]; echo "<th>".$lang_label["OID"]."</th>";
echo "<th>".$lang_label["SNMP_agent"]; echo "<th>".$lang_label["SNMP_agent"]."</th>";
echo "<th>".$lang_label["customvalue"]; echo "<th>".$lang_label["customvalue"]."</th>";
echo "<th>".$lang_label["id_user"]; echo "<th>".$lang_label["id_user"]."</th>";
echo "<th class='w130'>".$lang_label["timestamp"]; echo "<th class='w130'>".$lang_label["timestamp"]."</th>";
echo "<th>".$lang_label["alert"]; echo "<th>".$lang_label["alert"]."</th>";
echo "<th>".$lang_label["action"]; echo "<th>".$lang_label["action"]."</th>";
echo "<th class='p10'>"; echo "<th class='p10'>";
echo "<label for='checkbox' class='p21'>".$lang_label["all"]." </label>"; echo "<label for='checkbox' class='p21'>".$lang_label["all"]." </label>";
echo '<input type="checkbox" class="chk" name="allbox" onclick="CheckAll();"></th>'; echo '<input type="checkbox" class="chk" name="allbox" onclick="CheckAll();"></th>';
@ -227,17 +227,19 @@ if (comprueba_login() == 0) {
$sql="SELECT * FROM tagente WHERE direccion = '".$row["source"]."'"; $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 $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)){ if ($row2=mysql_fetch_array($result2)){
echo "<td class='datos'><a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row2["id_agente"]."'><b>".dame_nombre_agente($row2["id_agente"])."</b></a>"; echo "<td class='datos'>
<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row2["id_agente"]."'>
<b>".dame_nombre_agente($row2["id_agente"])."</b></a></td>";
} }
else { else {
echo "<td class='datos'>".$row["source"]; echo "<td class='datos'>".$row["source"]."</td>";
} }
echo "<td class='datos'>".$row["value_custom"]; echo "<td class='datos'>".$row["value_custom"]."</td>";
echo "<td class='datos'>"; echo "<td class='datos'>";
if ($row["status"] <> 0) if ($row["status"] <> 0)
echo "<a href='index.php?sec=usuario&sec2=operation/users/user_edit&ver=".$row["id_usuario"]."'><a href='#' class='tip'>&nbsp;<span>".dame_nombre_real($row["id_usuario"])."</span></a>".substr($row["id_usuario"],0,8)."</a>"; echo "<a href='index.php?sec=usuario&sec2=operation/users/user_edit&ver=".$row["id_usuario"]."'><a href='#' class='tip'>&nbsp;<span>".dame_nombre_real($row["id_usuario"])."</span></a>".substr($row["id_usuario"],0,8)."</a>";
echo "<td class='datos'>".$row["timestamp"]; echo "<td class='datos'>".$row["timestamp"]."</td>";
echo "<td class='datos' align='center'>"; echo "<td class='datos' align='center'>";
if ($row["alerted"] != 0 ) if ($row["alerted"] != 0 )
echo "<img src='images/dot_yellow.gif' border=0>"; echo "<img src='images/dot_yellow.gif' border=0>";
@ -263,8 +265,9 @@ if (comprueba_login() == 0) {
} }
echo "</form></table>"; echo "</form></table>";
} } else {
else { echo '<font class="red">'.$lang_label["no_snmp_agent"].'</font>';} echo "<div class='nf'>".$lang_label["no_snmp_agent"]."</div>";
}
} }
else { else {