add example for ngnix
Message-ID: <53fa171b.9hb3ajAVXXG4myTB%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: f617a1cc2967dd90fc8b3ada481de4d9cae780e9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f617a1cc2967dd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Aug 24 18:47:15 2014 +0200
Moved config examples to subdirectory, add example for ngnix
---
agents/{ => cfg_examples}/apache_status.cfg | 0
agents/{ => cfg_examples}/jolokia.cfg | 0
agents/{ => cfg_examples}/logwatch.cfg | 0
agents/cfg_examples/nginx_status.cfg | 16 ++++++++++++++++
agents/{ => cfg_examples}/sqlplus.sh | 0
checkman/nginx_status | 17 +----------------
6 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/agents/apache_status.cfg b/agents/cfg_examples/apache_status.cfg
similarity index 100%
rename from agents/apache_status.cfg
rename to agents/cfg_examples/apache_status.cfg
diff --git a/agents/jolokia.cfg b/agents/cfg_examples/jolokia.cfg
similarity index 100%
rename from agents/jolokia.cfg
rename to agents/cfg_examples/jolokia.cfg
diff --git a/agents/logwatch.cfg b/agents/cfg_examples/logwatch.cfg
similarity index 100%
rename from agents/logwatch.cfg
rename to agents/cfg_examples/logwatch.cfg
diff --git a/agents/cfg_examples/nginx_status.cfg b/agents/cfg_examples/nginx_status.cfg
new file mode 100644
index 0000000..68805dd
--- /dev/null
+++ b/agents/cfg_examples/nginx_status.cfg
@@ -0,0 +1,16 @@
+# Example configuration file. If you do not supply
+# a configuration file then autodetection is being tried.
+
+servers = [
+ {
+ "protocol" : "http",
+ "address" : "localhost",
+ "port" : 80,
+ },
+ {
+ "protocol" : "https",
+ "address" : "localhost",
+ "port" : 443,
+ "page" : "nginx_status",
+ },
+]
diff --git a/agents/sqlplus.sh b/agents/cfg_examples/sqlplus.sh
similarity index 100%
rename from agents/sqlplus.sh
rename to agents/cfg_examples/sqlplus.sh
diff --git a/checkman/nginx_status b/checkman/nginx_status
index 02ffc02..e3bc1ae 100644
--- a/checkman/nginx_status
+++ b/checkman/nginx_status
@@ -43,22 +43,7 @@ description:
The plugin tries to autodetect all running nginx servers. If that fails
for some reason you need to create the configuration file
{/etc/check_mk/nginx_status.cfg} and configure your servers in that file.
- Take a look at the example section for the content of that file.
-
-examples:
- servers = [
- {
- 'protocol' : 'http',
- 'address' : 'localhost',
- 'port' : 80 ,
- },
- {
- 'protocol' : 'https',
- 'address' : 'localhost',
- 'port' : 443 ,
- 'page' : 'my-server-status',
- },
- ]
+ You find an example of that file in your agent directory ({share/check_mk/agents}).
inventory:
One service per web server will be created.