mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header (#12749)
* Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header * Raspberry Pi: Add new test data * Raspberry Pi: Make styleci happy * Raspberry Pi: Fix some more style issues * Raspberry Pi: Use d_echo for array debug * Raspberry Pi: Prevent processing if the extension is not present * Raspberry Pi: Make styleci happy * Raspberry Pi: Update test data * Raspberry Pi: Remove debugging
This commit is contained in:
@@ -130,6 +130,7 @@ by following the steps under the `SNMP Extend` heading.
|
||||
1. [Puppet Agent](#puppet-agent) - SNMP extend
|
||||
1. [PureFTPd](#pureftpd) - SNMP extend
|
||||
1. [Raspberry PI](#raspberry-pi) - SNMP extend
|
||||
1. [Raspberry PI GPIO Monitor](#raspberry-pi-gpio-monitor) - SNMP extend
|
||||
1. [Redis](#redis) - SNMP extend
|
||||
1. [RRDCached](#rrdcached) - SNMP extend
|
||||
1. [SDFS info](#sdfs-info) - SNMP extend
|
||||
@@ -1893,6 +1894,40 @@ the user snmpd is using with `ps aux | grep snmpd`
|
||||
|
||||
5. Restart snmpd on PI host
|
||||
|
||||
## Raspberry Pi GPIO Monitor
|
||||
|
||||
SNMP extend script to monitor your IO pins or sensor modules connected to your GPIO header.
|
||||
|
||||
### SNMP Extend
|
||||
|
||||
1: Make sure you have wiringpi installed on your Raspberry Pi. In Debian-based systems for example you can achieve this by issuing:
|
||||
|
||||
```
|
||||
apt-get install wiringpi
|
||||
```
|
||||
|
||||
2: Download the script to your Raspberry Pi. `wget
|
||||
https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/rpigpiomonitor.php
|
||||
-O /etc/snmp/rpigpiomonitor.php`
|
||||
|
||||
3: (optional) Download the example configuration to your Raspberry Pi. `wget
|
||||
https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/rpigpiomonitor.ini
|
||||
-O /etc/snmp/rpigpiomonitor.ini`
|
||||
|
||||
4: Make the script executable: `chmod +x /etc/snmp/rpigpiomonitor.php`
|
||||
|
||||
5: Create or edit your rpigpiomonitor.ini file according to your needs.
|
||||
|
||||
6: Check your configuration with `rpigpiomonitor.php -validate`
|
||||
|
||||
7: Edit your snmpd.conf file (usually `/etc/snmp/snmpd.conf`) and add:
|
||||
|
||||
```
|
||||
extend rpigpiomonitor /etc/snmp/rpigpiomonitor.php
|
||||
```
|
||||
|
||||
8: Restart snmpd on your Raspberry Pi and, if your Raspberry Pi is already present in LibreNMS, perform a manual rediscover.
|
||||
|
||||
## Redis
|
||||
|
||||
SNMP extend script to monitor your Redis Server
|
||||
|
Reference in New Issue
Block a user