summaryrefslogtreecommitdiffstats
path: root/plugins/tests
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/tests')
-rw-r--r--plugins/tests/check_snmp_agent.pl21
1 files changed, 15 insertions, 6 deletions
diff --git a/plugins/tests/check_snmp_agent.pl b/plugins/tests/check_snmp_agent.pl
index d1ff6d0..302ba6e 100644
--- a/plugins/tests/check_snmp_agent.pl
+++ b/plugins/tests/check_snmp_agent.pl
@@ -18,15 +18,24 @@ if (!$agent) {
18my $baseoid = '.1.3.6.1.4.1.8072.3.2.67'; 18my $baseoid = '.1.3.6.1.4.1.8072.3.2.67';
19# Next are arrays of indexes (Type, initial value and increments) 19# Next are arrays of indexes (Type, initial value and increments)
20# Undef miltipliers are randomized 20# Undef miltipliers are randomized
21my $multiline = "Cisco Internetwork Operating System Software 21my $multiline = 'Cisco Internetwork Operating System Software
22IOS (tm) Catalyst 4000 L3 Switch Software (cat4000-I9K91S-M), Version 22IOS (tm) Catalyst 4000 "L3" Switch Software (cat4000-I9K91S-M), Version
2312.2(20)EWA, RELEASE SOFTWARE (fc1) 2312.2(20)EWA, RELEASE SOFTWARE (fc1)
24Technical Support: http://www.cisco.com/techsupport 24Technical Support: http://www.cisco.com/techsupport
25Copyright (c) 1986-2004 by cisco Systems, Inc. 25Copyright (c) 1986-2004 by cisco Systems, Inc.
26"; 26';
27my @fields = (ASN_OCTET_STR, ASN_UNSIGNED, ASN_UNSIGNED, ASN_COUNTER, ASN_COUNTER64, ASN_UNSIGNED); 27my $multilin2 = "Kisco Outernetwork Oserating Gystem Totware
28my @values = ($multiline, 4294965296, 1000, 4294965296, uint64("18446744073709351616"), int(rand(2**32))); 28Copyleft (c) 2400-2689 by kisco Systrems, Inc.";
29my @incrts = (undef, 1000, -500, 1000, 100000, undef); 29my $multilin3 = 'This should not confuse check_snmp "parser"
30into thinking there is no 2nd line';
31my $multilin4 = 'It\'s getting even harder if the line
32ends with with this: C:\\';
33my $multilin5 = 'And now have fun with with this: "C:\\"
34because we\'re not done yet!';
35
36my @fields = (ASN_OCTET_STR, ASN_OCTET_STR, ASN_OCTET_STR, ASN_OCTET_STR, ASN_OCTET_STR, ASN_UNSIGNED, ASN_UNSIGNED, ASN_COUNTER, ASN_COUNTER64, ASN_UNSIGNED);
37my @values = ($multiline, $multilin2, $multilin3, $multilin4, $multilin5, 4294965296, 1000, 4294965296, uint64("18446744073709351616"), int(rand(2**32)));
38my @incrts = (undef, undef, undef, undef, undef, 1000, -500, 1000, 100000, undef);
30 39
31# Number of elements in our OID 40# Number of elements in our OID
32my $oidelts; 41my $oidelts;