5
<TITLE>Nagios plugins</TITLE>
7
<META NAME="Keywords" CONTENT="nagios,plugins,perl,snmp,proy">
9
<STYLE type="text/css">
13
.Default { font-family: verdana,arial,serif; font-size: 10pt; }
15
.ProgramTitle { font-family: verdana,arial,serif; font-size: 18pt; font-weight: bold;}
17
.Copyright { font-family: verdana,arial,serif; font-size: 10pt;}
19
.Email { font-family: verdana,arial,serif; font-size: 10pt;}
21
.NewsItem { font-family: verdana,arial,serif; font-size: 8pt; }
23
.NewsItemOdd { font-family: verdana,arial,serif; font-size: 8pt; background-color: #DBDBDB;}
25
.NewsItemEven { font-family: verdana,arial,serif; font-size: 8pt; background-color: #C4C2C2;}
27
.NewsItemUrgent { font-family: verdana,arial,serif; font-size: 8pt; background-color: #ccff99;}
29
.NewsItemDate { font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; }
31
.SectionTitle { font-family: verdana,arial,serif; font-size: 9pt; font-weight: bold; text-decoration: underline;}
33
.SectionBody { font-family: verdana,arial,serif; font-size: 8pt; }
35
.ModificationDate { font-family: verdana,arial,serif; font-size: 7pt; }
37
.Disclaimer { font-family: verdana,arial,serif; font-size: 8pt; }
39
A.SideNavBarItem { font-family: verdana,arial,serif; background-color : black; color: #e7e7e7; font-size: 9pt; font-weight: bold; text-decoration: none; }
41
A.SideNavBarItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }
43
A.SideNavBarHotItem { font-family: verdana,arial,serif; background-color : black; color: #ffcc66; font-size: 9pt; font-weight: bold; text-decoration: none; }
45
A.SideNavBarHotItem:Hover { font-family: verdana,arial,serif; background-color : black; color: #ccff33; font-size: 9pt; font-weight: bold; text-decoration: none; }
53
<body background="img/sideback.jpg" bgcolor="#FFFFFF" text="black" class="Default">
61
<!-- Begin Side Bar -->
63
<table border="0" width="125" valign=top>
67
<td><a href="http://nagios.manubulon.com/" class="SideNavBarItem" >Home</a></td>
99
<table border="0" valign=top>
103
<td class="ProgramTitle"> Snmp load check</td>
111
<p class="NewsItemDate">Script : check_snmp_load.pl</p>
113
<p class="SectionTitle"> Last update : Sept 5 2006</p>
123
<p class="SectionTitle">Description : </p>
125
<p class="SectionBody">Checks by snmp v1, v2c or v3 cpu or average
129
Works on Windows, Linux/Unix, AS400, Cisco, Cisco catalyst, HP Procurve, LinkProof,
131
Blucoat, Nokia, Fortinet, Netscreen.</p>
133
<p class="SectionBody">Check types are selected by the -T option :
139
<td class="SectionTitle">
140
<div align="center">-T value</div>
142
<td class="SectionTitle">
143
<div align="center">System </div>
145
<td class="SectionTitle">
146
<div align="center">-w & -c values</div>
150
<td class="SectionBody"><b>netsl</b></td>
151
<td class="SectionBody">Linux : load provided by Net SNMP</td>
152
<td class="SectionBody">3 values : load average on 1 min, 5 min,
153
15 min (absolute)</td>
156
<td class="SectionBody"><b>netsc</b></td>
157
<td class="SectionBody">Linux : CPU usage given by net-snmp</td>
158
<td class="SectionBody">1 value in %</td>
161
<td class="SectionBody"><b>as400</b></td>
162
<td class="SectionBody">as400 CPU usage</td>
163
<td class="SectionBody">1 value in %</td>
166
<td class="SectionBody"><b>cisco</b></td>
167
<td class="SectionBody">cisco CPU usage</td>
168
<td class="SectionBody">3 values : CPU average on 5sec, 1 min
172
<td class="SectionBody"><b>cata</b></td>
173
<td class="SectionBody">cisco catalyst CPU usage</td>
174
<td class="SectionBody">3 values : CPU average on 5sec, 1 min
178
<td class="SectionBody"><b>nsc</b></td>
179
<td class="SectionBody">Netscreen CPU usage</td>
180
<td class="SectionBody">3 values : CPU average on 5sec, 1 min
184
<td class="SectionBody"><b>fg</b></td>
185
<td class="SectionBody">Fortigate CPU usage</td>
186
<td class="SectionBody">1 value in %</td>
189
<td class="SectionBody"><b>bc</b></td>
190
<td class="SectionBody">bluecoat CPU usage</td>
191
<td class="SectionBody">1 value in %</td>
194
<td class="SectionBody"><b>nokia</b></td>
195
<td class="SectionBody">nokia CPU usage</td>
196
<td class="SectionBody">1 value in %</td>
199
<td class="SectionBody"><b>hp</b></td>
200
<td class="SectionBody">HP procurve switch CPU usage</td>
201
<td class="SectionBody">1 value in %</td>
204
<td class="SectionBody"><b>lp</b></td>
205
<td class="SectionBody">Linkproof CPU usage</td>
206
<td class="SectionBody">1 value in %</td>
209
<td class="SectionBody"><b>hpux</b></td>
210
<td class="SectionBody">HP-UX load</td>
211
<td class="SectionBody">3 values : load average on 1 min, 5 min,
216
<p class="SectionBody"> Vérifie par snmp v1,v2c ou v3 la charge
218
ou l'ocupation CPU.</p>
220
<p class="SectionBody"><span class="SectionTitle">SNMP Login</span><br>
224
<p class="SectionBody">See <a href="index_info.html">snmp info page</a></p>
226
<p class="SectionTitle">Requirements :</p>
228
<p class="SectionBody"> - Perl in /usr/bin/perl - or just run 'perl
234
- file 'utils.pm' in plugin diretory<br>
238
<p class="SectionBody"><a href="check_snmp_load.pl" class="SectionTitle">Dowload
239
lastest version : 1.3.1</a> </p>
241
<p class="SectionBody"><a href="index_commands.html" class="SectionTitle">Configurations
245
<p class="SectionTitle"><span class="SectionTitle">Changelog</span>
246
: On CVS repository on sourceforge : <a href="http://nagios-snmp.cvs.sourceforge.net/nagios-snmp/plugins/">http://nagios-snmp.cvs.sourceforge.net/nagios-snmp/plugins/</a>.</p>
247
<p class="SectionTitle">Examples :</p>
249
<p class="SectionBody"><br>
251
All examples below are considering the script is local directory.
253
Host to be checked is 127.0.0.1 with snmp community "public".</p>
255
<p class="SectionBody">If multiple interfaces are selected, all must
257
be up to get an OK result</p>
259
<table border="1" cellspacing="5">
261
<td class="NewsItemDate" valign = top width="282">
264
<td class="SectionBody">
265
<p>./check_snmp_load.pl <b>-h</b></p>
269
<td class="NewsItemDate" valign = top width="282">
270
<p>Check loads on linux with Net-SNMP : checks the 1, 5 and
271
15 minutes load average.
273
<td class="SectionBody">
274
<p>./check_snmp_load.pl -H 127.0.0.1 -C public <b>-w 3,3,2 -c
275
4,4,3 -T netsl</b></p>
279
<td class="NewsItemDate" valign = top width="282">
280
<p>Check cpu load (generic) : checks the %used CPU for the last
283
<td class="SectionBody">
284
<p>./check_snmp_load.pl -H 127.0.0.1 -C public <b>-w 98% -c
289
<td class="NewsItemDate" valign = top width="282">
290
<p>Check cpu load on AS/400
292
<td class="SectionBody">
293
<p>./check_snmp_load.pl -H 127.0.0.1 -C public <b>-w 98% -c
299
<p class="NewsItemDate">Output of check_snmp_load.pl -h</p>
301
<table border="1" cellspacing="5">
305
<td class="SectionBody" valign = top>
306
SNMP Load & CPU Monitor for Nagios version 1.3<br>
307
(c)2004-2006 Patrick Proy
308
<p>Usage: ./check_snmp_load.pl [-v] -H <host> -C <snmp_community>
309
[-2] | (-l login -x passwd [-X pass -L <authp>,<privp>])
310
[-p <port>] -w <warn level> -c <crit level>
311
-T=[stand|netsl|netsc|as400|cisco|cata|nsc|fg|bc|nokia|hp|lp]
312
[-f] [-t <timeout>] [-V]<br>
314
print extra debugging information <br>
316
print this help message<br>
317
-H, --hostname=HOST<br>
318
name or IP address of host to check<br>
319
-C, --community=COMMUNITY NAME<br>
320
community name for the host's SNMP agent (implies v1 protocol)<br>
323
-l, --login=LOGIN ; -x, --passwd=PASSWD<br>
324
Login and auth password for snmpv3 authentication <br>
325
If no priv password exists, implies AuthNoPriv <br>
326
-X, --privpass=PASSWD<br>
327
Priv password for snmpv3 (AuthPriv protocol)<br>
328
-L, --protocols=<authproto>,<privproto><br>
329
<authproto> : Authentication protocol (md5|sha : default
331
<privproto> : Priv protocole (des|aes : default des)
334
SNMP port (Default 161)<br>
335
-w, --warn=INTEGER | INT,INT,INT<br>
336
1 value check : warning level for cpu in percent (on one minute)<br>
337
3 value check : comma separated level for load or cpu for
338
1min, 5min, 15min <br>
339
-c, --crit=INTEGER | INT,INT,INT<br>
340
critical level for cpu in percent (on one minute)<br>
341
1 value check : critical level for cpu in percent (on one
343
3 value check : comma separated level for load or cpu for
344
1min, 5min, 15min <br>
345
-T, --type=stand|netsl|netsc|as400|cisco|bc|nokia|hp|lp<br>
347
stand : standard MIBII (works with Windows), <br>
348
can handle multiple CPU.<br>
349
netsl : linux load provided by Net SNMP<br>
350
netsc : cpu usage given by net-snmp (100-idle)<br>
351
as400 : as400 CPU usage<br>
352
cisco : Cisco CPU usage<br>
353
cata : Cisco catalyst CPU usage<br>
354
nsc : NetScreen CPU usage<br>
355
fg : Fortigate CPU usage<br>
356
bc : Bluecoat CPU usage<br>
357
nokia : Nokia CPU usage<br>
358
hp : HP procurve switch CPU usage<br>
359
lp : Linkproof CPU usage<br>
361
Perfparse compatible output<br>
362
-t, --timeout=INTEGER<br>
363
timeout for SNMP in seconds (Default: 5)<br>
365
prints version number</p>
380
<p class="SectionBody">This project is hosted on : <br>
382
<A href="http://sourceforge.net/projects/nagios-snmp"> <IMG src="http://sourceforge.net/sflogo.php?group_id=134917&type=5" width="210" height="62" border="0" alt="SourceForge.net Logo" /></A>
386
<p class="SectionBody"> Nagios and the Nagios logo are registered
388
trademarks of Ethan Galstad.</p>