Commit Graph

57 Commits

Author SHA1 Message Date
zarzuelo 92a299e056 2011-12-12 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm
	util/pandora_db.pl: Moved is_policy_module function from
	db script to Enteprise and call it through enterprise hook



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5245 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-12-12 10:55:40 +00:00
zarzuelo 856af9d818 2011-10-20 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed mistake in the last commit
	adding parameter in wrong function (decode embed decode).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-10-20 09:30:58 +00:00
zarzuelo b0a5b41ff7 2011-10-20 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed safe_input and output to
	convert manually several more extended ascii characters. 
	Revert the last fix in safe_input because Junichi warn us the
	danger of broke multibyte chars. Thanks Junichi.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5069 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-10-20 07:56:53 +00:00
zarzuelo 7253a6aa86 2011-10-19 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed safe_input function to encode
	more characters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5068 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-10-19 14:57:21 +00:00
koichirok 5e61380e76 2011-07-29 Koichiro Kikuchi <koichiro@rworks.jp>
* lib/PandoraFMS/Tools.pm: Send utf8 email properly.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4648 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-29 05:12:28 +00:00
koichirok 80bf29aca2 2011-06-23 Koichiro Kikuchi <koichiro@rworks.jp>
* lib/PandoraFMS/Tools.pm: Checked if pandora_server is already
	  running, in order to prevent multiple instances with same PID
	  file from running. And made PID file permissions 644, rather
	  than 666.

	* bin/pandora_server: Remove PID file on shutdown.

	* FreeBSD/pandora_server: Use -P option for PID file instead of
	  pgrep.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-23 03:50:31 +00:00
koichirok bdeea06d24 2011-06-15 Koichiro Kikuchi <koichiro@rworks.jp>
* lib/PandoraFMS/Tools.pm: Added FreeBSD specific code to load_average()
	  and free_mem() functions.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4447 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-15 07:22:39 +00:00
slerena 241a51bf35 2011-06-13 Sancho Lerena <slerena@artica.es>
* Tools.pm: Avoid errors when provide an empty string to md5.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-13 14:03:59 +00:00
slerena 544e1c9329 2011-04-13 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed bug #3273910. HPUX detection.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4208 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-13 15:11:21 +00:00
jsatoh 22fc4a5cde 2011-04-04 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Added UTF-8 flags deletion from multibyte
	characters when files are opened.

	* lib/PandoraFMS/DB.pm: Added mysql_enable_utf8. It enables character
	semantics (support for multibyte characters).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4161 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-04 04:59:37 +00:00
raulmateos 797a655a8c 2011-03-14 Raul Mateos <raulolfpandora@gmail.com>
* lib/PandoraFMS/Config.pm, lib/PandoraFMS/Core.pm,
        lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/DB.pm,
        lib/PandoraFMS/Tools.pm, lib/PandoraFMS/WMIServer.pm: Cleared code and
        updated year.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4089 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-14 10:39:31 +00:00
zarzuelo 7160564d65 2011-02-08 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm
	util/pandora_recode_db.pl: Added characters to translate
	to html entities into safe_input and safe_output. Clean
	repeated code into recode script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3812 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-08 16:38:38 +00:00
slerena 2bf04d4c39 2011-02-07 Sancho Lerena <slerena@artica.es>
* pandora_server/DEBIAN/control,
        pandora_server/pandora_server.spec,
        pandora_server/pandora_server.redhat.spec: Added LWP dependency for
        reverse Geocoding feature. This is included on all distros.

        * pandora_server/conf/pandora_server.conf,
        pandora_server/lib/PandoraFMS/Config.pm,
        pandora_server/lib/PandoraFMS/DataServer.pm: Added support for reverse geocoding using
        GoogleMaps api.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-07 13:45:34 +00:00
slerena fdfc84993c 2011-01-22 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Config.pm: Updated version, we're on 4.0-dev !

        * lib/PandoraFMS/Tools.pm: Detect new embedded agents




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3764 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-01-22 20:30:26 +00:00
Ramon Novoa 823d5bd602 2010-11-29 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Added ' to the list of characters to HTML
	  encode.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3642 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-29 12:56:58 +00:00
jsatoh 7806233681 2010-11-10 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Added a parameter of unsafe_chars, '<>&',
	to encode_entities(). It is support for multibyte characters.
	If it is not defined, records with multibyte characters on database
	are destroyed by 'pandora_recode_db.pl'. :(



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3562 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-10 01:11:47 +00:00
Ramon Novoa 696f3c19ad 2010-11-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: limpia_cadena removes unwanted
	  characters instead or replacing them with blank spaces.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3512 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-03 19:20:12 +00:00
zarzuelo 7fb0138400 2010-11-02 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm
	lib/PandoraFMS/Core.pm
	lib/PandoraFMS/ReconServer.pm
	lib/PandoraFMS/DataServer.pm
	lib/PandoraFMS/Tools.pm: Fixed insert db operations
	in server to store the html entities. This improves
	fix bug 3096436



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3499 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-02 17:26:34 +00:00
slerena 3061c82873 2010-10-22 Sancho Lerena <slerena@artica.es>
* Config.pm: Parsing for mta_from doesn't remove blanks, allowing to
    use a Normal name + Email address in the from.

    * Tools.pm: Email output is parsed with a html decode first. 
    Added timeticks option for tools (intented to use in the future).

    * pandora_server.conf: Example of usage in the mta_from with a fully
    composed email address.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3452 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-22 14:03:49 +00:00
jsatoh 8ad707427a 2010-10-22 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Changed ping count to for() loop instead of
	using count(-c) option in pandora_ping(). By it, ping execution can be
	finished in short time.
	Added support for Solaris.
	Changed some ping usage for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-22 05:12:03 +00:00
jsatoh fe0c0dbb3f 2010-10-21 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Fixed timeout option for FreeBSD ping.
	(Note: In ping6, '-t' option is not implemented. So, 'networktimeout'
	is not used with ping6.)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-21 10:12:38 +00:00
jsatoh 703c0d01f4 2010-10-21 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/NetworkServer.pm: Deleted FreeBSD specific SNMPGET
	definition. It is the same as Linux.

	* lib/PandoraFMS/Tools.pm: Added FreeBSD specific Ping function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3438 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-21 06:43:36 +00:00
slerena c46aef5f1e 2010-10-20 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf.windows: Sample conf for running pandora server
    on Windows (see windows.README).

    * lib/PandoraFMS/NetworkServer.pm: Adapted to have SNMPGET and PING functions
    redefined by each SO, this will allow to have native support on pandora
    to run under different OS (need to check FreeBSD and Solaris!). Windows
    support implemented.

    * lib/PandoraFMS/Core.pm: Removed ping functions here and moved to Tools.pm

    * lib/PandoraFMS/Tools.pm: Adapted Ping functions to work with any SO, at
    this time Linux and Windows only, need to check for Solaris and BSD.

    * util/windows.README: Small doc on how to make Pandora Server work on 
    Windows servers.

    * util/pandora_logrotate: Removed the index in the logrotation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3431 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-20 13:54:43 +00:00
slerena 91f6cb5780 2010-10-07 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: Removed multicast options

    * Makefile.PL: Removed need for dependencies on Mail::Sendmail
    and Traceroute::PurePerl, now are included in the Pandora FMS
    distribution.

    * lib/PandoraFMS/Config.pm: Removed options for multicast

    * lib/PandoraFMS/Traceroute.pm,
      lib/PandoraFMS/Sendmail.pm,
      lib/PandoraFMS/Traceroute/PurePerl.pm: Now included on Pandora FMS
    distribution, this will help to do easier installs of Pandora, because
    that packages was difficult to build/install in different distros.

    * lib/PandoraFMS/Core.pm: Removed the old multicast-on change enterprise
    feature, not used/supported anymore.

    * lib/PandoraFMS/ReconServer.pm: Now uses the internal Traceroute Pureperl
    implementation.

    * lib/PandoraFMS/Tools.pm: Now uses the internal Mail::Sendmail copy.

    * bin/pandora_server: Removed the multicast option from main loop.

    * FreeBSD/pandora_server.conf: Removed multicast from options.

    * util/mcast_client.pl: Deleted sample client for multicast.

    * util/pandora_logrotate: Updated the rotate options for SNMP logfile.

    * util/compaq_chassis_trap_manager2.pl: Added sample of SNMP Trap           
    postprocessor.

    * pandora_server.redhat.spec,
      pandora_server.spec,
      DEBIAN/control: Updated packages deps and other minor changes (xprobe2 is not
      mandatory now).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3365 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-07 15:09:04 +00:00
zarzuelo fdad25e9b7 2010-09-24 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Moved the util functions 
	from pandora_manage to Tools.
	* util/pandora_manage.pl: Added the apply policy
	feature: includen conf file management; modules, alerts
	and collection creation 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3290 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-24 11:09:44 +00:00
slerena f00b5163d5 2010-06-10 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Redefine downtime name and description if
	not defined.

	* lib/PandoraFMS/Tools.pm: Octopus is now known as Octopods.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2900 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-10 09:25:26 +00:00
Ramon Novoa 3add856330 2010-05-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Set a default verbosity level for logger().




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2797 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-25 13:58:38 +00:00
zarzuelo 36114f96ac 2010-05-10 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Typo fix in error message



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2684 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-10 12:22:17 +00:00
slerena 5b1ce7cc82 2010-02-18 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: New option, self_monitoring.

	* lib/PandoraFMS/Config.pm: Support for new option self_monitoring.

	* lib/PandoraFMS/Core.pm: 	Access update is not refreshed by network 
	modules anymore (gaining a lot of performance here). Added new functions
	for internal statistics and automonitoring.

	* lib/PandoraFMS/Tools.pm: New funtions for self_monitoring.

	* bin/pandora_server: Modified error handler to avoid show info about bad
	load of some optional libraries. 
	Modified general loop of maintance tasks in three
	blocks: high, medium and low latency. Placed here in fixed steps (5, 30 and
	one minute) all tasks pending before by server_threshold. Added 
	self_monitoring and internal statistic mode (for group and servers).

	* util/pandora_db.pl: Update tconfig with last time of database maintance 
	time 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2377 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 17:21:40 +00:00
eric_ross_c fbcd36d182 Testing RW access
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2360 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-15 12:25:44 +00:00
slerena 72653518fc 2009-12-18 Sancho Lerena <slerena@artica.es>
* pandora_server.spec: Added xprobe2 dep (we made the xprobe2 rpm package
	so now it's possible to satisfy dependency). Alter all paths to binary from
	/usr/local/bin to /usr/bin. Other minor issues in RPM fixed.

	* pandora_server_installer: Added description to get deps from zypper and yum.
	Installing services in debian/ubunty systems with update-rc.d. 
	Make check to link from /usr/local/bin to /usr/bin if install
	deploy binary at /usr/local. /usr/bin is the new default.

	* pandora_server_upgrade: /usr/bin as new default. Link issue fixed.

	* DEBIAN/make_deb_package.sh: Fixed Makefile replace regexp to replace all 
	target binary to put then in the jail under /usr/bin path.

	* DEBIAN/postinst: Fixed path for tentacle_server at /usr/bin

	* DEBIAN/prerm: Using native debian commands to remove services.

	* Tools.pm: If there is a problem loading something in the enterprise, show it
	to log.

	* util/pandora_server,
	util/tentacle_serverd: new path to /usr/bin/
	
	* pandora_server.conf: new path for pandora_exec to /usr/bin/

	* util/plugin/udp_nmap_plugin.sh: Check parameters before calling to namp.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2220 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-18 18:22:33 +00:00
Ramon Novoa 287a76b751 2009-11-13 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf: Updated configuration tokens.

        * lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/Config.pm,
          lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/PredictionServer.pm,
          lib/PandoraFMS/Core.pm, lib/PandoraFMS/ReconServer.pm,
          lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/NetworkServer.pm,
          lib/PandoraFMS/Tools.pm, lib/PandoraFMS/WMIServer.pm,
          bin/pandora_server: Standardized and improved logging.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-13 13:52:48 +00:00
slerena d6065cb576 2009-11-07 Sancho Lerena <slerena@artica.es>
* pandora_server_installer: A few bunch of upgrades for SUSE, added
	logrotate.d and some minor fixes.

	* pandora_server_upgrade: Some minor fixes.

	* PandoraFMS/Tools.pm: Fixes to internal SMTP Auth mechanism. 

	* util/pandora_logrotate: Much better configuration for pandora 
	logrotate config, this also rotate pandora_server.error and delete
	files after 5 days.

	* util/pandora_server: more fixes and small improvements to daemon
	script: Removed Mysql dependency on LSB, added variable for let user
	to choose timeout before KILL, and now checks for especific .conf file
	on detecting PID, this should work with several servers running in the
	same server.

	* util/plugin/ssh_pandoraplugin.sh: rewritten to use real parameters
	and be more verbose and easy to integrate in Pandora FMS Plugin server.

	* util/plugin/udp_nmap_plugin.sh: Same as above.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2097 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-08 01:38:04 +00:00
Ramon Novoa 071bf227bf 2009-11-06 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed bug #2893302.

        * util/pandora_db.pl: Fixed bug #2893303.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2090 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-06 15:57:06 +00:00
slerena e1232298d2 2009-10-20 Sancho Lerena <slerena@artica.es>
* tools.pm, core.pm: Float data with "," will be replace this
        character with "." and manage it properly as float.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2035 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-19 10:42:42 +00:00
slerena b56c3d8ef7 2009-10-15 Sancho lerena <slernea@artica.es>
* lib/PandoraFMS/SNMPServer.pm: Fixed small problem in snmp2agent
        forwarding and better implementation of server error control.
        Also solved problem with duplicated traps in SNMP console.

        * lib/PandoraFMS/Server.pm: better implementation of server error control.

        * lib/PandoraFMS/Core.pm: SNMP alerts now show the IP in _agent_ macro   

        * lib/PandoraFMS/Tools.pm: Better management of enterprise_hook on 
        opensource version. 

        * util/alert_multicast.pl: Added sample of alert script for render
        alerts as multicast XML.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-15 11:23:40 +00:00
Ramon Novoa 0205f8fd9b 2009-10-07 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm,
          lib/PandoraFMS/DataServer.pm: Reverted the way enterprise functions
          are called.

        * lib/PandoraFMS/Server.pm
          lib/PandoraFMS/ProducerConsumerServer.pm: Handle fatal errors and
          save error messages (useful for console event generation).

        * lib/PandoraFMS/Tools.pm: Improved enterprise_hook.

        * lib/PandoraFMS/Core.pm: Merged pandora_event_status into
          pandora_event.

        * bin/pandora_server, lib/PandoraFMS/Config.pm: Added restart on error
          and auto-restart features.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2010 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-07 15:10:14 +00:00
slerena bcddfe6dc9 2009-08-20 Sancho lerena <slerena@artica.es>
* lib/PandoraFMS/Tools.pm: Undone commit of 19/8 to fix ugly mesg from
        enterprise load: was  breaking enterprise....




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-20 15:48:42 +00:00
slerena 8c3452ab60 2009-08-19 Sancho lerena <slerena@artica.es>
* pandora_server.spec: Added nmap to required packages, removed xprobe2.
	
	* lib/PandoraFMS/Config.pm, conf/pandora_server.conf: New token for nmap.
	 
	* lib/PandoraFMS/ReconServer.pm: New parent detection, TCP scanning imple-
	mented using NMAP. Implemented TCP profile scanning.
	
	* lib/PandoraFMS/Tools.pm: Some reordering in pandora_get_os() gives
	more accurate OS guessing. enterprise_hook() now don't yell when enterprise
	is not found :-)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-19 19:49:55 +00:00
slerena e131606862 2008-08-19 Sancho lerena <slerena@artica.es>
* tools.pm: Added support for new Octopus device, the hardware
	sensor of Pandora FMS.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1862 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-19 02:20:54 +00:00
Ramon Novoa 3126a2a3cd 2009-08-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Add id_agente to tagente_estado when
          creating a new module.

        * lib/PandoraFMS/DataServer.pm: Added support for inventory XML files.

        * lib/PandoraFMS/Tools.pm: Moved get_tag_value function from
          DataServer.pm to Tools.pm.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-03 15:12:07 +00:00
slerena e75d58adec 2009-06-08 Sancho Leren <slerena@artica.es>
* Header updates.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1732 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-08 15:12:32 +00:00
Ramon Novoa 0207651a64 2009-04-14 Ramon Novoa <rnovoa@artica.es>
* pandora_ctl, pandora_network, pandora_wmi, pandora_plugin,
          pandora_prediction, bin/pandora_wmi, bin/pandora_plugin,
          bin/pandora_prediction, bin/pandora_snmpconsole, bin/pandora_recon,
          bin/pandora_network, pandora_recon, pandora_snmpconsole: Deleted
          from repository. Old server code and startup scripts.

        * Makefile.PL, pandora_server_installer, lib/PandoraFMS/Config.pm
          lib/PandoraFMS/DB.pm, lib/PandoraFMS/Tools.pm, bin/pandora_server,
          pandora_package_installer, pandora_server: Updated to work with the
          new code, removed unneeded dependencies, fixed some bugs etc.

        * lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/PluginServer.pm,
          lib/PandoraFMS/ProducerConsumerServer.pm, lib/PandoraFMS/Server.pm,
          lib/PandoraFMS/PredictionServer.pm, lib/PandoraFMS/Core.pm,
          lib/PandoraFMS/ReconServer.pm, lib/PandoraFMS/DataServer.pm,
          lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Added
          to repository. New server code.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1620 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-14 19:13:16 +00:00
guruevi 66ddb3b205 2009-03-26 Evi Vanoost <vanooste@rcbi.rochester.edu>
* lib/PandoraFMS/Tools.pm: Added Apple to the detected OS'es
	
	* bin/pandora_recon: Added TCP scanning if ICMP fails to more accurately
	detect systems that are firewalled from pings.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1571 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 16:33:28 +00:00
slerena e709f07fff 2009-03-05 Sancho Lerena <slerena@artica.es>
* bin/pandora_network: Better management of snmpget binary call, using
	a config setup variable and checking it in startup.
	
	* pandora_server.conf: new options added (snmpget, UDP multicast)
	
	* Config.pm: New options managed (snmpget), new version updated (3.0-dev)
	
	* DB.pm: Fixed two issues that makes me some problems on undefined values.
	
	* Tools.pm: New function to manage numerical data.
	
	* util/plugin/multicast.pl: Fixed plugin for multicast check.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1508 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 17:15:39 +00:00
raulmateos 537242bb12 2009-01-24 Raul Mateos <raulofpandora@gmail.com>
* lib/PandoraFMS/Config.pm: Changed some texts for last time. Sancho, please read diffs before commit.Use tabs instead spaces.
	* lib/PandoraFMS/Tools.pm: Header updated. Use tabs instead spaces.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1395 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-24 15:41:39 +00:00
Ramon Novoa e5aa8d34e7 2009-01-15 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Partially rewrote the alert core to support the
          new DB schemas. Compound alerts have been temporarily disabled.
          Rewrote alert macro substitution code.

        * lib/PandoraFMS/Tools.pm,
          bin/pandora_snmpconsole: Aesthetic changes to enterprise code.

        * lib/PandoraFMS/Config.pm,
          bin/pandora_network: Added support for UDP multicast status reports
          (enterprise version).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-15 12:51:26 +00:00
Ramon Novoa 35820d07ac 2008-11-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm,
          lib/PandoraFMS/DB.pm,
          lib/PandoraFMS/Tools.pm,
          bin/pandora_snmpconsole: Added support for enterprise version
          features.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1214 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-04 11:33:07 +00:00
slerena dc7c2b1f91 2008-08-22 Sancho Lerena <slerena@gmail.com>
* 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
2008-08-22 18:02:23 +00:00
slerena b8c5d66e8c 2008-08-05 Sancho Lerena <slerena@gmail.com>
* 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
2008-08-05 10:55:41 +00:00