From 18f6835edaf7d640a2c9e476cb1babdbdadbfd9b Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 17 Jun 2010 10:16:43 +0100 Subject: 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. --- lib/tests/var/.gitignore | 2 ++ lib/tests/var/baddate | 5 +++++ lib/tests/var/missingdataline | 4 ++++ lib/tests/var/oldformat | 5 +++++ lib/tests/var/statefile | 5 +++++ 5 files changed, 21 insertions(+) create mode 100644 lib/tests/var/.gitignore create mode 100644 lib/tests/var/baddate create mode 100644 lib/tests/var/missingdataline create mode 100644 lib/tests/var/oldformat create mode 100644 lib/tests/var/statefile (limited to 'lib/tests/var') diff --git a/lib/tests/var/.gitignore b/lib/tests/var/.gitignore new file mode 100644 index 00000000..95a59c17 --- /dev/null +++ b/lib/tests/var/.gitignore @@ -0,0 +1,2 @@ +generated +generated_directory/ diff --git a/lib/tests/var/baddate b/lib/tests/var/baddate new file mode 100644 index 00000000..2fda432e --- /dev/null +++ b/lib/tests/var/baddate @@ -0,0 +1,5 @@ +# NP State file +1 +54 +2147483647 +Date in future!!!! diff --git a/lib/tests/var/missingdataline b/lib/tests/var/missingdataline new file mode 100644 index 00000000..d87f73aa --- /dev/null +++ b/lib/tests/var/missingdataline @@ -0,0 +1,4 @@ +# NP State file +1 +54 +1234567890 diff --git a/lib/tests/var/oldformat b/lib/tests/var/oldformat new file mode 100644 index 00000000..102f8c9f --- /dev/null +++ b/lib/tests/var/oldformat @@ -0,0 +1,5 @@ +# NP State file +0 +54 +1234567890 +String to read diff --git a/lib/tests/var/statefile b/lib/tests/var/statefile new file mode 100644 index 00000000..5002139c --- /dev/null +++ b/lib/tests/var/statefile @@ -0,0 +1,5 @@ +# NP State file +1 +54 +1234567890 +String to read -- cgit v1.2.3-74-g34f1