* pandora_config.pm: Now stores $pa_config->{'server_id'}
available for any function in Pandora FMS Server.
* pandora_db.pm: Several verbosity level adjustements in logger
functions in all code. Some debug code purged. Alert code now
should store group correctly in events. Renamed
"processed_by_server" field from tagente_estado by "running_by",
updated some code. pandora_updateserver() now stores also server
version.
* pandora_network.pm: pandora_serverkeepaliver now run more
exactly and does not apply any delay. Module selection now uses
utimestamp AND the new running_by to know that other instance of
server is currently running this module. TCP code has moved to
function pandora_query_tcp() -code cleanup-. UDP code deleted
(doesn't work, and never used!). Fixed important bug in ICMP Proc
that causes constant FLIPFLOP in monitors since last commit. Fixed
also a problem from that version updating status timestamp. Lastry
field only be used now for checking 24hr without updating tdata
table.
* pandora_server.conf: Updated some text and formatting, more
clear now.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@406 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* tip.css, pandora.css: Some updates to fix render in tooltips and
datos3 background color.
* config.php: Version update.
* operation/menu.php: Added reporting suboption: Custom Graph Builder.
* operation/reporting/graph_builder.php: New custom and combined
graphic generator that uses new function from fgraph
graphic_combined_module().
* reporting/fgraph.php: new function graphic_combined_module() to
generate combined graphs. Needs to finish implementation to show
alerts and evetns (most work done). Function
grafico_db_agentes_purge() now uses Pear Graph instead jpgraph.
* operation/agents/exportdata.php: Now uses indexes and improve
the overall speed.
* operation/agents/estado_grupo.php: Rewritten version, much more
fast than previous.
* operation/events/events.php: Fixed code to mass delete/update
and added some audit control points.
* pandora_db.php: audit_db() now uses utimestamp. event_insert()
now uses utimestamp. Added function
give_agent_id_from_module_id().
* operation/agents/estado_ultimopaquete.php: Now render in red
timestamp for "outdated" data. Fixes some minor problems with
module groups and interval rendering.
* operation/agents/estado_monitores.php: now uses utimestamp.
* operation/agents/ver_agente.php: Uses lang_label labels for some
texts. Fixed image bug.
* operation/servers/view_server.php: Added version of server and
some cosmetic adjustments.
* godmode/db/db_main.php: Applied new graphic.
* godmode/agentes/module_manager.php: Now sort by modulegroup.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Changed MyISAM tables to InnoDB. Deleted charset
definition to Latin1. Some changes to be consecuent with the data.
Deleted unnecesary field from tagente_estado. Added tmodule table and
a field in tagente_module to point there. Fixed some default dates to
become the same. Removed mysqldump comments.
* pandoradb_data.sql: Removed mysqldump comments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@404 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Updated SQL.
* pandoradb_data.sql: Updated data. Some info must be corrected
before final version (network components, groups and some other).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_tools.pm: Added sqlWrap function to manage quotes.
* pandora_network.pm: MAJOR changes in internal architecture: Now
uses 10 threads for manage network tasks and one only to keep
server alive. Now catch TERM signal and log it. New function to
check UDP services. This should be enought for improve network
server performance until 2.0 version :-)
* pandora_db.pm: pandora_calcula_alerta now calls execute_alert
and clenanup alert code. Fixed bug with Internal audit
alert. Addded fix from Dassing to pandora_writestate and added
more fixes for 24hr data problem that include fix
odule_generic_data.. functions. pandora_audit () now uses
utimestamp also.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Default value of flag field in tagente_module
changed to 1, so the module is forced to be executed the first
time.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, pandoradb_data.sql: Solve small problem in last commit
with groups table and language code for more than 5 chars (as ast_es).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_recon: Startup script for recon server.
* pandora_recon.pl: Major code cleanup. First "complete" version,
this sould be enought for a while. Works for me.
* pandora_db.pm: Added generic functions to add incident . Added
function give_network_component_profile_name(). Now updates
correctly recon server status in pandora_updateserver function
call.
* pandora_network.pm: Replaced Net::Ping::External usage with
Net::Ping library. This should fix many problems with some
distros. Added pandora_ping_icmp() function to check ICMP boolean.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@398 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* functions_db.php: Added give_network_profile_name() function.
* language_en.php: Added new strings.
* index.php, ver_agente.php, estado_generalagente.php: Some style
fixes.
* view_server.php: Added support for recon servers. Added LAG
check for server processing queue.
* view_server_detail.php: Added, to get updated information in
realtime for queues processed by recon server.
* modificar_agente.php: Now deletes associated IP addresses when
deleting an agent.
* manage_network_templates*.php: Manage network templates / profiles.
* manage_recontask*.php: Editor for network tasks (recon server).
* menu.php: Added new options.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@397 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Upgraded scheme, many changes and many tables
added. I Need to commit the new "preloaded" data for this scheme,
give me some days, this stuff are on development.
* includes/styles/*: Many additions to reflect new menu options,
and the tab menu title.
* reporting/fgraph.php: Minor changes to format progressbar.
* godmode/modules/*: Many many changes and additions (manage_*)
for the new management system using tabs :-)
* include/languages/language_es_es.php: Many additions.
* operation/servers/view_server.php: Implemented detailed load for
each servertype and latency time to each server to detect problems
with high load.
Many changes in godmode subsystem. Not detailed at this time.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_dbstress.pl: Upgraded. Now admits one agent or
all agent.
* bin/pandora_recon.pl: New network recon server, to autoexplore
new machines and add to monitorization automatically. Not
finished, first version, first commit to SVN :-)
* bin/pandora_db.pm: Now pandora_writestate() writes new fields
current_interval, processed_by_server into tagente_estado
table. This increase seeks for Unknown modules, and to know what
server manage the module (data or network).
* bin/pandora_server.pl: Small changes in banners.
* bin/pandora_network.pl: Small changes in banner. Small
optimization, now server_id is only checked once.
* bin/pandora_config.pm: Small changes in banner. Added support to
new reconserver, added config hash "servermode" to maintain a
single var with servertype. Now renders in console real server
name at startup and a "all correct" message after initializing.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@393 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/alert_manager.php, modificar_agente.php,
operation/agentes/estado_generalagente.php: Small changes
with table lines.
* include/styles/pandora.css: Reduce data_box class one pix.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@391 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* images/info.png: New image, replace old info.gif.
* images/help.png: Change colour.
* include/styles/pandora.css: Changed colour in nf class. Small changes
in other colours.
* include/styles/menu.css: Small colour change in menu border.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions*.php: Some reorganization, moved some funtions
from functions.php. Added recursive functions to implement group
hiearchy (group_belong_group, agent_belong_group).
* godmode/agentes/module_manager.php, configurar_agente.php:
Module edition/add now works :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Modified, but needs update!, not
finished.
* .png: Many files added.
* Massive commit. Updated almost every file for agent
visualization, module visualizacion, agent management, index,
styles, and more. Added many icons, and altered so many files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/god.css: Moved style block.
* include/styles/link.css: Moved style block.
* include/styles/op.css: Moved style block.
* include/styles/pandora.css: Added some clases for new
appearance. Needs to be improved, not finished yet !.
* include/config.inc.php: Changed version number.
* index.php: Some changes for new block disposition using
data_box class and other changes.
* operation/agentes/ver_agente.php: Now shows data in three
tabs. Needs to be improved, but functional.
* operation/agentes/estado_generalagente.php: Change in title
order. This should be the way to show title and subtitle since
now.
* operation/messages/message.php: Changed icon, and fix problem in
CSS. Deleted class: Classes with only fix weight should be avoided
from now and added in code just with a style attribute, it
generates too many classes in main CSS.
* images/bottom-*-corner.gif: Added.
* general/footer.php: Needs to be updated.
* general/links_menu.php: New style in use (different color for
top).
* godmode/agentes/module_manager.php: New file to manage in tabs
agent configuration. Almost functional, needs fix.
* godmode/agentes/alert_manager.php: Content of alert management
for agent manager, now in a individual file to be shown in a tab.
* godmode/agentes/configurar_agente.php;
* godmode/agentes/agent_manager.php: New file to manage in tabs
agent configuration. Almost functional, needs fix.
* godmode/menu.php: New style in use (different color for top).
This is a partial commit not fully functional, need to be done due
to many changes in a temporal development computer. Sorry for
problems to people that are testing SVN version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@387 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* reporting/Image: Added to repository (at last!) Image Graph
package (not original, copy from Babel Enterprise project, has
some modification for antialiasing -disabled- due to problems on
some environments.
* include/styles/pandora.css: Added new styles for new layour
(pending to do, not finished yet, i need help, Raul).
* include/languages/language_en.php: Some strings added.
* operation/agentes/ver_agente.php: Changes for adding tabs and
new style, not finished.
* operation/servers/view_server.php: NEW feature: network server
load. Needs to be improved :)
* images/image_problem.png: Static image for problems rendering
graph.
* images/console: Added graphcs for active console, not used yet
(backgrounds).
* pandoradb.sql: Fixed some problems in last commit.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@384 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_dbstress.pl: Deleted, valid one is on /util
* util/crea_modulos_ping.php: This tool create two modules for
each existing agents. Used to create ICMP PROC and ICMP DATA
network module types to test new Network infraestructure.
* util/lista_ip.txt: Our testing IP field :-)
* util/agent_creator.php: This PHP console script create a bunch
of agents with it's modules (500 agents with 20 modules each by
default) to test huge environments.
* util/pandora_dbstress.pl: Updated.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@383 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Solved small problems that caused some tables not
to be created.
* operation/active_console/lib/db_functions.php: Remove ".." in include
path for config file.
* general/logon_ok.php: Use new styles and small check to show some text if
no data.
* include/styles/pandora.css: New styles.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@380 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Upgraded SQL. Improved lenght for some fields.
* index.php: Better permission checks
* operation/agentes/estado_ultimopaquete.php: Changed some
parameters for agent graphics.
* operation/agentes/estado_generalagente.php: Changed some
parameters for agent graphics.
* reporting/fgraph.php: MAJOR UPGRADE. Replacement for three main
graphics from agents now using Image Graph.
* reporting/stat_win.php: MAJOR UPGRADE.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@379 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css: Updated to have new styles for
installer.
* include/config.inc.php: New skeleton for config, used in wizard.
* install.php: NEW wizar/installer for console.
* index.php: Some modifications for main page.
* operation/incidents/incide*: Some header changes.
* operation/active_console/index.php: Header changes.
* images/*: New images for wizard.
* general/error_*.php: New messages for wizard.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_db.pm: Now updates and uses utimestamp fields in
tagent_data, tagent_data_string and tagent_status.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: added unixtime field to tagente_datos,
tagente_datos_string and tagente_estado tables. Future queries
will use UNIX time instead of "Human" timestamp strings.
* index.php: Small fix of duplicated body html tag.
* agentes/estado_ultimopaquete.php: [DEBUG] Add a debug ICON for new
graph... need to be delted.
* /active_console/styles/main.css, and many .js: Style correction
(massive changes), only indented and commented, no changes in
code.
* reporting/fgraph.php: CURRENTLY CHANGING CODE, NOT USE.
* reporting/stat_win.php: Unified parameter parsing.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Pagination function now works fine.
* operation/incidents/incident.php, indicent_detail.: Incident
update/inser goes to main incident view. More usable
interface. Pagination works fine, needs to adjust SQL to use LIMIT
syntax for more optimized code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Added function to get
info for events (return_event_description().
* include/languages/language_en.php: More new strings.
* include/functions.php: Pagination improved !. not finished yet.
* pandora_console/index.php: Added some credits to main page.
* operation/incidents/incident.php: Improved incident
visualization. Fixed some render bugs in last raul's commit :->
* operation/incidents/incident_detail.php: Now incidents could be
"reported" using event button for submit incident.
* operation/events/events.php: Pagination is now using LIMIT SQL
syntax, and pagination works fine. Several issues fixed, and added
function to report incident from here.
* images/ok.gif, cancel.gif: Changed icon.
* images/control_start_blue.png: Added.
* images/page_lightning.png: Added.
* images/control_rewind_blue.png: Added.
* images/control_end_blue.png: Added.
* images/control_fastforward_blue.png: Added.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@372 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server/specs/fedoracore5/pandora_server.spec:
Fixed small bugs with some .pm files behaviur and logs
paths.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Fixed bug 1643627, some style
changes. Also solve small bug due to use id_os and os_version as the same
var.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server/specs/fedoracore5/pandora_server.spec:
/var/log/pandora was not created with the correct perms,
fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@367 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server/specs/fedoracore5/pandora_server.spec:
Fixed more nosenses related with symlink
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@365 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* help/[gl|de]/*.php: New files. At this moment, is a redirect to the
english help.
* operation/menu.php: Small style correction.
* active_console/*.php: Change from <? to <?php, change comments to put them
inside <?php. Small changes in js scripts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@359 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php; Style correction. Solve small
bug not showing any table if no alert defined.
* include/config.php: Add some comments and change order of error reporting
function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/*.php: New file for german language. Some
updates for the rest of files.
* pandoradb_data.sql: Add entry for german language.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@357 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* linux/pandora_agent_daemon: Some adjustements for a generic
daemon launcher. Need to be improved with some code from Dagget
and Manu.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@354 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
Importing data from Azabel brach. This commit is a little
chaotic :-). Almost all code it's break apart, so no problems
should not be generated. New graphical console will be called
"Active console", as temporal name.
* pandora_graphical_console.sql: New SQL for active console.
* pandora_graphical_console_data.sql: New SQL data for A.C.
* images/op9.gif: New icon for operation menu.
* operation/active_console/index.php: Main index for A.C. this
includes now a require function for config.php.
* operation/active_console/imagenes/*: Lots of images for
A.C. Need to be ordered or something.
* operation/active_console/scripts/*: Most of the Javascript code
for the A.C is here.
* operation/active_console/lib/*: Main include PHP code for A.C
* operation/active_console/styles/*: CSS Styles for A.C.
* pandora_graphical_console.INSTALL: How to install A.C
* include/styles/cb/: Unused, deleted.
* include/styles/op.css: Changes need to activate new A.C option.
* include/languages/language_en.php: New string for A.C
* operation/menu.php: New menu option.
* include/config.php: New version and set error reporting to 0. At
this time A.C reports many warnings and notices and dont work
properly, so keep this low at the moment.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@353 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console.spec: Now pandora console is installed
with the correct name, not with the release name after
"pandora_console".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@351 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Linux/pandora_agent.sh: Solved problem with encoding. Now XML
its parsed before sending it, replacing all & characters.
NOTE: This changes needs to be copied to AIX, Solaris, HPUX and BSD agents.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@350 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Linux/pandora_agent.conf: Added more tokens to config
file. Added logfile, temporal and encoding issues.
* Linux/pandora_agent.sh: Many changes on agent. Solved problems
with encoding, changed all paths, fixed minor bugs, and some work
with XML.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@349 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f