diff options
author | Ton Voon <ton.voon@opsera.com> | 2010-06-17 09:16:43 (GMT) |
---|---|---|
committer | tonvoon <ton.voon@opsera.com> | 2010-06-23 13:30:34 (GMT) |
commit | 18f6835edaf7d640a2c9e476cb1babdbdadbfd9b (patch) | |
tree | ae11f40e48dc34658445c99012726f32bfb45c56 /lib/tests/var | |
parent | f61412478ceb7c821793c8356b936f64066508bf (diff) | |
download | monitoring-plugins-18f6835edaf7d640a2c9e476cb1babdbdadbfd9b.tar.gz |
Added state retention APIs. Implemented for check_snmp with --rate option.
See http://nagiosplugin.org/c-api-private for more details on the API.
Also updated check_snmp -l option to change the perfdata label.
Diffstat (limited to 'lib/tests/var')
-rw-r--r-- | lib/tests/var/.gitignore | 2 | ||||
-rw-r--r-- | lib/tests/var/baddate | 5 | ||||
-rw-r--r-- | lib/tests/var/missingdataline | 4 | ||||
-rw-r--r-- | lib/tests/var/oldformat | 5 | ||||
-rw-r--r-- | lib/tests/var/statefile | 5 |
5 files changed, 21 insertions, 0 deletions
diff --git a/lib/tests/var/.gitignore b/lib/tests/var/.gitignore new file mode 100644 index 0000000..95a59c1 --- /dev/null +++ b/lib/tests/var/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | generated | ||
2 | generated_directory/ | ||
diff --git a/lib/tests/var/baddate b/lib/tests/var/baddate new file mode 100644 index 0000000..2fda432 --- /dev/null +++ b/lib/tests/var/baddate | |||
@@ -0,0 +1,5 @@ | |||
1 | # NP State file | ||
2 | 1 | ||
3 | 54 | ||
4 | 2147483647 | ||
5 | Date in future!!!! | ||
diff --git a/lib/tests/var/missingdataline b/lib/tests/var/missingdataline new file mode 100644 index 0000000..d87f73a --- /dev/null +++ b/lib/tests/var/missingdataline | |||
@@ -0,0 +1,4 @@ | |||
1 | # NP State file | ||
2 | 1 | ||
3 | 54 | ||
4 | 1234567890 | ||
diff --git a/lib/tests/var/oldformat b/lib/tests/var/oldformat new file mode 100644 index 0000000..102f8c9 --- /dev/null +++ b/lib/tests/var/oldformat | |||
@@ -0,0 +1,5 @@ | |||
1 | # NP State file | ||
2 | 0 | ||
3 | 54 | ||
4 | 1234567890 | ||
5 | String to read | ||
diff --git a/lib/tests/var/statefile b/lib/tests/var/statefile new file mode 100644 index 0000000..5002139 --- /dev/null +++ b/lib/tests/var/statefile | |||
@@ -0,0 +1,5 @@ | |||
1 | # NP State file | ||
2 | 1 | ||
3 | 54 | ||
4 | 1234567890 | ||
5 | String to read | ||