mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update Applications.md (#8369)
Added a hint about removing /tmp/apache-snmp if the apache-stats.py script has been run manually. If run as root, it leaves behind a file which the user running snmpd cannot overwrite. Causing snmpd to not produce apache stats.
This commit is contained in:
@@ -59,7 +59,7 @@ wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/apach
|
||||
2. Make the script executable (chmod +x /etc/snmp/apache-stats.py)
|
||||
|
||||
3. Verify it is working by running /etc/snmp/apache-stats.py
|
||||
(In some cases urlgrabber needs to be installed, in Debian it can be achieved by: apt-get install python-urlgrabber)
|
||||
In some cases urlgrabber and pycurl needs to be installed, in Debian this can be achieved by: apt-get install python-urlgrabber python-pycurl . Make sure to remove /tmp/apache-snmp afterwards.
|
||||
|
||||
4. Edit your snmpd.conf file (usually /etc/snmp/snmpd.conf) and add:
|
||||
```
|
||||
@@ -68,6 +68,11 @@ extend apache /etc/snmp/apache-stats.py
|
||||
|
||||
5. Restart snmpd on your host
|
||||
|
||||
6. Test by running
|
||||
```
|
||||
snmpwalk <various options depending on your setup> localhost NET-SNMP-EXTEND-MIB::nsExtendOutput2Table
|
||||
```
|
||||
|
||||
##### Agent
|
||||
[Install the agent](Agent-Setup.md) on this device if it isn't already and copy the `apache` script to `/usr/lib/check_mk_agent/local/`
|
||||
|
||||
|
Reference in New Issue
Block a user