* bin/pandora_snmpconsole: Added support to get custom value,
custom type and custom OID. Code for trap2agent forward feature
not fully implemented, don't work yet, need finish.
* util/pandora_db.pl: Now delete also events and session information.
String data is using utimestamp to purge (faster!).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1137 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/ssh_pandoraplugin.sh: New remote SSH exec plugin.
* util/plugin/ssh-exec_pandoraplugin.pl: Deleted old one because
it has A LOT of problematic dependencies.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1096 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Added more info about some dependencies.
* pandora_package_installer: The same.
* util/pandora_db.pl: Fixed problem deleteing tevent table.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1082 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/extensions/update_manager.php: Check for an empty
variable so it doesn't give a warning
* pandora_console/extensions/update_manager/lib/libupdate_manager_utils.php,
libupdate_manager_client.php: Removed referenced variables from
function calls so it doesn't give a warning that it is deprecated.
* pandora_server/util/pandora2ast: Pandora to Asterisk script. Check README
for how to install it and use it
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1046 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_package_installer: New script for install binary
PandoraFMS servers precompiled with pp.
* pandora_recon: Added detection of Net::Traceroute::PurePerl
to disable parent detection if dependencies not installed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1026 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Makefile.PL: Added WMI and fixed lot of small things.
* pandora_server_installer: Fixed several things.
* pandora_wmi: Launcher script added.
* lib/PandoraFMS/Config.pm: Update version.
* lib/PandoraFMS/DB.pm
* lib/PandoraFMS/Tools.pm: Added defined check in limpia_cadena().
This should fix warning message on some calls.
* bin/pandora_snmpconsole: Fixed code for SNMP TRAP alerts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1024 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm, bin/pandora_server: Enabled again
downtime scheduler. Now works fine, tested.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1018 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: Disabled downtime server code until
we can review changes in db structure from new code / console.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1004 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_recon: New functional recon server. It implements
different recon tasks based on OS type. Uses a production/consumer
thread model, detec OS typew and assign automatically network profiles
(including new WMI components) and WMI, Plugin, Network and Prediction
servers, taken the first master server that could found. Uses xprobe2
external tool to detect remote OS.
* Makefile.PL: Added new dependencies (HTML::Entities), and new
binary tool for controlled time executing (pandora_exec), used now
by pandora_wmi and pandora_plugin.
* Config.pm: Fixed problem parsing xprobe2 command.
* DB.pm: Functions pandora_create_agent() and pandora_event() moved
from Tools.pm to here. Removed some old DEBUG messages.
* Tools.pm: Moved pandora_create_agent() and pandora_event() to DB.pm
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1002 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_wmi: Removed the timeout mechanism.
* bin/pandora_plugin: Removed the timeout mechanism. pandora_exec is
used instead.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@996 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DB.pm: FIXED a stupid bug that makes impossible to
process any data :(. This bug was introducted by me at 25 July.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network: Added a defined() check for tcp_send string.
* pandora_server: Added call to function pandora_planned_downtime().
This implements planned downtimes on data server only.
* DB.pm: Small optimization on bad data: pandora_writedata and
pandora_writestate return -1 on bad values and skip processing data.
More checks on undefined data (pandora_writestate).
Added code for planned downtimes, in function pandora_planned_downtime().
Patch for adding [RECOVER] on f2/f3 if blank. Submitted by Kato Atsushi
Now Monitor down has priority Warning and Monitor UP priority normal.
* pandora_*servers*: Added inmediatly status change in tserver table on
controlled shutdown, this could be a ordered shutdown, a kill or a CTRL-C
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@974 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Makefile.PL: Removed reference to export_server.
* DB.pm: Fixed bug that causes to do not store string data. Added checks
for aviod null text and skip max/min checks for string types.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network: Minimal style changes. Added status change in
tserver table on controlled shutdown.
* pandora_server: Added status change in tserver table on controlled
shutdown. Minimal changes and optimizations. Recheck for bad XML is
adjusted to 3 instead 10.Fixed problem with "blank" agent names. Added
support for async types (data, proc and string).
* config.pm: Added support for new config token: max_log_size. This
stablish a max log filesize.
* DB.pm: Added support for postprocess (as simple multiplier value).
Fixed problem with continuous update of laststart in server keepalive.
Updated also several logger priorities (raise them).
* Config.pm: pandora_get_os() fixed for void OSes. Logger() implements
a file-rotation system with a maximum in bytes for PandoraFMS log file.
* pandora_server.conf: Updated with new options and removed some from 1.3.1
* pandora_export: Deleted skeleton file por export server.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@967 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server/pandora_network
* pandora_server/pandora_recon
* pandora_server/pandora_plugin
* pandora_server/pandora_prediction: Updated the queries it performs. Made the MASTER server query a nested query, that way you don't join thousands of records (it was up to 6000 in my environment) wh
ile you only need a few records. It won't log as a slow query (indexes are used)
* pandora_console/operation/agentes/estado_grupo.php: Fixed the issue where all data was 0-ed out. There was an if-then-else construction that wasn't working well
* pandora_console/operation/agentes/networkmap.php: Made more extensive error messages that explains WHY it wasn't generating. Then also made it so the image is cached instead of regenerated every tim
e (currently hardcoded at 5 min.).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@951 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/operation/agentes/estado_grupo.php: Fixed some extra spaces that made the URL look ugly
* pandora_console/operation/agentes/status_monitor.php: Made a nested SQL query out of the flagging operation, much faster now.
There is still a bug here that I was trying to fix. Everything is 0-ed on this page. I will find out why tomorrow
* pandora_console/images/console/background: Added some backgrounds
* pandora_server/pandora_server_installer: Some typos that made some things fail and fixed the wheel/root thing for debian/non-debian distro's
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@950 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_network: Added a patch from godzone-nz, to implement
in TCP remote checks a multi-request meth
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_wmi: Finished first functional version. Uses wmic from
samba project (Ubuntu has in official repos). This is a first
functional prototype, not to be tested on production sites.
* pandora_plugin: fixed some bad strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@923 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/plugin/udp_nmap_plugin.sh: Added UDP port check plugin
that uses NMAP to check if UDP ports are open.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@904 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_dbstress.pl: Added suppor for "text" moduletypes.
* pandora_recon: Now is multithreaded. Better management of already
registered IP's. Better status update. Some fixes (xprobe2 crash).
* Config.pm: Added support for recon_threads token.
* Tools.pm: added pandora_trash_ascii(), autocreate
set agent in learning mode automatically.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@879 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* config.pm: Added options for xprobe2, and autocreate.
* tools.pm: Added functions pandora_create_agent(), pandora_get_os(),
and pandora_event() (this has been moved from DB.pm).
* pandora_server.conf: Added options for xprobe2, autocreate and
autocreate_group.
* pandora_network: Added support for TCP scanning (not implemented in
console yet), parent detection using traceroute, OS fingerprinting with
xprobe2, event creation using central functions, and some optimizations.
* pandora_server: Added support for agent autocreation, OS detection from
the XML header, and event notification "new_agent" type.
* pandora_recon: First code to implement traceroute functionality
using Pureperl module. Added code for remote OS fingerprinting.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@874 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_recon: First code to implement traceroute functionality
using Pureperl module. Added code for remote OS fingerprinting.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf: Added new internal MTA feature config tokens .
* pandora_server_installer: Copy default plugins to /usr/share/pandora/util
* Config.pm: New MTA feature tokens, and added event when starting server.
* DB.pm: Changes in execute_alert function (now passes several hash refs).
Alerts and events now use new format of events. Add support for new inter-
nal MTA/SMTP alert feature. Discovered and FIXED a very annoying bug on
need_update usage in write_state function that was making a HUGE
degradation when too many non-init modules in network server.
* Tools.pm: Added pandora_sendmail() function. Needs Mail::Sendmail dep.
* All servers: Support for pandora_shutdown notify on event database.
* pandora_snmpconsole: Updated SNMP alert mechanism. Need to be tested!.
* pandora_recon: Now generate an event when discover a new host.
* util/pandora_db.pl: Added support to automatically delete events.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@859 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_snmpconsole: Removed "/var/run/pandora" we are
not using that directory anymore, but "/var/run".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@856 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server_installer: Fixed stupid bug related with
the symbolic links of the core components.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@839 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Config.pm: Added dataserver_thread config token
* bin/pandora_plugin: Some minimal thread improvements (yield)
* bin/pandora_server: Uses dataserver_thread token to set up
number of starting threads.
* bin/pandora_network: Added more thread yields.
* util/plugin: Added new directory for "standard" plugins.
Added the first plugins here. Expect more in the future :-)
* plugin/openvpn_pandoraplugin.pl: Connects to openvpn daemon
and report number of active sessions.
* plugin/ssh-exec_pandoraplugin.pl: Execute a remote command
using Perl (Net::SSH::Perl) SSH functions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@815 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_plugin, bin/pandora_prediction,
bin/pandora_network: Consumer threads now check for data
availability after lock() to avoid race conditions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@814 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: The data server now uses the producer/consumer
model, like the rest of the servers. .checksum files are no longer
used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@813 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f