{"action":"opened","issue":{"url":"https://api.github.com/repos/nagios-plugins/nagios-plugins/issues/75","labels_url":"https://api.github.com/repos/nagios-plugins/nagios-plugins/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/nagios-plugins/nagios-plugins/issues/75/comments","events_url":"https://api.github.com/repos/nagios-plugins/nagios-plugins/issues/75/events","html_url":"https://github.com/nagios-plugins/nagios-plugins/issues/75","id":60432908,"number":75,"title":"check_snmp - warning and critical does not work for integer values of 0","user":{"login":"box293","id":8356113,"avatar_url":"https://avatars.githubusercontent.com/u/8356113?v=3","gravatar_id":"","url":"https://api.github.com/users/box293","html_url":"https://github.com/box293","followers_url":"https://api.github.com/users/box293/followers","following_url":"https://api.github.com/users/box293/following{/other_user}","gists_url":"https://api.github.com/users/box293/gists{/gist_id}","starred_url":"https://api.github.com/users/box293/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box293/subscriptions","organizations_url":"https://api.github.com/users/box293/orgs","repos_url":"https://api.github.com/users/box293/repos","events_url":"https://api.github.com/users/box293/events{/privacy}","received_events_url":"https://api.github.com/users/box293/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T00:29:40Z","updated_at":"2015-03-10T00:29:40Z","closed_at":null,"body":"When the value returned is 0, the warning and critical arguments are ignored and the status is OK.\r\n\r\nFor these tests, the value of \"1\" is OK.\r\n\r\nHere's when the returned value is 1:\r\n```\r\ncheck_snmp -H 10.25.4.1 -C public -o iso.3.6.1.4.1.4526.11.1.2.1.5.5.0 -w 1\r\nSNMP OK - 1 | SNMPv2-SMI::enterprises.4526.11.1.2.1.5.5.0=1;1;; \r\n\r\nor\r\n\r\ncheck_snmp -H 10.25.4.1 -C public -o iso.3.6.1.4.1.4526.11.1.2.1.5.5.0 -c 1\r\nSNMP OK - 1 | SNMPv2-SMI::enterprises.4526.11.1.2.1.5.5.0=1;;1; \r\n```\r\nIt has a an OK state which is what I want.\r\n\r\n\r\nHere's when the returned value is 2:\r\n```\r\ncheck_snmp -H 10.25.4.1 -C public -o iso.3.6.1.4.1.4526.11.1.2.1.5.4.0 -w 1\r\nSNMP WARNING - *2* | SNMPv2-SMI::enterprises.4526.11.1.2.1.5.4.0=2;1;; \r\n\r\nor\r\n\r\ncheck_snmp -H 10.25.4.1 -C public -o iso.3.6.1.4.1.4526.11.1.2.1.5.4.0 -c 1\r\nSNMP CRITICAL - *2* | SNMPv2-SMI::enterprises.4526.11.1.2.1.5.4.0=2;;1; \r\n```\r\nAnd it is returning the correct warning or critical state which is what I want.\r\n\r\n\r\nHere's when the returned value is 0:\r\n```\r\ncheck_snmp -H 10.25.4.1 -C public -o iso.3.6.1.4.1.4526.11.1.2.1.6.2.0 -w 1\r\nSNMP OK - 0 | SNMPv2-SMI::enterprises.4526.11.1.2.1.6.2.0=0;1;; \r\n\r\nor\r\n\r\ncheck_snmp -H 10.25.4.1 -C public -o iso.3.6.1.4.1.4526.11.1.2.1.6.2.0 -c 1\r\nSNMP OK - 0 | SNMPv2-SMI::enterprises.4526.11.1.2.1.6.2.0=0;;1; \r\n```\r\nThis time it's returning an OK status when it should be returning a warning or critical status."}}