Go to file
2024-04-09 08:35:45 +02:00
.gitignore Updated gitignore to ignore all conf files 2024-03-20 09:39:09 +01:00
crontab.example Reverted inclusion of surveillance script in crontab and made it more obviously an example file. 2024-03-20 09:48:36 +01:00
LICENSE-gpl2.txt Create LICENSE-gpl2.txt 2017-10-05 11:23:22 +02:00
logrotate Added a logrotate script 2015-09-03 10:49:31 +02:00
netmonitor.sh Use timeout for each ping 2024-04-09 08:35:45 +02:00
nmgrep Printing the result is useful. 2021-10-21 15:47:38 +02:00
README.md Added a readme, and made the script not depend on a hardcoded install dir 2024-03-19 16:58:05 +01:00

Netmonitor - track routers, switches and clients on a network

This script maps the active client devices in a network, by talking to the router and switches. Each client is tracked by MAC address, VLAN and network outlet.

Configuration

  • router.conf Contains the name or IP address of the router. Only one allowed.
  • secret.conf Contains the snmp secret used to authenticate with the router.
  • switches.conf Lists the names or IP addresses of switches to be monitored, one per line.
  • vlans.conf Lists the VLAN numbers to be monitored, one per line.

When reading switches.conf and vlans.conf, the script ignores everything after the first word on each line, so each item can be commented:

some.switch.example  the switch under my desk
another.switch.example the other one