Commit Graph

410 Commits

Author SHA1 Message Date
Esteban Sanchez 72087be96d 2009-02-12 Esteban Sanchez <estebans@artica.es>
* include/javascript/jquery.tablesorter.js,
	include/javascript/jquery.tablesorter.pager.js: Added to repository.
	Missing files for compound alerts editor.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1450 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 11:26:16 +00:00
Esteban Sanchez 14991124f3 2009-02-12 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_compound.php: Added support to
        update alert elements. Also default operator for first element is NOP.

        * include/functions_alerts.php: Added delete_alert_compound_elements().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1448 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 10:33:49 +00:00
Esteban Sanchez e94a8f0fcf 2009-02-11 Esteban Sanchez <estebans@artica.es>
* general/main_menu.php, include/styles/menu.css: Selected menu style
	is done with a CSS classs. Slide effect removed. Submenus have now
	white background.

	* godmode/agentes/alert_manager.php: Allow creation of alerts without
	actions which have sense in compound alerts.

	* include/javascript/jquery.pandora.js: Added showMessage() function.

	* godmode/agentes/module_manager_editor.php: Use new showMessage()
	jQuery function.

	* godmode/alerts/configure_alert_compound.php: Added to repository.
	New compound alert editor interface.

	* godmode/alerts/alert_compounds.php: Added to repository. Compound
	alert list.

	* godmode/alerts/configure_alert_template.php: Better style for steps
	of the editor.

	* godmode/menu.php: Added compound alerts option. Changed default page
	on Manage alerts.

	* include/styles/pandora.css: Added style for editor steps. Added new
	generic classes.

	* include/functions.php: Added a new line when creating script list.

	* include/functions_agents.php: Fixed alert tables fields. Renamed
	get_agent_alerts_compound() and improved the returning value of
	get_agent_alerts().

	* include/functions_alerts.php: Added new functions to manage compound
	alerts. Avoid SQL errors when using process_sql functions.

	* include/functions_reporting.php: Temporary disabled compound alert
	reports.

	* include/functions_ui.php: Fixed format_alert_row() to fit compound
	alerts.

	* operation/agentes/alerts_status.php: Allow compound alert
	validation. Removed effect of cluetip.

	* pandoradb.sql, pandoradb_migrate_20_to_21.sql: New compound alert
	tables (talert_compound, talert_compound_elements and
	talert_compound_actions).
	
	* godmode/alerts/alert_list.php: Added to repository. Shows a list of
	all the alerts defined. Would be improved in the future to allow
	sorting and filtering.

	* index.php, godmode/snmpconsole/snmp_alert.php,
	include/functions_db.php: Code style correction.

	* godmode/agentes/configurar_agente.php: Removed old compound alerts
	code



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1443 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-11 16:55:04 +00:00
guruevi 801344cb7e 2009-02-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/main_menu.php: Modified it to go with Esteban's idea
	
	* include/styles/menu.css: Modified it to go with Esteban's idea

	* include/javascript/jquery.pandora.js: Removed previous jquery stuff

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1441 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-10 20:29:45 +00:00
guruevi 503dc8a4d2 2009-02-09 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/logon_ok.php: No tr in thead causes safari to spit an error
	
	* general/main_menu.php: Added jQuery animated menu rolling
	
	* include/styles/menu.css: Removed CSS-based menu rolling

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-09 21:00:13 +00:00
guruevi 2f9e337ad5 2009-02-09 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/header.php, general/footer.php: Made it comply with standards
	
	* general/main_menu.php: Fixed some typo's.
	
	* include/javascript/jquery.pandora.js: This was loading an extension 
	that has a separate file already
	
	* include/functions.php: Added process_page_head and process_page_body
	these are callback functions for ob_start and add functionality like
	conditional loading and external scripts in the correct places. Also adds
	override functionality to certain items (like refresh) from anywhere
	
	* include/javascript/time_en.js: Added as a placeholder
	
	* extensions/update_manager.php: Fixed some typos
	
	* operation/agentes/exportdata.php, operation/agentes/networkmap.php,
	operation/events/events.php, operation/extensions.php, 
	operation/incidents/incident_detail.php, 
	operation/reporting/reporting_viewer.php, 
	operation/visual_console/render_view.php, 
	godmode/agentes/alert_manager.php,
	godmode/agentes/module_manager_editor.php,
	godmode/agentes/planned_downtime.php,
	godmode/alerts/configure_alert_template.php,
	godmode/alerts/configure_alert_action.php,
	godmode/groups/configure_group.php, godmode/reporting/graph_builder.php,
	godmode/reporting/map_builder.php, godmode/reporting/reporting_builder.php
	godmode/snmpconsole/snmp_alert.php: Changed javascript, css and jquery 
	loading to the new buffer callback handlers.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1436 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-09 18:41:54 +00:00
raulmateos 2bc21e1e23 2009-02-09 Raul Mateos <raulofpandora@gmail.com>
* include/config_process.php, general/error_noconfig.php, index.php:
	Back to old build status. Now error_noconfig.php doesn't use build.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1435 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-09 17:55:32 +00:00
raulmateos 02d8363146 2009-02-09 Raul Mateos <raulofpandora@gmail.com>
* include/styles/images/toggle.png: Added png file. GIF will be removed.
	* include/styles/menu.css, ie.css: Updated to use toggle.png. Updated
	headers.
	* include/config_process.php: Moved build to index (it was used by other
	files that didn't included this file). Updated year.
	* index.php: Updated build.
	* general/error_noconfig.php: Updated year.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1433 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-09 12:03:03 +00:00
guruevi 7d5f21053e 2009-02-06 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/styles/menu.css: Updated to make it look good again
	
	* general/main_menu.php: Updated to make it look good again. Also 
	simplified to allow easier modification. If you want to make things
	visible/selected again externally (JS or COOKIE), use the IF/ELSE 
	construction with the big warning.
	
	* general/links_menu.php: Updated to conform to CSS
	
	* include/javascript/jquery.cookie.js: Added to mess with cookies for 
	menu. I will do this in a future update

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1431 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-06 21:18:03 +00:00
guruevi 0c212b40f8 2009-02-05 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/header.php: Added alt tags to images
	
	* include/functions_db.php: Fixed get_agent_modules function
	
	* include/functions_html.php: Fixed print_image and print_table to conform
	to standards
	
	* index.php: Removed extra closing div that shouldn't be there and conform
	to standards
	
	* godmode/agentes/alert_manager.php: Fixed JavaScript messyness for XHTML

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1430 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-05 15:36:06 +00:00
Esteban Sanchez 3f4e66287b 2009-02-05 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Hide actions and templates form.
	Removed unncessary check when there's no module set.

	* include/styles/ie.css: Added to repository. IE fixes. Added fixes
	for menu, because IE doesn't support hover in other elements than a.

	* include/styles/menu.css: Removed font-family property.

	* include/functions_db.php: Style correction.

	* index.php: Added IE CSS fixes if needed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1429 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-05 12:12:42 +00:00
Ramon Novoa 6965af931f 2009-02-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php,
          godmode/snmpconsole/snmp_alert.php: Fixed SNMP alerts.

        * operation/snmpconsole/snmp_view.php: Show Custom OID as a tooltip.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1424 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-04 18:47:59 +00:00
Esteban Sanchez e7db8d22d2 2009-02-04 Esteban Sanchez <estebans@artica.es>
* general/main_menu.php: The menu has been rewritten to be more
        usable, bright and colorful. It's similar to Wordpress administration
        menu. It requires a bit of javascript, but can still works without it.
        Besides, Pandora can remember the menus positions using cookies.

        * include/javascript/jquery.pandora.js: Added javascript code for
        menu handling. Added cookie plugin.

        * include/styles/menu.css: Rewritten to be adapted to new menu system.

        * include/styles/images/toggle.gif: Added to repository.

        * include/styles/pandora.css: Set align-top to agent list table under
        Manage agents.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1423 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-04 16:07:43 +00:00
Esteban Sanchez 068d3fbcb6 2009-02-02 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/configurar_agente.php,
	godmode/agentes/module_manager.php,
	godmode/agentes/module_manager_editor.php,
	godmode/agentes/module_manager_editor_data.php,
	godmode/agentes/module_manager_editor_network.php,
	godmode/agentes/module_manager_editor_plugin.php,
	godmode/agentes/module_manager_editor_prediction.php,
	godmode/agentes/module_manager_editor_wmi.php: Agent module editions
	rewritten. The interface should be clearer now and SNMP walking much
	more faster, since it's done with AJAX. Some cleanup might be needed
	yet.

	* godmode/agentes/module_manager_editor_common.php: Added to
	repository. Common part for agent module editors.

	* images/edit.png, images/spinner.gif: Added to repository.

	* include/javascript/jquery.form.js: Added to repository. jQuery form
	plugin.

	* include/javascript/jquery.pandora.js: Added to repository. Special
	Pandora addons for jQuery library.

	* include/javascript/pandora.js: Added an extension to Array
	javascript objects to check if an array has an element.
	
	* include/styles/pandora.css: Added styling for new module editors.

	* include/functions_db.php: Added get_moduletype_description().

	* index.php: Added Pandora jQuery extensions.

	* pandoradb.sql, pandoradb_migrate_20_to_21.sql: Removed alert_text
	useless field from talert_templates.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-02 15:40:31 +00:00
guruevi e10fac58c1 2009-01-30 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/config.inc.php: Updated documentation on LDAP implementation.
	
	* include/functions_db.php: Restored get_agent_modules_count function.
	
	* index.php, include/config_process.php, godmode/setup/setup.php: Now you
	can enforce https with a config variable

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1415 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-30 15:09:16 +00:00
Esteban Sanchez cb185df47f 2009-01-30 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Fixed the page title. Show the
	right latest value in non-numeric modules. jQuery selectors fixed to
	work with many alerts.

	* extensions/update_manager/load_updatemanager.php: Fixed setup error
	messages.

	* include/functions_db.php: Added get_agent_module(). Added filter
	paremeter to get_agent_modules(). return_value_agent_module() renamed
	to get_agent_module_last_value() and do not transform to integer.
	Removed useless get_agent_modules_count().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1414 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-30 12:48:08 +00:00
jorgonzalez 550374e535 2009-01-30 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* include/help/en/help_alert-matches.php,
          include/help/en/help_serverlag.php,
          include/help/en/help_time_stamp-comparation.php,
          include/help/en/help_timesource.php: Modified help files.

        * include/help/es/help_alert-matches.php,
          include/help/es/help_serverlag.php,
          include/help/es/help_time_stamp-comparation.php,
          include/help/es/help_timesource.php: Added Spanish help files.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1412 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-30 08:29:31 +00:00
Esteban Sanchez 95aea9312e 2009-01-29 Esteban Sanchez <estebans@artica.es>
* include/auth/mysql.php: Style correction on switch statements.

	* include/functions_ui.php: Added a flag to
	print_alert_template_example() to allow values replacement.

	* include/functions_reporting.php: Fixed a notice message for
	unitialized values.

	* operation/events/events.php: get_users() result can not be passed
	directly to print_select().

	* pandoradb_migrate_20_to_21.sql: Style correction. Please, put each
	alter table in a row so it can be easier to read.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-29 09:06:38 +00:00
jorgonzalez 9cc35c6e04 2009-01-28 Jorge Gonzalez <jorgegonz@artica.es>
* include/functions.php, operation/agentes/sla_view.php,            
          operation/agentes/ver_agente.php,                                 
          operation/reporting/reporting_xml.php,                            
          operation/reporting/reporting_viewer.php: Fixed typo.

        * include/languages/index.pot: Updated PO template.

        * include/languages/pt_BR.po, include/languages/es.po,              
          include/languages/pt_BR.mo, include/languages/es.mo: Updated
          translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-28 11:25:57 +00:00
slerena ee961ee649 2009-01-26 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: Fixed count of total alerts. Ignore
	delete pending modules.
	
	* operation/agentes/status_monitor.php: Added filter for pending delete 
	modules.
	
	* reporting/fgraph.php: Fixed typo in combined graphs that makes them
	unusable. Now renders fine.
	
	* pandora_console_upgrade: New script to upgrade console from latest code. 
	Also upgrade database (from 2.0 to 2.1/Trunk version).
	
	* godmode/agentes/alert_manager.php: Notice fix when no modules defined.

	* godmode/agentes/configurar_agente.php: Delete agent renames modulename to
	avoid that a pending delete module makes this module name unusable until
	efective deletion.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1404 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-26 16:51:14 +00:00
guruevi 39e7711b20 2009-01-26 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/styles/pandora.css: Fixed several small errors. Now it looks 
	more similar on other browsers.
	
	* operation/events/events.php: Fixed filter to use get_users ()
	
	* reporting/fgraph.php: Fixed several issues with user graphs

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-26 16:48:22 +00:00
Esteban Sanchez 42777dbe01 2009-01-26 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: print_alert_template_example() now
	replaces also the value.

	* godmode/alerts/configure_alert_template.php: Removed first render
	example using javascript.

	* godmode/alerts/alert_templates.php: Removed parameter replacement
	since it's now done in the function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1397 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-26 10:44:26 +00:00
raulmateos 637e9673da 2009-01-24 Raul Mateos <raulofpandora@gmail.com>
* install.php: Added code to show current console URL in step 3. 
	Updated header. Spaces changed to tabs.
	* include/functions_reporting.php: Give default value to several vars that
	caused two notice errors. Updated header.
	* include/functions_db.php: Solved notice error in search page that caused
	not to show the user. It uses get_users() function from mysql.php.
	ldap.php and dev.php define the same function, and uses different value, so	they could give an error in the search page, NOT TESTED. Updated header.
	* /extensions/update_manager/sql/update_manager.sql: Changed default text
	value for description column, it was giving a SQL error.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1396 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-24 20:11:07 +00:00
slerena c4d38a3362 2009-01-22 Sancho Lerena <slerena@artica.es>
* images/*: Added more icons and backgrouns for visual console.
	
	* map_builder.php: Added support for warning image. Shows in preview. Fixed
	grabbing image info if no file provided.
	 
	* functions_visualmap.php, functions_db.php: Added support for warning status
	in the maps. Also fixed status propagation from linked maps on agent object.
	
	* include/auth/mysql.php: Fixed typo when update password.
	
	* pandoradb_migrate_20_to_21.php: Added some missing lines for tusuario 
	table (comments).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1393 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-22 19:34:11 +00:00
guruevi 30f8018f84 2009-01-22 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/auth/ldap.php: Finally fixed (hopefully) the last major bug
	
	* godmode/extensions.php: Fixed something that prevented links from 
	generating
	
	* extensions/update_manager/lib/libupdate_manager.php: Fixed proxy not
	being filled in and giving error messages. Now the thing works.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1392 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-22 18:56:31 +00:00
guruevi de4a9dd6c8 2009-01-22 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/auth/mysql.php, include/auth/ldap.php, 
	operation/users/user_edit.php, godmode/users/configure_user.php, 
	godmode/users/user_list.php: Fixed some minor problems and annoyances

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1391 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-22 18:20:29 +00:00
guruevi 8aba7e55e7 2009-01-22 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandoradb_migrate_20_to_21.sql, pandoradb.sql: Added user table updates
	You'll have to do the alter tables before upgrading to the latest version
	but it adds functionality and enforces unique usernames
	
	* general/header.php: Don't rely on session variables
	
	* include/auth/dev.php, include/functions_ui.php: Minimal changes to 
	comply with guidelines and new links
	
	* include/auth/mysql.php, include/auth/ldap.php: Added functions and 
	removed bugs.
	
	* include/functions_db.php: Added some functions for profile handling
	
	* include/functions_html.php: Text input is now readonly instead of 
	disabled. This allows copying data from the textbox.
	
	* include/styles/tip.css: Set min-width instead of fixed width for tip
	that way we can have bigger tips without overflowing
	
	* operation/reporting/reporting_xml.php: Added auth there as well
	
	* operation/users/user.php, operation/users/user_edit.php, 
	operation/users/user_statistics.php: New auth functions, better look
	
	* index.php: Process_user_contact sits in logon_db. Saves a query
	
	* godmode/users/configure_user.php, godmode/users/user_list.php: New
	auth functions, better look.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-22 17:44:33 +00:00
jorgonzalez 4d810463b2 2009-01-22 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* include/help/en/help_wmiquery.php,
	  include/help/en/help_map_builder.php,
	  include/help/en/help_postprocess.php,
	  include/help/en/help_date_format.php,
	  include/help/en/help_prediction_source_module.php,
	  include/help/en/help_planned_downtime.php,
	  include/help/en/help_recontask.php,
	  include/help/en/help_alerts.php,
	  include/help/en/help_tcp_send.php,
	  include/help/en/help_manage_alerts.php,
	  include/help/en/help_plugin_definition.php,
	  include/help/en/help_manageconfig.php,
	  include/help/es/help_map_builder.php,
	  include/help/es/help_network_component.php,
	  include/help/es/help_module_definition.php: Modified HTML tags,
	  fixed typos.

	* include/help/es/help_plugin_parameters.php,
	  include/help/es/help_alert_validation.php,
	  include/help/es/help_snmpcommunity.php,
	  include/help/es/help_wmiquery.php,
	  include/help/es/help_postprocess.php,
	  include/help/es/help_date_format.php,
	  include/help/es/help_prediction_source_module.php,
	  include/help/es/help_module_type.php,
	  include/help/es/help_planned_downtime.php,
	  include/help/es/help_recontask.php,
	  include/help/es/help_alerts.php,
	  include/help/es/help_snmpwalk.php,
	  include/help/es/help_tcp_send.php,
	  include/help/es/help_duplicateconfig.php,
	  include/help/es/help_wmifield.php,
	  include/help/es/help_manage_alerts.php,
	  include/help/es/help_wmikey.php,
	  include/help/es/help_plugin_definition.php,
	  include/help/es/help_alert_type.php,
	  include/help/es/help_snmpoid.php,
	  include/help/es/help_wminamespace.php,
	  include/help/es/help_manageconfig.php: Added Spanish help files.

	* include/languages/es.po, include/languages/es.mo: Updated Spanish
	  translation.

	* include/languages/index.pot: Updated po template.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-22 14:00:05 +00:00
guruevi 84d1863854 2009-01-21 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Removed auth init because I fixed stat_win.php
	
	* include/functions_html.php: Added border and onclick. Fixed double quote

	* reporting/fgraph.php: Fixed some minor bugs
	
	* reporting/stat_win.php: Added authentication there too

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1387 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 18:55:29 +00:00
Esteban Sanchez e3bd76dccb 2009-01-21 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Fixed a little bug that avoids
	showing the alert editor.
	
	* godmode/alerts/alert_templates.php: Added the example text for
	alert templates to the tooltip.

	* godmode/alerts/configure_alert_template.php: Function
	print_alert_template_example() moved to functions_ui.php. Little fix
	when max or min values are not numerics.

	* include/functions_ui.php: Added function
	print_alert_template_example().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1385 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 14:56:55 +00:00
Esteban Sanchez 0a5e52c41c 2009-01-21 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Added support to disable or
	enable an alert. Improved a bit the interface to make it cleaner
	because the modules are a bit separated now.

	* include/functions_alerts.php: Added support to disable or enable an
	alert via set_alerts_agent_module_disable(). Added a flag to choose
	wether to get disabled alerts on an agent or not.

	* ChangeLog: Style correction again. Please, be careful.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 13:07:45 +00:00
Esteban Sanchez b1bd9513d4 2009-01-21 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql, pandoradb_migrate_20_to_21.sql: Added id_agent field
	to tlayout_data. It's needed to give support to nodes in visual
	console that represents a whole agent which turns red if any module is
	down.

	* operation/visual_console/render_view.php: Removed refresh countdown
	and selection because it's now done in the page header.

	* include/functions_visual_map.php: Some fixes to support id_agent
	field in tlayout_data. Also fixed the SQL to check if any module on an
	agent is down.

	* godmode/reporting/map_builder.php: Update and insert id_agent when
	managing a node element.

	* include/styles/pandora.css: Added a style to input image elements.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 09:29:02 +00:00
Esteban Sanchez 2ec9a60273 2009-01-21 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Added the hability to delete
	actions and alert (only when it has no actions).

	* include/functions_alerts.php: Added delete_alert_agent_module() and
	delete_alert_agent_module_action().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1377 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 09:06:03 +00:00
Esteban Sanchez 497488da98 2009-01-21 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_template.php,
        include/functions_alerts.php: Added missing matches_value field on 
        creation and updating.

        * ChangeLog: Added missing path to files on previous commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 08:07:18 +00:00
slerena e033a0d669 2009-01-21 Sancho Lerena <slerena@artica.es>
* pandoradb_migrate_20_to_21.sql: Fixes some problems.
	
	* setup.php: Removed AD setup tokens.
	
	* user_list.php: Link to user edition was wrong. Restored.
	
	* functions_db.php: Support for new auth modules was missing
	and fgraph fails to render graphs.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 01:49:11 +00:00
slerena 647202d01a 2009-01-20 Sancho Lerena <slerena@artica.es>
* install.php: Added ldap module dep.

        * include/functions_reporting.php, operation/agentes/status_monitor.php
        operation/agentes/tactical.php, general/logon_ok.php: New filter options for
        warning/critical, removed old data stats and improved filters in module view



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 20:01:25 +00:00
Esteban Sanchez f9a8497252 2009-01-20 Esteban Sanchez <estebans@artica.es>
* include/functions_visual_map.php: Fixed a notice when the node looks
        for any monitor down in an agent.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1367 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 18:27:24 +00:00
guruevi 8d09a7a49a 2009-01-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* ajax.php, include/config.inc.php, include/config_process.php,
	include/functions.php, include/functions_db.php, 
	include/functions_ui.php, index.php, install.php, 
	operation/users/user.php, operation/users/user_edit.php,
	reporting/fgraph.php: Added pluggable authentication and moved functions

	* general/login_page.php, general/logon_ok.php, 
	godmode/agentes/modificar_agente.php, 
	godmode/users/configure_users.php, godmode/users/user_list.php, 
	operation/agentes/estado_agente.php, operation/incidents/incident.php, 
	operation/incidents/incident_search.php: Updated functions

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 18:21:20 +00:00
Esteban Sanchez afe99a4587 2009-01-20 Esteban Sanchez <estebans@artica.es>
* ChangeLog: Fixed tabs. Removed some conflict markups and a bit of
	style here and there.

	* index.php, godmode/setup/setup.php, include/styles/menu.css,
	operation/agentes/estado_agente.php,
	operation/agentes/estado_monitores.php,
	operation/agentes/estado_ultimopaquete.php,
	include/functions.php: Tab and spaces style correction.

	* godmode/reporting/map_builder.php: Use generic database functions
	for the insert. Now a node can represent a whole agent, changing to
	bad if any module has failed.

	* include/config_process.php: Use generic databse functions for
	inserts. Fixed an error when inserting loginhash_pwd token. Make the
	token a bit more complicated by multiplying two numbers.

	* include/functions_visual_map.php: Add support to agent nodes that
	will turn to bad icon when any module fails.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1363 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 16:43:49 +00:00
Esteban Sanchez 41a7a38ca2 2009-01-20 Esteban Sanchez <estebans@artica.es>
* include/javascript/jquery.js: Downgraded to 1.2. It was causing some
        errors in visual map edition.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 14:32:06 +00:00
slerena 191e8105c2 2009-01-20 Sancho Lerena <slerena@artica.es>
* index.php: Added support for external authentication, based on a HASH.
    
    * pandoradb.sql: New tables for local templates.
    
    * pandoradb_migrate*: Updated script.
    
    * godmode/agentes/agent_manager.php: Fixed field for inventory server.
    
    * module_manager_editor.php: Fixed snmp community for WMI modules.
    
    * module_manager_editor_*.php: New fields in editor (War/Crit, FF).
    
    * config_process.php, 
    godmode/setup/setup.php: Added new option for hash auth.
    
    * functions.php: Added again (please don't delete it) function to remove
    quotes on automatic protection (magicquotes).
    
    * menu.css: Added icon to inventory server option in the menu.
    
    * estado_monitores.php: Fix module edit link, better data render on tooltip
    
    * estado_ultimopaquete.php: Fix module edit link.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1360 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 10:37:04 +00:00
Esteban Sanchez ae5d805e08 2009-01-19 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Removed effect on AJAX tip.

        * include/functions.php: Removed deprecated function.

        * operation/agentes/estado_grupo.php, pandoradb_data.sql,
        operation/agentes/ver_agente.php, reporting/fgraph.php,
        operation/agentes/networkmap.php: Replaced references to old alert 
        system with new one.

        * operation/agentes/networkmap.php: Replaced references to old alert
        system with new one. Removed effect on AJAX tip.

        * godmode/snmpconsole/snmp_alert.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1357 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-19 15:31:56 +00:00
Esteban Sanchez 95a423e4e6 2009-01-19 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/configurar_agente.php: Removed references to old
        talerta and talerta_modulo tables.

        * godmode/agentes/alert_manager_editor.php,
        godmode/alerts/configure_alert.php: Removed from repository. It became 
        a useless file since the new alert system is implemented.

        * godmode/agentes/manage_config.php: Style correction. Copy alerts
        among agents using the new tables and structures.

        * godmode/reporting/reporting_builder.php: Do not sort report time 
        period, it was not human readable if it was alphanumeric sorted.

        * include/functions_agents.php: Fixed get_agent_alerts_simple() and
        commented get_agent_alerts_combined() code since it's not implemented 
        yet.

        * include/functions_db.php, include/functions_reporting.php: Fixed 
        function documentation format. Use structures, functions and tables of 
        the new alert system.

        * operation/reporting/reporting_viewer.php: Style correction.

        * pandoradb.sql: Removed default values on mediumtext fields because
        it was causing a SQL warning.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1356 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-19 14:42:34 +00:00
guruevi 37ef8e58de 2009-01-16 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/alerts/configure_alert_template.php: Some aesthetic fixes	and
	non-init variable fixes
	
	* include/functions_db.php: Added get_moduletypes since I needed it and
	fixed the documentation tags for 2 functions. Reparsed all documentation
	
	* include/functions_reporting.php: Fixed get_group_stats to work faster
	and now correctly returns the status even if data modules report 0.00

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1355 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-16 19:04:54 +00:00
Esteban Sanchez d4b76f5a93 2009-01-16 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql: Added new field to talert_templates to specify if the
	alert should fire when on match or mismatch of the values.

	* general/header.php: Fixed the columns width. Added a control when
	the autorefresh is clicked so the user can select the refresh time. A
	countdown is also shown when the page is set to refresh.

	* godmode/alerts/configure_alert_template.php: Control the new flag on
	templates. Added an explanation to explain when the alert is going to
	fire.

	* include/javascript/jquery.js: Updated to v1.3. It promise to be
	quicker in a lot of situations.
	
	* include/javascript/jquery.countdown.js: Updated to latest version.

	* include/styles/pandora.css: Fixed duplicated input.ok. Style
	correction. Added invisible class and a style for alert templates
	page.

	* include/functions_alerts.php: Fixed a notice error on
	clean_alert_template_values().

	* operation/visual_console/render_view.php: Removed jquery inclusion
	because it's already done in the index page.

	* general/main_menu.php: Do not add refr if it's zero.

	* index.php: Avoid the recursive addition of 1=1 when autorefresh is
	set.
	
	* pandoradb_migrate_20_to_21.sql: Added new fields on the tables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1350 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-16 10:55:29 +00:00
Esteban Sanchez 0b5d1db153 2009-01-15 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_template.php: The steps are now
	available as soon as the alert is created.

	* include/functions_alerts.php: Added validate_alert_agent_module().

	* include/functions_db.php: Removed deprecated
	process_alerts_validate(). Improved process_sql_update() to add
	a row selection parameter, the documentation and a bit fix when
	joining the fields with a coma.

	* operation/agentes/alerts_status.php: Use new functions to validate
	an alert.

	* operation/agentes/ver_agente.php: Removed validation alert codes
	since it doesn't belong here.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1346 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-15 11:52:49 +00:00
Esteban Sanchez 9a647cc395 2009-01-15 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_template.php: Max and min alerts
	were ignored.

	* include/functions_alerts.php: Ensure the max and min alert values
	order.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1345 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-15 10:54:27 +00:00
Esteban Sanchez 28df678873 2009-01-15 Esteban Sanchez <estebans@artica.es>
* include/styles/menu.css: Changed the z-index property of the menu
	which was overlapped in some cases.
	
	* include/functions.php: format_alert_row() moved to functions_ui.php

	* include/functions_ui.php: Added format_alert_row() from function.php

	* include/functions_agents.php: Added to repository.

	* include/functions_alerts.php: Added new functions
	get_alerts_agent_module_disabled(),
	set_alerts_agent_module_force_execution(),
	get_alerts_agent_module_last_fired().

	* include/functions_db.php, operation/agentes/estado_agente.php,
	operation/agentes/networkmap.php: Style correction.

	* include/functions_reporting.php: Use new functions_agent.php. Added
	a bit of documentation and style correction.

	* godmode/alerts/alert_templates.php: Improved a bit the template
	tooltip.

	* operation/agentes/alerts_status.php: Added to repository. New
	interface to list agent alerts.

	* operation/agentes/estado_alertas.php: Removed from repository.
	Replaced by alert_status.php.

	* operation/agentes/ver_agente.php: Removed flag_alert code snippet.
	Use new files added. Style correction.

	* operation/menu.php: Old files references replaced by new ones.

	* index.php: Removed build and pandora version references.

	* pandoradb.sql: Removed useless module_type field in
	talert_templates.

	* pandoradb_migrate_20_to_21.sql: Removed duplicate fields addition.
	Fixed some warnings. Added custom_id field to tagente. Style
	correction.

	* include/config_process.php: Updated build version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-15 10:21:38 +00:00
guruevi 6b9b4044e7 2009-01-14 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: New functions process_sql_insert and 
	process_sql_update. They seem to work great, let me know of any bugs.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1341 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-14 18:12:20 +00:00
slerena 12412f8b0a 2009-01-12 Sancho Lerena <lsrena@artica.es>
* functions_db.php,
        * godmode/agentes/configurar_agente.php: Delete module deletes
        tagent_data_inc record (it's a very small table).

        * reporting/fgraph.php: Fixed small problem in tagent_access graph.

        * pandoradb_migrate_20_to_21.sql: DB Schema migration script. Not
        finished (not convert old data, only add/remove structures).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1338 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 17:28:15 +00:00