How to correctly use the plugin check_snmp?

zxp19821005 <[email protected]> Fri, 23 Sep 2016 17:46:19 +0800
Newsgroups gmane.network.nagios.devel,gmane.network.monitoring.plugins.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_001_NextPart675868308567_=----
Content-Type: text/plain;
	charset="GB2312"
Content-Transfer-Encoding: base64

SGVsbG8NCiAgICBJIGhhcyByZWFkIHRoZSBhcnRpY2xlIFRoZSBjaGVja19zbm1wIFBsdWdpbqOo
aHR0cHM6Ly93d3cubW9uaXRvcmluZy1wbHVnaW5zLm9yZy9kb2MvbWFuL2NoZWNrX3NubXAuaHRt
bKOpZm9yIHNldmVyYWwgdGltZXOjrGJ1dCBJIGhhdmUgcHJvYmxlbXMgd2hlcmUgdXNpbmcgaXQu
DQogICAgV2hlbiBJIHVzZWQgdGhlIHBsdWdpbiAiY2hlY2tfc25tcCIgdG8gY2hlY2sgYSBkZXZp
Y2WjrGlmIHRoZSByZXNhdWx0IGlzICJObyBNb2R1bGUio6xJIHdhbnQgaXQgc2VuZCBhIGNyaXRp
Y2FsoaMNCiAgICBUaGUgZnVsbCBjb21tYW5kIGxpa2UgdGhpc6O6DQogICAgICAgIC4vY2hlY2tf
c25tcCAtSCAxMC4xMC4xMC4xMCAtbyAuMS4zLjYuMS40LjEuMTIzNDUuMTcuMS4zLjEuMCAtLWlu
dmVydC1zZWFyY2ggIk5vIE1vZHVsZSINCiAgICAgICAgLi9jaGVja19zbm1wIC1IIDEwLjEwLjEw
LjEwIC1vIC4xLjMuNi4xLjQuMS4xMjM0NS4xNy4xLjMuMS4wIC0taW52ZXJ0LXNlYXJjaCAtcyAi
Tm8gTW9kdWxlIg0KICAgICAgICAuL2NoZWNrX3NubXAgLUggMTAuMTAuMTAuMTAgLW8gLjEuMy42
LjEuNC4xLjEyMzQ1LjE3LjEuMy4xLjAgLXMgLS1pbnZlcnQtc2VhcmNoICJObyBNb2R1bGUiDQog
ICAgVGhlIHJlc2F1bHQgaXMgYWx3YXlzIGxpa2UgdGhpc6O6DQogICAgICAgIFNOTVAgT0sgLSAi
Tm8gTW9kdWxlIiB8IA0KICAgIFNvIEkgd2FuZGVyIHRvIGtvbncgaG93IHRvIGNvcnJlY3RseSB1
c2UgdGhlIHBsdWdpbiBjaGVja19zbm1wPw0KICAgIA0KICAgIA0KDQoNCg==

------=_001_NextPart675868308567_=----
Content-Type: text/html;
	charset="GB2312"
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charse=
t=3DGB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; fon=
t-family: =CE=A2=C8=ED=D1=C5=BA=DA; color: rgb(0, 0, 0); line-height: 1.5;=
 }</style></head><body>=0A<div><span></span>Hello</div><div><span style=3D=
"color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&n=
bsp;</span><span style=3D"color: rgb(0, 0, 0); font-size: 10.5pt; line-hei=
ght: 1.5; background-color: rgba(0, 0, 0, 0);">I has read the article&nbsp=
;</span><span style=3D"font-size: 10.5pt; color: rgb(0, 78, 143); font-fam=
ily: Bitter, serif; line-height: normal; orphans: 2; widows: 2; background=
-color: window;"><b>The check_snmp Plugin</b>=A3=A8</span><span style=3D"f=
ont-size: 10.5pt; line-height: 1.5; color: rgb(0, 78, 143); font-family: '=
Bitter, serif'; background-color: window;">https://www.monitoring-plugins.=
org/doc/man/check_snmp.html</span><span style=3D"font-size: 10.5pt; backgr=
ound-color: window; color: rgb(0, 78, 143); font-family: Bitter, serif; li=
ne-height: normal; orphans: 2; widows: 2;">=A3=A9</span><span style=3D"lin=
e-height: normal; orphans: 2; widows: 2;">for several times=A3=ACbut I hav=
e problems where using it.</span></div><div><span style=3D"color: rgb(0, 0=
, 0); background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp; When I used the p=
lugin "check_snmp" to check a device=A3=ACif the resault is "No Module"=A3=
=ACI want it send a critical=A1=A3</span></div><div><span style=3D"color: =
rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp; </span><s=
pan style=3D"background-color: rgba(0, 0, 0, 0);"><b>The full command like=
 this=A3=BA</b></span></div><div><span style=3D"color: rgb(0, 0, 0); backg=
round-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span><span style=3D"b=
ackground-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">&=
nbsp; &nbsp;&nbsp;</span><span style=3D"background-color: rgba(0, 0, 0, 0)=
; font-size: 10.5pt; line-height: 1.5;">./check_snmp&nbsp;-H&nbsp;10.10.10=
.10 -o&nbsp;.1.3.6.1.4.1.12345.17.1.3.1.0&nbsp;--invert-search&nbsp;"No&nb=
sp;Module"</span></div><div><span style=3D"color: rgb(0, 0, 0); background=
-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span><span style=3D"backgr=
ound-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">&nbsp;=
 &nbsp;&nbsp;</span><span style=3D"background-color: rgba(0, 0, 0, 0); fon=
t-size: 10.5pt; line-height: 1.5;">./check_snmp&nbsp;-H&nbsp;</span>10.10.=
10.10<span style=3D"background-color: rgba(0, 0, 0, 0); font-size: 10.5pt;=
 line-height: 1.5;">&nbsp;-o&nbsp;.1.3.6.1.4.1.</span>12345<span style=3D"=
background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">=
.17.1.3.1.0&nbsp;--invert-search&nbsp;-s&nbsp;"No&nbsp;Module"</span></div=
><div><span style=3D"color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, =
0);">&nbsp; &nbsp;&nbsp;</span><span style=3D"background-color: rgba(0, 0,=
 0, 0); font-size: 10.5pt; line-height: 1.5;">&nbsp; &nbsp;&nbsp;</span><s=
pan style=3D"background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-h=
eight: 1.5;">./check_snmp&nbsp;-H&nbsp;</span>10.10.10.10<span style=3D"ba=
ckground-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">&n=
bsp;-o&nbsp;.1.3.6.1.4.1.</span>12345<span style=3D"background-color: rgba=
(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">.17.1.3.1.0&nbsp;</spa=
n><span style=3D"font-size: 10.5pt; line-height: 1.5; background-color: wi=
ndow;">-s&nbsp;</span><span style=3D"background-color: rgba(0, 0, 0, 0); f=
ont-size: 10.5pt; line-height: 1.5;">--invert-search "No&nbsp;Module"</spa=
n></div>=0A<div><span style=3D"color: rgb(0, 0, 0); background-color: rgba=
(0, 0, 0, 0);">&nbsp; &nbsp; <b>The resault is always like this=A3=BA</b><=
/span></div><div><span style=3D"color: rgb(0, 0, 0); background-color: rgb=
a(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span><span style=3D"background-color:=
 rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">&nbsp; &nbsp;&nbs=
p;</span><span style=3D"background-color: rgba(0, 0, 0, 0); font-size: 10.=
5pt; line-height: 1.5;">SNMP&nbsp;OK&nbsp;-&nbsp;"No&nbsp;Module"&nbsp;|&n=
bsp;</span></div><div><span style=3D"color: rgb(0, 0, 0); background-color=
: rgba(0, 0, 0, 0);">&nbsp; &nbsp; So I wander to konw how to&nbsp;</span>=
<span style=3D"background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line=
-height: 1.5;">correctly&nbsp;use&nbsp;the&nbsp;plugin&nbsp;check_snmp?</s=
pan></div><div><span style=3D"color: rgb(0, 0, 0); background-color: rgba(=
0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span></div><div><span style=3D"font-fam=
ily: 'Bitter, serif'; color: rgb(0, 78, 143);">&nbsp; &nbsp;&nbsp;</span><=
/div><hr style=3D"width: 210px; height: 1px; display: none;" color=3D"#b5c=
4df" size=3D"1" align=3D"left">=0A<div><span></span></div>=0A</body></html=
>
------=_001_NextPart675868308567_=------