Brian De Wolf bebaaba626 fix sshcollector errors when devices are empty (#391)
While setting up an sshcollector, I found that the script doesn't handle an
arpless device very gracefully.  The log looks like:

	[46567] 2018-04-10 16:59:08  warn WARNING: no entries received from <IP>
	Can't use string ("1") as an ARRAY ref while "strict refs" in use at perl5/bin/netdisco-sshcollector line 114, <__ANONIO__> line 3.

This is fixed by making the process function always return the expected
structure, even if it's empty.  After this error, the following errors showed
up:

	[53232] 2018-04-10 17:06:15  warn WARNING: no entries received from <IP>
	[53210] 2018-04-10 17:06:15  info  [134.71.0.126] arpnip - retrieved 0 entries
	Use of uninitialized value in sprintf at perl5/bin/netdisco-sshcollector line 119, <__ANONIO__> line 3.
	[53210] 2018-04-10 17:06:15  info arpnip - processed  ARP Cache entries from 1 devices

This is because $stats{entry} only becomes an integer by being incremented, so
if there aren't any entries, it never exists.  This is fixed by starting it at 0.
2018-04-10 21:12:20 +01:00
2018-01-21 21:51:04 +00:00
2017-08-21 20:24:21 +01:00
2018-01-15 18:47:01 +00:00
2018-02-01 11:27:14 +00:00
2018-03-26 22:59:11 +01:00
2018-03-22 21:38:56 +00:00
2018-01-16 12:42:00 +00:00
2018-03-26 22:59:11 +01:00
2018-03-26 22:59:11 +01:00
2018-02-03 19:12:16 +00:00

CPAN version Release date Build Status Docker Image

Netdisco is a web-based network management tool suitable for small to very large networks. IP and MAC address data is collected into a PostgreSQL database using SNMP, CLI, or device APIs. Some of the things you can do with Netdisco:

  • Locate a machine on the network by MAC or IP and show the switch port it lives at
  • Turn off a switch port, or change the VLAN or PoE status of a port
  • Inventory your network hardware by model, vendor, software and operating system
  • Pretty pictures of your network

See the demo at: https://netdisco2-demo.herokuapp.com/

Installation

Netdisco is written in Perl and is self-contained apart from the PostgreSQL database, so is very easy to install and runs well on any linux or unix system. We also have docker images if you prefer.

It includes a lightweight web server for the interface, a backend daemon to gather data from your network, and a command line interface for troubleshooting. There is a simple configuration file in YAML format.

Please check out the installation instructions on CPAN.

You can also speak to someone in the #netdisco@freenode IRC channel, or on the community email list.

Description
No description provided
Readme 11 MiB
Languages
Perl 73.2%
JavaScript 12.8%
CSS 6.5%
Raku 3.5%
PLpgSQL 2.7%
Other 1.3%