From aa7a5040820afa6b2b9a683ebb1722a4c66afdd0 Mon Sep 17 00:00:00 2001 From: sorano Date: Thu, 29 Sep 2016 15:07:22 +0200 Subject: [PATCH] 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 --- doc/Extensions/Applications.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index 475bdc4094..94ec4b8993 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -28,22 +28,27 @@ Different applications support a variety of ways collect data: by direct connect ### Apache +Either use SNMP extend or use the agent. ##### SNMP Extend 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 ``` 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 ``` -4. 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. +5. Restart snmpd on your host +##### 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