From 61669be531070d5d3360f31b62b69e47986157b4 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 1 Aug 2016 14:59:09 -0500 Subject: [PATCH] Application doc updates Mysql requires php-cli and mysql extension Older versions of systemd don't support --now --- doc/Extensions/Applications.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index 24d277ee8a..01a80c8499 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -47,6 +47,8 @@ Note: if you change the path you will need to change the path in `scripts/agent- ##### Agent [Install the agent](#agent-setup) on this device if it isn't already and copy the `mysql` script to `/usr/lib/check_mk_agent/local/` +The MySQL script requires PHP-CLI and the PHP MySQL extension, so please verify those are installed. + Unlike most other scripts, the MySQL script requires a configuration file `/usr/lib/check_mk_agent/local/mysql.cnf` with following content: ```php @@ -57,6 +59,8 @@ $mysql_host = 'localhost'; $mysql_port = 3306; ``` +Verify it is working by running `/usr/lib/check_mk_agent/local/mysql` + ### NGINX NGINX is a free, open-source, high-performance HTTP server: https://www.nginx.org/ @@ -165,8 +169,7 @@ mkdir -p /usr/lib/check_mk_agent/plugins /usr/lib/check_mk_agent/local | xinetd | systemd | | --- | --- | -| `/etc/init.d/xinetd restart` | `systemctl enable --now check_mk.socket` | - +| `/etc/init.d/xinetd restart` | `systemctl enable check_mk.socket && systemctl start check_mk.socket` | 8. Login to the LibreNMS web interface and edit the device you want to monitor. Under the modules section, ensure that unix-agent is enabled. 9. Then under Applications, enable the apps that you plan to monitor.