From 8cc414e9425cce5088b27d8e491a407bd50f9a75 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 28 Jul 2010 12:13:02 +0200 Subject: Add tests --- t/out/host_steel_steel | 18 ++++++++++++++++++ t/out/hosts_group_local | 2 ++ t/out/hosts_short | 2 ++ t/out/list_hosts | 4 ++++ t/out/list_hosts_nc | 4 ++++ t/out/list_services | 1 + t/out/list_services_nc | 35 +++++++++++++++++++++++++++++++++++ t/out/services_group_local | 17 +++++++++++++++++ t/out/services_short | 7 +++++++ t/out/standard | 35 +++++++++++++++++++++++++++++++++++ 10 files changed, 125 insertions(+) create mode 100644 t/out/host_steel_steel create mode 100644 t/out/hosts_group_local create mode 100644 t/out/hosts_short create mode 100644 t/out/list_hosts create mode 100644 t/out/list_hosts_nc create mode 120000 t/out/list_services create mode 100644 t/out/list_services_nc create mode 100644 t/out/services_group_local create mode 100644 t/out/services_short create mode 100644 t/out/standard (limited to 't/out') diff --git a/t/out/host_steel_steel b/t/out/host_steel_steel new file mode 100644 index 0000000..a1276ee --- /dev/null +++ b/t/out/host_steel_steel @@ -0,0 +1,18 @@ + +steel-vpn + SMTP  OK  SMTP OK - 0.080 sec. response time + +steel.derf0.net + Disk: lv-home  OK  DISK OK - free space: /home 20207 MB (95% inode=99%): + Disk: lv-root  OK  DISK OK - free space: / 5330 MB (85% inode=90%): + Disk: vda1  OK  DISK OK - free space: /boot 190 MB (88% inode=99%): + HTTP  OK  HTTP OK: HTTP/1.1 200 OK - 668 bytes in 0.040 second response time + Load  OK  OK - load average: 0.00, 0.00, 0.00 + Mail Queue  OK  OK: mailq reports queue is empty + No open relay  OK  NORELAY OK: <** 554 5.7.1 : Relay access denied + Not Blacklisted  OK  CHECK_RBL OK - steel.derf0.net BLACKLISTED on 0 servers of 43 + Processes  OK  PROCS OK: 82 processes + SMTP  OK  SMTP OK - 0.122 sec. response time + SSH  OK  SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + SSH password login d  OK  Password login disabled (server accepts publickey) + Users  WARNING USERS OK - 0 users currently logged in diff --git a/t/out/hosts_group_local b/t/out/hosts_group_local new file mode 100644 index 0000000..7c08a69 --- /dev/null +++ b/t/out/hosts_group_local @@ -0,0 +1,2 @@ +alpha  DOWN  PING OK - Packet loss = 0%, RTA = 0.73 ms +aneurysm UNREACHABLE PING OK - Packet loss = 0%, RTA = 0.10 ms diff --git a/t/out/hosts_short b/t/out/hosts_short new file mode 100644 index 0000000..7c08a69 --- /dev/null +++ b/t/out/hosts_short @@ -0,0 +1,2 @@ +alpha  DOWN  PING OK - Packet loss = 0%, RTA = 0.73 ms +aneurysm UNREACHABLE PING OK - Packet loss = 0%, RTA = 0.10 ms diff --git a/t/out/list_hosts b/t/out/list_hosts new file mode 100644 index 0000000..2e44d30 --- /dev/null +++ b/t/out/list_hosts @@ -0,0 +1,4 @@ +alpha  DOWN  PING OK - Packet loss = 0%, RTA = 0.73 ms +aneurysm UNREACHABLE PING OK - Packet loss = 0%, RTA = 0.10 ms +steel-vpn  OK  PING OK - Packet loss = 0%, RTA = 18.01 ms +steel.derf0.net  OK  PING OK - Packet loss = 0%, RTA = 16.75 ms diff --git a/t/out/list_hosts_nc b/t/out/list_hosts_nc new file mode 100644 index 0000000..ecd73ce --- /dev/null +++ b/t/out/list_hosts_nc @@ -0,0 +1,4 @@ +alpha DOWN PING OK - Packet loss = 0%, RTA = 0.73 ms +aneurysm UNREACHABLE PING OK - Packet loss = 0%, RTA = 0.10 ms +steel-vpn OK PING OK - Packet loss = 0%, RTA = 18.01 ms +steel.derf0.net OK PING OK - Packet loss = 0%, RTA = 16.75 ms diff --git a/t/out/list_services b/t/out/list_services new file mode 120000 index 0000000..aa0bc07 --- /dev/null +++ b/t/out/list_services @@ -0,0 +1 @@ +standard \ No newline at end of file diff --git a/t/out/list_services_nc b/t/out/list_services_nc new file mode 100644 index 0000000..ca7056b --- /dev/null +++ b/t/out/list_services_nc @@ -0,0 +1,35 @@ + +alpha + HTTP OK HTTP OK: HTTP/1.0 200 OK - 2333 bytes in 0.019 second response time + +aneurysm + Disk: / OK DISK OK - free space: / 4846 MB (75% inode=90%): + Disk: /boot OK DISK OK - free space: /boot 119 MB (53% inode=99%): + Disk: /data OK DISK OK - free space: /data 60091 MB (48% inode=99%): + Disk: /home OK DISK OK - free space: /home 58378 MB (59% inode=98%): + HTTP OK HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.001 second response time + HTTPS OK HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.018 second response time + Load CRITICAL OK - load average: 0.17, 0.13, 0.09 + Processes UNKNOWN PROCS OK: 118 processes + SMTP OK SMTP OK - 0.038 sec. response time + SSH OK SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + SSH password login d OK Password login disabled (server accepts publickey) + System Backup OK /dev/mapper/misc-backup 109G 40G 69G 37% /backup + +steel-vpn + SMTP OK SMTP OK - 0.080 sec. response time + +steel.derf0.net + Disk: lv-home OK DISK OK - free space: /home 20207 MB (95% inode=99%): + Disk: lv-root OK DISK OK - free space: / 5330 MB (85% inode=90%): + Disk: vda1 OK DISK OK - free space: /boot 190 MB (88% inode=99%): + HTTP OK HTTP OK: HTTP/1.1 200 OK - 668 bytes in 0.040 second response time + Load OK OK - load average: 0.00, 0.00, 0.00 + Mail Queue OK OK: mailq reports queue is empty + No open relay OK NORELAY OK: <** 554 5.7.1 : Relay access denied + Not Blacklisted OK CHECK_RBL OK - steel.derf0.net BLACKLISTED on 0 servers of 43 + Processes OK PROCS OK: 82 processes + SMTP OK SMTP OK - 0.122 sec. response time + SSH OK SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + SSH password login d OK Password login disabled (server accepts publickey) + Users WARNING USERS OK - 0 users currently logged in diff --git a/t/out/services_group_local b/t/out/services_group_local new file mode 100644 index 0000000..bdfaa65 --- /dev/null +++ b/t/out/services_group_local @@ -0,0 +1,17 @@ + +alpha + HTTP  OK  HTTP OK: HTTP/1.0 200 OK - 2333 bytes in 0.019 second response time + +aneurysm + Disk: /  OK  DISK OK - free space: / 4846 MB (75% inode=90%): + Disk: /boot  OK  DISK OK - free space: /boot 119 MB (53% inode=99%): + Disk: /data  OK  DISK OK - free space: /data 60091 MB (48% inode=99%): + Disk: /home  OK  DISK OK - free space: /home 58378 MB (59% inode=98%): + HTTP  OK  HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.001 second response time + HTTPS  OK  HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.018 second response time + Load CRITICAL OK - load average: 0.17, 0.13, 0.09 + Processes  UNKNOWN PROCS OK: 118 processes + SMTP  OK  SMTP OK - 0.038 sec. response time + SSH  OK  SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + SSH password login d  OK  Password login disabled (server accepts publickey) + System Backup  OK  /dev/mapper/misc-backup 109G 40G 69G 37% /backup diff --git a/t/out/services_short b/t/out/services_short new file mode 100644 index 0000000..f6396c5 --- /dev/null +++ b/t/out/services_short @@ -0,0 +1,7 @@ + +aneurysm + Load CRITICAL OK - load average: 0.17, 0.13, 0.09 + Processes  UNKNOWN PROCS OK: 118 processes + +steel.derf0.net + Users  WARNING USERS OK - 0 users currently logged in diff --git a/t/out/standard b/t/out/standard new file mode 100644 index 0000000..c1f0b30 --- /dev/null +++ b/t/out/standard @@ -0,0 +1,35 @@ + +alpha + HTTP  OK  HTTP OK: HTTP/1.0 200 OK - 2333 bytes in 0.019 second response time + +aneurysm + Disk: /  OK  DISK OK - free space: / 4846 MB (75% inode=90%): + Disk: /boot  OK  DISK OK - free space: /boot 119 MB (53% inode=99%): + Disk: /data  OK  DISK OK - free space: /data 60091 MB (48% inode=99%): + Disk: /home  OK  DISK OK - free space: /home 58378 MB (59% inode=98%): + HTTP  OK  HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.001 second response time + HTTPS  OK  HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.018 second response time + Load CRITICAL OK - load average: 0.17, 0.13, 0.09 + Processes  UNKNOWN PROCS OK: 118 processes + SMTP  OK  SMTP OK - 0.038 sec. response time + SSH  OK  SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + SSH password login d  OK  Password login disabled (server accepts publickey) + System Backup  OK  /dev/mapper/misc-backup 109G 40G 69G 37% /backup + +steel-vpn + SMTP  OK  SMTP OK - 0.080 sec. response time + +steel.derf0.net + Disk: lv-home  OK  DISK OK - free space: /home 20207 MB (95% inode=99%): + Disk: lv-root  OK  DISK OK - free space: / 5330 MB (85% inode=90%): + Disk: vda1  OK  DISK OK - free space: /boot 190 MB (88% inode=99%): + HTTP  OK  HTTP OK: HTTP/1.1 200 OK - 668 bytes in 0.040 second response time + Load  OK  OK - load average: 0.00, 0.00, 0.00 + Mail Queue  OK  OK: mailq reports queue is empty + No open relay  OK  NORELAY OK: <** 554 5.7.1 : Relay access denied + Not Blacklisted  OK  CHECK_RBL OK - steel.derf0.net BLACKLISTED on 0 servers of 43 + Processes  OK  PROCS OK: 82 processes + SMTP  OK  SMTP OK - 0.122 sec. response time + SSH  OK  SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + SSH password login d  OK  Password login disabled (server accepts publickey) + Users  WARNING USERS OK - 0 users currently logged in -- cgit v1.2.3