{"action":"created","issue":{"url":"https://api.github.com/repos/dangmocrang/check_idrac/issues/31","repository_url":"https://api.github.com/repos/dangmocrang/check_idrac","labels_url":"https://api.github.com/repos/dangmocrang/check_idrac/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/dangmocrang/check_idrac/issues/31/comments","events_url":"https://api.github.com/repos/dangmocrang/check_idrac/issues/31/events","html_url":"https://github.com/dangmocrang/check_idrac/issues/31","id":192344118,"number":31,"title":"Using -v2c public for snmpwalk calls","user":{"login":"sadsfae","id":3940978,"avatar_url":"https://avatars.githubusercontent.com/u/3940978?v=3","gravatar_id":"","url":"https://api.github.com/users/sadsfae","html_url":"https://github.com/sadsfae","followers_url":"https://api.github.com/users/sadsfae/followers","following_url":"https://api.github.com/users/sadsfae/following{/other_user}","gists_url":"https://api.github.com/users/sadsfae/gists{/gist_id}","starred_url":"https://api.github.com/users/sadsfae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadsfae/subscriptions","organizations_url":"https://api.github.com/users/sadsfae/orgs","repos_url":"https://api.github.com/users/sadsfae/repos","events_url":"https://api.github.com/users/sadsfae/events{/privacy}","received_events_url":"https://api.github.com/users/sadsfae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-29T17:16:18Z","updated_at":"2016-11-29T18:08:41Z","closed_at":null,"body":"Thank you for making this plugin and putting it all together.\r\n\r\nCan I use  the equivalent of ```-v2c public``` ?\r\n\r\nI get the following errors specifying this in the configuration file\r\n\r\n```\r\n[snmp]\r\nversion = '2c'\r\ncommunity = 'public'\r\n```\r\n\r\nThis is the error I get in Nagios:\r\n\r\n```\r\niDRAC Server Health;WARNING;notify-service-by-email;snmp version \"None\" is not supported!\r\n```\r\n\r\nWhen I run this manually and append -v2c everything works however - e.g.\r\n\r\n```\r\n/usr/lib64/nagios/plugins/idrac_2.2rc4 -H 10.12.64.131 -v2c -c public -m /usr/share/snmp/mibs/idrac-smiv2.mib\r\n```\r\n\r\nI've also tried ```version = '2'``` to no avail.\r\n\r\nI see it's unset here in the code: https://github.com/dangmocrang/check_idrac/blob/master/idrac_2.2rc4#L17 but seems ugly to force it there, I'd like to use the config file you are shipping.\r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/dangmocrang/check_idrac/issues/comments/263649992","html_url":"https://github.com/dangmocrang/check_idrac/issues/31#issuecomment-263649992","issue_url":"https://api.github.com/repos/dangmocrang/check_idrac/issues/31","id":263649992,"user":{"login":"sadsfae","id":3940978,"avatar_url":"https://avatars.githubusercontent.com/u/3940978?v=3","gravatar_id":"","url":"https://api.github.com/users/sadsfae","html_url":"https://github.com/sadsfae","followers_url":"https://api.github.com/users/sadsfae/followers","following_url":"https://api.github.com/users/sadsfae/following{/other_user}","gists_url":"https://api.github.com/users/sadsfae/gists{/gist_id}","starred_url":"https://api.github.com/users/sadsfae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadsfae/subscriptions","organizations_url":"https://api.github.com/users/sadsfae/orgs","repos_url":"https://api.github.com/users/sadsfae/repos","events_url":"https://api.github.com/users/sadsfae/events{/privacy}","received_events_url":"https://api.github.com/users/sadsfae/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T18:08:41Z","updated_at":"2016-11-29T18:08:41Z","body":"I am also omitting the configuration file completely and still get the same error:\r\n\r\ne.g.\r\n\r\n```\r\n /usr/lib64/nagios/plugins/idrac_2.2rc4 -H $HOSTADDRESS -v 2c -c public -m /usr/share/snmp/mibs/idrac-smiv2.mib --warn '$ALL$' --crit 'critical|nonRecoverable|fail' --ok 'ok|online|on|spunup|full|ready|enabled|presence'\r\n```\r\n\r\nNagios says:\r\n\r\n```\r\nCurrent Status:\tWARNING  (for 0d 1h 0m 45s)\r\nStatus Information:\tsnmp version \"None\" is not supported!\r\n```"}}
{"actor":{"display_login":"sadsfae"}}