summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/apache/testdata
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/collectors/go.d.plugin/modules/apache/testdata/config.json20
-rw-r--r--src/go/collectors/go.d.plugin/modules/apache/testdata/config.yaml17
-rw-r--r--src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-event.txt39
-rw-r--r--src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-prefork.txt48
-rw-r--r--src/go/collectors/go.d.plugin/modules/apache/testdata/lighttpd-status.txt6
-rw-r--r--src/go/collectors/go.d.plugin/modules/apache/testdata/simple-status-mpm-event.txt24
6 files changed, 154 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/apache/testdata/config.json b/src/go/collectors/go.d.plugin/modules/apache/testdata/config.json
new file mode 100644
index 000000000..984c3ed6e
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/apache/testdata/config.json
@@ -0,0 +1,20 @@
+{
+ "update_every": 123,
+ "url": "ok",
+ "body": "ok",
+ "method": "ok",
+ "headers": {
+ "ok": "ok"
+ },
+ "username": "ok",
+ "password": "ok",
+ "proxy_url": "ok",
+ "proxy_username": "ok",
+ "proxy_password": "ok",
+ "timeout": 123.123,
+ "not_follow_redirects": true,
+ "tls_ca": "ok",
+ "tls_cert": "ok",
+ "tls_key": "ok",
+ "tls_skip_verify": true
+}
diff --git a/src/go/collectors/go.d.plugin/modules/apache/testdata/config.yaml b/src/go/collectors/go.d.plugin/modules/apache/testdata/config.yaml
new file mode 100644
index 000000000..8558b61cc
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/apache/testdata/config.yaml
@@ -0,0 +1,17 @@
+update_every: 123
+url: "ok"
+body: "ok"
+method: "ok"
+headers:
+ ok: "ok"
+username: "ok"
+password: "ok"
+proxy_url: "ok"
+proxy_username: "ok"
+proxy_password: "ok"
+timeout: 123.123
+not_follow_redirects: yes
+tls_ca: "ok"
+tls_cert: "ok"
+tls_key: "ok"
+tls_skip_verify: yes
diff --git a/src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-event.txt b/src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-event.txt
new file mode 100644
index 000000000..136b69363
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-event.txt
@@ -0,0 +1,39 @@
+127.0.0.1
+ServerVersion: Apache/2.4.37 (Unix)
+ServerMPM: event
+Server Built: Oct 23 2018 18:27:46
+CurrentTime: Sunday, 13-Jan-2019 20:39:30 MSK
+RestartTime: Sunday, 13-Jan-2019 20:35:13 MSK
+ParentServerConfigGeneration: 1
+ParentServerMPMGeneration: 0
+ServerUptimeSeconds: 256
+ServerUptime: 4 minutes 16 seconds
+Load1: 1.02
+Load5: 1.30
+Load15: 1.41
+Total Accesses: 9
+Total kBytes: 12
+Total Duration: 1
+CPUUser: 0
+CPUSystem: .01
+CPUChildrenUser: 0
+CPUChildrenSystem: 0
+CPULoad: .00390625
+Uptime: 256
+ReqPerSec: .0351563
+BytesPerSec: 48
+BytesPerReq: 1365.33
+DurationPerReq: .111111
+BusyWorkers: 1
+IdleWorkers: 99
+Processes: 4
+Stopping: 0
+BusyWorkers: 1
+IdleWorkers: 99
+ConnsTotal: 0
+ConnsAsyncWriting: 0
+ConnsAsyncKeepAlive: 0
+ConnsAsyncClosing: 0
+Scoreboard: ____________________________________________________________W_______________________________________............................................................................................................................................................................................................................................................................................................
+Using GnuTLS version: 3.6.5
+Built against GnuTLS version: 3.5.19 \ No newline at end of file
diff --git a/src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-prefork.txt b/src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-prefork.txt
new file mode 100644
index 000000000..eeafb4983
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/apache/testdata/extended-status-mpm-prefork.txt
@@ -0,0 +1,48 @@
+some.host.name
+ServerVersion: Apache/2.4.53 (Unix) OpenSSL/1.1.1
+ServerMPM: prefork
+Server Built: Apr 6 2022 16:30:59
+CurrentTime: Monday, 18-Apr-2022 11:52:39 CEST
+RestartTime: Sunday, 10-Apr-2022 06:57:34 CEST
+ParentServerConfigGeneration: 9
+ParentServerMPMGeneration: 8
+ServerUptimeSeconds: 708904
+ServerUptime: 8 days 4 hours 55 minutes 4 seconds
+Load1: 7.18
+Load5: 7.29
+Load15: 8.25
+Total Accesses: 120358784
+Total kBytes: 4252382776
+Total Duration: 35583107177
+CPUUser: 4549.96
+CPUSystem: 4142.92
+CPUChildrenUser: 776666
+CPUChildrenSystem: 609619
+CPULoad: 196.78
+Uptime: 708904
+ReqPerSec: 169.781
+BytesPerSec: 6142500
+BytesPerReq: 36178.8
+DurationPerReq: 295.642
+BusyWorkers: 70
+IdleWorkers: 1037
+Scoreboard: ___...
+TLSSessionCacheStatus
+CacheType: SHMCB
+CacheSharedMemory: 512000
+CacheCurrentEntries: 1969
+CacheSubcaches: 32
+CacheIndexesPerSubcaches: 88
+CacheTimeLeftOldestAvg: 295
+CacheTimeLeftOldestMin: 295
+CacheTimeLeftOldestMax: 296
+CacheIndexUsage: 69%
+CacheUsage: 99%
+CacheStoreCount: 22984008
+CacheReplaceCount: 0
+CacheExpireCount: 0
+CacheDiscardCount: 22976594
+CacheRetrieveHitCount: 5501
+CacheRetrieveMissCount: 4630
+CacheRemoveHitCount: 5491
+CacheRemoveMissCount: 51 \ No newline at end of file
diff --git a/src/go/collectors/go.d.plugin/modules/apache/testdata/lighttpd-status.txt b/src/go/collectors/go.d.plugin/modules/apache/testdata/lighttpd-status.txt
new file mode 100644
index 000000000..07d8e06e8
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/apache/testdata/lighttpd-status.txt
@@ -0,0 +1,6 @@
+Total Accesses: 12
+Total kBytes: 4
+Uptime: 11
+BusyServers: 3
+IdleServers: 125
+Scoreboard: khr_____________________________________________________________________________________________________________________________ \ No newline at end of file
diff --git a/src/go/collectors/go.d.plugin/modules/apache/testdata/simple-status-mpm-event.txt b/src/go/collectors/go.d.plugin/modules/apache/testdata/simple-status-mpm-event.txt
new file mode 100644
index 000000000..8093eacf9
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/apache/testdata/simple-status-mpm-event.txt
@@ -0,0 +1,24 @@
+127.0.0.1
+ServerVersion: Apache/2.4.37 (Unix)
+ServerMPM: event
+Server Built: Oct 23 2018 18:27:46
+CurrentTime: Sunday, 13-Jan-2019 21:43:56 MSK
+RestartTime: Sunday, 13-Jan-2019 21:43:53 MSK
+ParentServerConfigGeneration: 1
+ParentServerMPMGeneration: 0
+ServerUptimeSeconds: 2
+ServerUptime: 2 seconds
+Load1: 0.77
+Load5: 0.93
+Load15: 1.03
+BusyWorkers: 1
+IdleWorkers: 74
+Processes: 3
+Stopping: 0
+BusyWorkers: 1
+IdleWorkers: 74
+ConnsTotal: 0
+ConnsAsyncWriting: 0
+ConnsAsyncKeepAlive: 0
+ConnsAsyncClosing: 0
+Scoreboard: ________________________________________________________________W__________..................................................................................................................................................................................................................................................................................................................................... \ No newline at end of file