<feed xmlns='http://www.w3.org/2005/Atom'>
<title>monitoring-plugins/plugins/tests/check_snmp.t, branch 3.0.0-rc3</title>
<subtitle>Monitoring Plugins
</subtitle>
<id>https://www.monitoring-plugins.org/repositories/monitoring-plugins/atom?h=3.0.0-rc3</id>
<link rel='self' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/atom?h=3.0.0-rc3'/>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/'/>
<updated>2025-09-08T13:57:06Z</updated>
<entry>
<title>check_snmp: refactoring + fixes</title>
<updated>2025-09-08T13:57:06Z</updated>
<author>
<name>Lorenz Kästle</name>
<email>12514511+RincewindsHat@users.noreply.github.com</email>
</author>
<published>2025-09-08T13:57:06Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=87195f5511bf18db2a64f71ea9783ebbfb33c3a5'/>
<id>urn:sha1:87195f5511bf18db2a64f71ea9783ebbfb33c3a5</id>
<content type='text'>
This commit moves the state retention logic to check_snmp as it is only
used there and I do not want it to be used at all, so it doesn't get a
place in the lib.

Otherwise this adapts tests and fixes the rate computing in the
refactored version of check_snmp.
Also fixes some bugs detected with the tests
</content>
</entry>
<entry>
<title>Fix a lot of typos reported by codespell</title>
<updated>2023-04-14T18:35:00Z</updated>
<author>
<name>Jan Wagner</name>
<email>waja@cyconet.org</email>
</author>
<published>2023-04-14T14:37:47Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0f3703e641f0f995a8abb40056cb5430b6c228c4'/>
<id>urn:sha1:0f3703e641f0f995a8abb40056cb5430b6c228c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check_snmp: always apply format when applying multiplier</title>
<updated>2022-12-22T11:54:51Z</updated>
<author>
<name>Sven Nierlein</name>
<email>sven@nierlein.de</email>
</author>
<published>2022-12-22T11:02:52Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=9ba8f5ed66004c102bb626e47bb36dc9d0388632'/>
<id>urn:sha1:9ba8f5ed66004c102bb626e47bb36dc9d0388632</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve tests for check_snmp &amp; multiply option</title>
<updated>2022-12-22T11:54:51Z</updated>
<author>
<name>Robert Bohne</name>
<email>robert.bohne@redhat.com</email>
</author>
<published>2022-11-11T10:10:44Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=def946bd9792ffff34b865449b18eea6e8f116af'/>
<id>urn:sha1:def946bd9792ffff34b865449b18eea6e8f116af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add 'multiplier' to modify current value</title>
<updated>2022-12-22T11:54:51Z</updated>
<author>
<name>Wolfgang Nieder</name>
<email>wnd@gmx.net</email>
</author>
<published>2018-07-07T07:12:44Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=c35bf8966a593d7926470121269b08ec00883593'/>
<id>urn:sha1:c35bf8966a593d7926470121269b08ec00883593</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check_snmp: fix performance thresholds when using multiple oids</title>
<updated>2021-11-17T13:04:09Z</updated>
<author>
<name>Sven Nierlein</name>
<email>sven@nierlein.de</email>
</author>
<published>2021-11-17T10:58:41Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=024d268386353133af1a9ff5c0b5879397c19b1c'/>
<id>urn:sha1:024d268386353133af1a9ff5c0b5879397c19b1c</id>
<content type='text'>
when using check_snmp with multiple oids it simply printed the unparsed content
from -w/-c into the thresholds for each oid. So each oid contained the hole -w
from all oids.

./check_snmp ... -o iso.3.6.1.2.1.25.1.3.0,iso.3.6.1.2.1.25.1.5.0 -w '1,2' -c '3,4'

before:
  SNMP ... | HOST-RESOURCES-MIB::hrSystemInitialLoadDevice.0=393216;1,2;3,4 HOST-RESOURCES-MIB::hrSystemNumUsers.0=24;1,2;3,4

after:
  SNMP ... | HOST-RESOURCES-MIB::hrSystemInitialLoadDevice.0=393216;1;3 HOST-RESOURCES-MIB::hrSystemNumUsers.0=24;2;4

This also applies to fixed thresholds since check_snmp translates negative infinities from: '~:-1' to '@-1:~'
</content>
</entry>
<entry>
<title>tests: make check_snmp test more reliable</title>
<updated>2019-01-21T16:41:02Z</updated>
<author>
<name>Sven Nierlein</name>
<email>sven@nierlein.de</email>
</author>
<published>2019-01-21T16:41:02Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=22f47fc0c51266bd25491da30fd165a845a1391b'/>
<id>urn:sha1:22f47fc0c51266bd25491da30fd165a845a1391b</id>
<content type='text'>
The check_snmp rate tests depend on the exact amount of time spend between the
plugin runs and will fail on busy machines, ex. the ci servers. Using faketime
mitigates this issue and also removes all the sleeps.

Signed-off-by: Sven Nierlein &lt;sven@nierlein.de&gt;
</content>
</entry>
<entry>
<title>fix snmp test for included threshold</title>
<updated>2015-04-12T12:29:05Z</updated>
<author>
<name>Sven Nierlein</name>
<email>Sven.Nierlein@consol.de</email>
</author>
<published>2015-04-12T12:29:05Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=75d884ed1ec3c41ec4f6053b57abadacd7970eb1'/>
<id>urn:sha1:75d884ed1ec3c41ec4f6053b57abadacd7970eb1</id>
<content type='text'>
since 6623a1 check_snmp prints the thresholds along the performance data.
This adjust our test cases accordingly.

Signed-off-by: Sven Nierlein &lt;Sven.Nierlein@consol.de&gt;
</content>
</entry>
<entry>
<title>tests: skip extented snmp tests if snmpd has no perl support</title>
<updated>2014-07-31T19:07:18Z</updated>
<author>
<name>Sven Nierlein</name>
<email>Sven.Nierlein@consol.de</email>
</author>
<published>2014-07-31T15:06:32Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a5b6d94fc6daa1868745441f6fed8f7576f2e5dd'/>
<id>urn:sha1:a5b6d94fc6daa1868745441f6fed8f7576f2e5dd</id>
<content type='text'>
solaris snmpd has no perl support by default, so this test will fail.

Signed-off-by: Sven Nierlein &lt;Sven.Nierlein@consol.de&gt;
</content>
</entry>
<entry>
<title>tests: freebsds snmpd does not use quotes</title>
<updated>2014-06-13T14:34:03Z</updated>
<author>
<name>Sven Nierlein</name>
<email>Sven.Nierlein@consol.de</email>
</author>
<published>2014-06-13T14:34:03Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=b2fed383b1a04e64731333957fb098d77627cfdb'/>
<id>urn:sha1:b2fed383b1a04e64731333957fb098d77627cfdb</id>
<content type='text'>
when returning syscontact. So make them optional since we want to test
check_snmp and not the snmpd.

Signed-off-by: Sven Nierlein &lt;Sven.Nierlein@consol.de&gt;
</content>
</entry>
</feed>
