Commit Graph

51 Commits

Author SHA1 Message Date
Akihiro Uchida fcc7b32c64 handle NAT corner case for snmp-recon.pl
(cherry picked from commit 0ad577941a)
2015-12-11 13:07:15 +01:00
Ramon Novoa 59d4b9d1f0 Use NetAddr::IP and pandora_ping for network scans.
(cherry picked from commit 8b5e103d57)
2015-09-10 09:09:12 +02:00
Ramon Novoa d9764c0f6a Completely removed nmap network scans.
(cherry picked from commit 7d40ea754f)
2015-09-09 11:41:17 +02:00
Ramon Novoa e482c0d6ab Allow multiple connections between two hosts.
(cherry picked from commit 7f21572ac2)
2015-09-07 11:50:22 +02:00
Ramon Novoa 18495a23e5 Brute force all known connection methods. A lot slower, but seems to
work better.

(cherry picked from commit a54e99feba)
2015-06-30 16:34:41 +02:00
Ramon Novoa cfd7590efc Several improvements to the SNMP layer 2 recon script. 2015-06-03 17:16:59 +02:00
Ramon Novoa e2c45548fe Fixed a typo in a module name. 2014-10-27 13:21:34 +01:00
Ramon Novoa dacf92d7ce Added a last check for host interface names. 2014-10-10 16:44:21 +02:00
Ramon Novoa c3b6c88bfb Fixed interface names. 2014-10-02 20:18:54 +02:00
Ramon Novoa 69c0911f8a Make sure other parameters are properly read from pandora_server.conf. 2014-10-02 16:27:54 +02:00
Ramon Novoa 3c319aa11a Use snmp_timeout instead of a fixed value for the SNMP recon script. 2014-10-02 13:44:17 +02:00
Ramon Novoa cff9f8bc99 Renamed interface modules to match those created by the SNMP Wizard. 2014-09-19 12:27:18 +02:00
Ramon Novoa 666097c434 Added modules for ifce incoming and outgoing traffic and small fixes. 2014-09-18 18:27:41 +02:00
ramonn 5565e19348 2014-08-07 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl,
	  util/recon_scripts/wmi-recon.pl: Set a default value
	  for nmap_timing_template.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10392 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-07 11:50:26 +00:00
ramonn 93874598d5 2014-08-07 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf.new,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  util/recon_scripts/snmp-recon.pl,
	  util/recon_scripts/wmi-recon.pl: Added a new parameter to control how
	  aggressive nmap should be.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10391 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-07 10:43:25 +00:00
ramonn 752b7a9fee 2014-06-24 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Improved host connection.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-24 13:20:19 +00:00
vgilc 6b7fb2db11 2014-06-24 Vanessa Gil <vanessa.gil@artica.es>
* util/recon_scripts/snmpdevices.pl: Deleted file.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-24 10:24:59 +00:00
ramonn b877fbfaa6 2014-06-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Removed an unused module.

	* util/recon_scripts/snmp-recon.pl: Always perform a brute-force network scan.
	  Connect hosts via traceroute if no L2 information is available.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10218 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-17 11:21:51 +00:00
ramonn 62f657adc9 2014-06-03 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Create a ping module for agents that do
	  not respond to SNMP.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10093 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-03 13:46:38 +00:00
ramonn 3d04ceaeb8 2014-05-30 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm
	  lib/PandoraFMS/DataServer.pm: Ignore the agent group coming from the XML
	  if autocreate_group is set.

	* util/recon_scripts/snmp-recon.pl: Changed the default value for a
	  router-less scan.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10045 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-30 10:01:23 +00:00
jsatoh 70c784c5a9 2014-05-10 Junichi Satoh <junichi@rworks.jp>
* util/recon_script/ipmi-recon.pl, util/recon_script/snmpdevices.pl,
	util/recon_script/wmi-recon.pl: Added support for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9907 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-10 02:09:44 +00:00
ramonn 49b97b8bf8 2014-05-05 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Added debug messages.

	* util/recon_scripts/wmi-recon.pl: Added to repository. WMI Recon script.

	* lib/PandoraFMS/WMIServer.pm,
	  util/recon_scripts/snmp-recon.pl: Small fixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-05 14:57:10 +00:00
jsatoh f06c6200c2 2014-04-27 Junichi Satoh <junichi@rworks.jp>
* util/recon_scripts/snmp-recon.pl: Added support for FreeBSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-27 04:16:31 +00:00
ramonn ac93b78aed 2014-04-04 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Do not load MIB files (DISPLAY-HINTS may
	  cause MAC addresses to be displayed in a different format).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9722 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-04 09:31:44 +00:00
ramonn dc4774fe35 2014-04-04 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Lowered the number of retries.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9721 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-04 08:30:53 +00:00
ramonn e9610d5e1a 2014-04-03 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Remove the symbolic labels from
	  enumeration values.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9716 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-03 15:40:44 +00:00
ramonn e52efabdb7 2014-04-03 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Fixed a typo.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9715 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-03 15:11:03 +00:00
ramonn 069eec8e35 2014-04-03 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Added to the repository. Recon SNMP L2
	  network scan script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9709 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-03 10:40:35 +00:00
zarzuelo 37eb4ca968 2014-01-14 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Added address check
	to avoid create empty agents when exist agents with a secondary
	IP into the range for incident #459



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-01-14 15:31:16 +00:00
slerena c3c551e6ee 2013-02-28 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of
        uninitialized value in string" errors.

        * lib/PandoraFMS/Core.pm: Fixed more ugly notices due
        uninitialized vars.

        * util/recon_scripts/snmpdevices.pl: Fixed due new interface.
 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7755 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 15:52:46 +00:00
darode 6d086d11f4 2012-10-23 Dario Rodriguez <dario.rodriguez@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed an error in snmpdevices.pl
        which has a double safe_input.

        MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7081 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-23 07:19:40 +00:00
vgilc 6122a8acd4 2012-08-16 Vanessa Gil <vanessa.gil@artica.es>
* util/recon_scripts/snmpdevices.pl: Added several networks and ips
	to recon scripts.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6870 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-16 15:49:18 +00:00
vgilc 4092271ff8 2012-08-16 Vanessa Gil <vanessa.gil@artica.es>
* util/recon_scripts/snmpdevices.pl: Added several communities
	to recon scripts.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-16 11:55:18 +00:00
darode 5f3c0c15d5 2012-05-09 Dario Rodriguez <dario.rodriguez@artica.es>
* util/plugin/ipmi-plugin.pl,
	util/recon_scripts/ipmi-recon.pl: Fixed some bugs of plugin and
	recon

	MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6275 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-09 07:40:24 +00:00
koichirok 95950df2ad 2012-04-19 Koichiro Kikuchi <koichiro@rworks.jp>
* conf/pandora_server.conf.windows,
	  conf/pandora_server.conf,
	  lib/PandoraFMS/DB.pm
	  lib/PandoraFMS/Core.pm
	  lib/PandoraFMS/SNMPServer.pm
	  lib/PandoraFMS/Config.pm
	  lib/PandoraFMS/ProducerConsumerServer.pm
	  bin/pandora_server
	  FreeBSD/pandora_server.conf
	  util/pandora_db.pl
	  util/recon_scripts/snmpdevices.pl
	  util/recon_scripts/ipmi-recon.pl
	  util/plugin/pandora_inventory_change.pl
	  util/plugin/pandora_server_status.pl
	  util/pandora_manage.pl
	  util/pandora_recode_db.pl
	  util/pandora_dbstress.pl: Now pandora_server supports MySQL
	 server running on non-standard port.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-20 03:56:09 +00:00
darode 5cc2fd33ef 2011-10-28 Dario Rodriguez <dario.rodriguez@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a bug related to main loop
	and broadcast address. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5098 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-10-28 12:45:31 +00:00
darode 6fa5ec2145 2011-10-10 Dario Rodriguez <dario.rodriguez@artica.es>
* util/plugin/ipmi-plugin.pl: Added first version of ipmi plugin.
	* util/recon_scripts/ipmi-recon.pl: Added first version of ipmi recon task



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5053 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-10-10 14:21:00 +00:00
darode c7ba124a5b 2011-09-28 Dario Rodriguez <dario.rodriguez@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a bug which creates duplicated
	modules when running the script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5016 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-28 07:59:03 +00:00
darode bd250bfc78 2011-09-12 Dario Rodriguez <dario.rodriguez@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed some problems with the script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4938 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-12 11:44:09 +00:00
zarzuelo d3014b1bc0 2011-09-01 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl
	util/recon_scripts/snmpdevices.pl: Fixed entities conversions



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-01 07:57:03 +00:00
zarzuelo 231f49adb0 2011-07-21 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed undeclared variable



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-21 13:01:30 +00:00
zarzuelo f04550513e 2011-07-08 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fiexd bug in recon script



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4531 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-08 08:46:18 +00:00
zarzuelo e066ecf2d8 2011-07-07 Sergio Martin <sergio.martin@artica.es>
* Makefile.PL
	lib/PandoraFMS/ReconServer.pm
	util/recon_scripts/snmpdevices.pl: Added disabled
	condition to recon tasks, readd NetAddr dependence and
	fix several bugs in addres loop into recon script



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4516 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 08:48:38 +00:00
zarzuelo 59d115f07a 2011-06-30 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Improved recon script 
	to update existing modules, add a new parameter optative -a 
	to force show downed interfaces (only up are processed by default)
	Get the interfaces ip (if is setted) and put it in the status interface
	module description



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4506 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-30 16:33:05 +00:00
ramonn 771ac06c12 2011-04-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/WMIServer.pm,
	  lib/PandoraFMS/PluginServer.pm,
	  lib/PandoraFMS/DB.pm,
	  lib/PandoraFMS/ProducerConsumerServer.pm,
	  lib/PandoraFMS/PredictionServer.pm,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  bin/pandora_server,
	  util/pandora_db.pl,
	  util/pandora_manage.pl,
	  util/recon_scripts/snmpdevices.pl: Adding support for PostgreSQL and
	  Oracle (not complete).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4213 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-13 16:28:59 +00:00
slerena 7128397c61 2011-03-15 Sancho Lerena <slerena@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a typo in interface 
        detection :-(



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4091 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-15 17:43:59 +00:00
zarzuelo 3367ac9a1b 2010-12-09 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a typo from the
	default server path in configuration



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3655 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-09 09:08:05 +00:00
zarzuelo 903967d1fb 2010-12-07 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed the snmp recon script 
	example to recognize the not consecutive interfaces



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3654 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-12-07 16:43:11 +00:00
zarzuelo 5a86c70352 2010-11-02 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a missed typo



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3498 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-02 16:45:53 +00:00
zarzuelo 4c01fbb497 2010-11-02 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a module types bug and
	html entities codification



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3497 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-02 16:43:44 +00:00