mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update Applications.md (#4665)
docs: Updated Applications to clarify apache setup Split apache into two parts, one for agent and one for SNMP extend * Update Applications.md Added verification step for apache-stats.py * Update Applications.md * Updated numerical order
This commit is contained in:
@@ -28,22 +28,27 @@ Different applications support a variety of ways collect data: by direct connect
|
|||||||
|
|
||||||
|
|
||||||
### Apache
|
### Apache
|
||||||
|
Either use SNMP extend or use the agent.
|
||||||
##### SNMP Extend
|
##### SNMP Extend
|
||||||
1. Download the script onto the desired host (the host must be added to LibreNMS devices)
|
1. Download the script onto the desired host (the host must be added to LibreNMS devices)
|
||||||
```
|
```
|
||||||
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/apache-stats.py -O /etc/snmp/apache-stats.py
|
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/apache-stats.py -O /etc/snmp/apache-stats.py
|
||||||
```
|
```
|
||||||
2. Make the script executable (chmod +x /etc/snmp/apache-stats.py)
|
2. Make the script executable (chmod +x /etc/snmp/apache-stats.py)
|
||||||
3. Edit your snmpd.conf file (usually /etc/snmp/snmpd.conf) and add:
|
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)
|
||||||
|
4. Edit your snmpd.conf file (usually /etc/snmp/snmpd.conf) and add:
|
||||||
```
|
```
|
||||||
extend apache /etc/snmp/apache-stats.py
|
extend apache /etc/snmp/apache-stats.py
|
||||||
```
|
```
|
||||||
4. Restart snmpd on your host
|
5. Restart snmpd on your host
|
||||||
5. Verify it is working by running /usr/lib/check_mk_agent/local/apache
|
|
||||||
6. (In some cases urlgrabber needs to be installed, in Debian it can be achieved by: apt-get install python-urlgrabber)
|
|
||||||
7. (If you get error like "Can't locate LWP/Simple.pm". libwww-perl needs to be installed, apt-get install libwww-perl)
|
|
||||||
8. On the device page in Librenms, edit your host and check the `Apache` under the Applications tab.
|
|
||||||
|
|
||||||
|
##### Agent
|
||||||
|
[Install the agent](#agent-setup) on this device if it isn't already and copy the `apache` script to `/usr/lib/check_mk_agent/local/`
|
||||||
|
|
||||||
|
1. Verify it is working by running /usr/lib/check_mk_agent/local/apache
|
||||||
|
(If you get error like "Can't locate LWP/Simple.pm". libwww-perl needs to be installed: apt-get install libwww-perl)
|
||||||
|
2. On the device page in Librenms, edit your host and check the `Apache` under the Applications tab.
|
||||||
|
|
||||||
|
|
||||||
### BIND9 aka named
|
### BIND9 aka named
|
||||||
|
|||||||
Reference in New Issue
Block a user