<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'>Direct copy and paste output of that command:<br><br>UCD-SNMP-MIB::laIndex.1 = INTEGER: 1<br>UCD-SNMP-MIB::laIndex.2 = INTEGER: 2<br>UCD-SNMP-MIB::laIndex.3 = INTEGER: 3<br>UCD-SNMP-MIB::laNames.1 = STRING: Load-1<br>UCD-SNMP-MIB::laNames.2 = STRING: Load-5<br>UCD-SNMP-MIB::laNames.3 = STRING: Load-15<br>UCD-SNMP-MIB::laLoad.1 = STRING: 0.57<br>UCD-SNMP-MIB::laLoad.2 = STRING: 0.42<br>UCD-SNMP-MIB::laLoad.3 = STRING: 0.36<br>UCD-SNMP-MIB::laConfig.1 = STRING: 12.00<br>UCD-SNMP-MIB::laConfig.2 = STRING: 12.00<br>UCD-SNMP-MIB::laConfig.3 = STRING: 12.00<br>UCD-SNMP-MIB::laLoadInt.1 = INTEGER: 56<br>UCD-SNMP-MIB::laLoadInt.2 = INTEGER: 41<br>UCD-SNMP-MIB::laLoadInt.3 = INTEGER: 35<br>UCD-SNMP-MIB::laLoadFloat.1 = Opaque: Float: 0.570000<br>UCD-SNMP-MIB::laLoadFloat.2 = Opaque: Float: 0.420000<br>UCD-SNMP-MIB::laLoadFloat.3 = Opaque: Float: 0.360000<br>UCD-SNMP-MIB::laErrorFlag.1 = INTEGER: noError(0)<br>UCD-SNMP-MIB::laErrorFlag.2 = INTEGER: noError(0)<br>UCD-SNMP-MIB::laErrorFlag.3 = INTEGER: noError(0)<br>UCD-SNMP-MIB::laErrMessage.1 = STRING: <br>UCD-SNMP-MIB::laErrMessage.2 = STRING: <br>UCD-SNMP-MIB::laErrMessage.3 = STRING:<br><br>----- Original Message -----<br>From: "Freddie Cash" <fjwcash@gmail.com><br>To: "Matt Baer" <matt@baerconsult.com><br>Sent: Friday, September 25, 2009 11:53:27 PM GMT -06:00 US/Canada Central<br>Subject: Re: [mrtg] Monitoring Load<br><br>Hrm, if you do "snmpwalk -v2 -c public <a href="http://server.wherever.com" target="_blank">server.wherever.com</a> la" what do you get back?<br><br>Replace "public" with your SNMP community string.<br><br>It sounds like either net-snmp on the remote server doesn't support the la MIB or MRTG on the monitoring server doesn't support the la MIB.<br>
<br><br><br><div class="gmail_quote">On Fri, Sep 25, 2009 at 4:46 PM, Matt Baer <span dir="ltr"><<a href="mailto:matt@baerconsult.com" target="_blank">matt@baerconsult.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: Arial; font-size: 12pt; color: rgb(0, 0, 0);">No go<br><br>Unknown SNMP var laLoad.1<br> at /usr/bin/mrtg line 2207<br>Unknown SNMP var laLoad.3<br> at /usr/bin/mrtg line 2207<br>2009-09-25 18:45:01: WARNING: Expected a number but got '36 days, 1:11:51'<br>
2009-09-25 18:45:01: WARNING: Expected a number but got '<span style="font-weight: bold;">domain name</span>' <~~~~Weird<br>2009-09-25 18:45:13: ERROR: Target[mailserv.load][_IN_] ' $target->[40]{$mode} ' did not eval into defined data<br>
2009-09-25 18:45:13: ERROR: Target[mailserv.load][_OUT_] ' $target->[40]{$mode} ' did not eval into defined data<div class="im"><br><br><br>----- Original Message -----<br>From: "Freddie Cash" <<a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a>><br>
To: "Matt Baer" <<a href="mailto:matt@baerconsult.com" target="_blank">matt@baerconsult.com</a>><br></div><div><div></div><div class="h5">Sent: Friday, September 25, 2009 5:50:29 PM GMT -06:00 US/Canada Central<br>
Subject: Re: [mrtg] Monitoring Load<br><br><div class="gmail_quote">On Fri, Sep 25, 2009 at 3:48 PM, Freddie Cash <span dir="ltr"><<a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Your syntax is incorrect. You need 2 OIDs per Target line (an "in" value and an "out" value)</blockquote><div><br></div><div>If you don't want to graph two IODs, use the same value for both in the Target[]</div>
<div>Target[server.wherever_load]: laLoad.3&laLoad.3:public@server.wherever</div><div><br></div><div>Then you can disable the "out" value on the graph, so it only shows one line:</div><div><div>Options[server.wherever_load]: noo</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Here's a snippet from one of our targets:</div><div><br></div><div><div># 1 and 15 minute load averages</div>
<div>Target[server.whereever_load]: laLoad.1&laLoad.3:public@server.wherever</div><div>SetEnv[server.wherever_load]: MRTG_INT_DESCR="System: Load Avgs" </div>
<div>Title[server.aberdeen.wherever_load]: System: Load Avgs </div><div>MaxBytes[server.wherever_load]: 100 </div>
<div>ShortLegend[server.wherever_load]: </div><div>YLegend[server.wherever_load]: Load Avgs </div>
<div>Legend1[server.wherever_load]: 1-min: </div><div>Legend2[server.wherever_load]: 15-min: </div>
<div>Legend3[server.wherever_load]: Peak 1-min: </div><div>Legend4[server.wherever_load]: Peak 15-min: </div>
<div>LegendI[server.wherever_load]: 1-min: </div><div>LegendO[server.wherever_load]: 15-min: </div>
<div>Options[server.wherever_load]: nopercent gauge</div><div><br></div></div><div><div><div></div><div><br><br><div class="gmail_quote">On Fri, Sep 25, 2009 at 3:13 PM, Matt Baer <span dir="ltr"><<a href="mailto:matt@baerconsult.com" target="_blank">matt@baerconsult.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: Arial; font-size: 12pt; color: rgb(0, 0, 0);">I did just laLoad.3 and got the following:<br>
<br>2009-09-25 17:10:13: ERROR: Target[mailserv.load][_IN_] 'laLoad. $target->[40]{$mode} ' (eval): Bareword "laLoad" not allowed while "strict subs" in use at (eval 80) line 1.<br>
<br>2009-09-25 17:10:13: ERROR: Target[mailserv.load][_OUT_] 'laLoad. $target->[40]{$mode} ' (eval): Bareword "laLoad" not allowed while "strict subs" in use at (eval 81) line 1.<br><br>In my logs. This is what the relevant portion of my .cfg file looks like:<br>
<br>################################################################################<br># Hopefully Load for Mail Server<br>################################################################################<br><br>Target[mailserv.load]: <a href="mailto:laLoad.3%3Apublic@10.0.0.10" target="_blank">laLoad.3:public@10.0.0.10</a><br>
Title[mailserv.load]: Load - Mail Server<br>PageTop[mailserv.load]: <H1>Load - Mail Server</H1><br>MaxBytes[mailserv.load]: 15<br>ShortLegend[mailserv.load]:<br>YLegend[mailserv.load]: Load<br>LegendI[mailserv.load]: In<br>
LegendO[mailserv.load]:<br>Legend1[mailserv.load]: Load<br>Legend2[mailserv.load]:<br>Options[mailserv.load]: nopercent,gauge<br><br><br>I did a search of the entire .cfg file and did not find the string "strict subs" at all in it. What gives?<div>
<br><br><br>----- Original Message -----<br>From: "Freddie Cash" <<a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a>><br>To: "Matt Baer" <<a href="mailto:matt@baerconsult.com" target="_blank">matt@baerconsult.com</a>><br>
</div><div><div></div><div>Cc: "mrtg" <<a href="mailto:mrtg@lists.oetiker.ch" target="_blank">mrtg@lists.oetiker.ch</a>><br>Sent: Friday, September 25, 2009 4:45:14 PM GMT -06:00 US/Canada Central<br>
Subject: Re: [mrtg] Monitoring Load<br><br><div class="gmail_quote">On Fri, Sep 25, 2009 at 2:41 PM, Matt Baer <span dir="ltr"><<a href="mailto:matt@baerconsult.com" target="_blank">matt@baerconsult.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: Arial; font-size: 12pt; color: rgb(0, 0, 0);">I'm not really sure how to use cfgmaker templates. I'm kinda learning these things as I need them. Is there a way to just plug in an OID or something?<br>
<br></div></div></blockquote><div><br></div><div>Just install and enabled net-snmp on the target server. And tell MRTG to graph:</div><div> laLoad.1 for 1-min</div><div> laLoad.3 for 5-min</div><div> laLoad.3 for 15-min averages.</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<div style="font-family: Arial; font-size: 12pt; color: rgb(0, 0, 0);">
----- Original Message -----<br>From: "Steve Shipway" <<a href="mailto:s.shipway@auckland.ac.nz" target="_blank">s.shipway@auckland.ac.nz</a>><br>To: "Matt Baer" <<a href="mailto:matt@baerconsult.com" target="_blank">matt@baerconsult.com</a>>, "mrtg" <<a href="mailto:mrtg@lists.oetiker.ch" target="_blank">mrtg@lists.oetiker.ch</a>><br>
Sent: Friday, September 25, 2009 3:50:49 AM GMT -06:00 US/Canada Central<br>Subject: RE: [mrtg] Monitoring Load<br><br>
<div dir="ltr"><font color="#000000" face="Tahoma" size="2">If you are using SNMP, then the cfgmaker generic host template available at
<a href="http://www.steveshipway.org/cfgmaker" target="_blank">http://www.steveshipway.org/cfgmaker</a> will do the trick nicely.</font></div>
<div dir="ltr"><font face="tahoma" size="2"></font> </div>
<div dir="ltr"><font face="tahoma" size="2">Make sure you use the 5-min load average, not the 1-min or 15-min, if you are polling at 5-min frequency (but use the 1-min if you are polling at 1-min frequency, of course)</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="tahoma" size="2">If you cannot use SNMP, then you might like to use the Nagios NRPE agent with the check_load plugin, then use the mrtg-nrpe plugin for MRTG to allow MRTG to query the values fomr the Nagios agent. mrtg-nrpe is in
the 'extras' directory of the standard Routers2 package from <a href="http://www.steveshipway.org/software" target="_blank">
http://www.steveshipway.org/software</a> - this is the way we do it here.</font></div>
<div dir="ltr"><font face="tahoma" size="2"></font> </div>
<div dir="ltr"><font face="tahoma" size="2">Steve</font></div>
<div dir="ltr"><font face="tahoma" size="2"></font> </div>
<div style="direction: ltr;">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:mrtg-bounces@lists.oetiker.ch" target="_blank">mrtg-bounces@lists.oetiker.ch</a> [<a href="mailto:mrtg-bounces@lists.oetiker.ch" target="_blank">mrtg-bounces@lists.oetiker.ch</a>] On Behalf Of Matt Baer [<a href="mailto:matt@baerconsult.com" target="_blank">matt@baerconsult.com</a>]<br>
<b>Sent:</b> Friday, 25 September 2009 6:15 p.m.<br>
<b>To:</b> mrtg<br>
<b>Subject:</b> [mrtg] Monitoring Load<br>
</font><br>
</div>
<div></div>
<div>
<div style="font-family: Arial; color: rgb(0, 0, 0); font-size: 12pt;">I'm trying to monitor the load of some Linux servers. I've tried a number of different scripts and can't find anything with the glorious Google method. Does anyone have a working method to monitor
load on some Linux machines?<br>
</div>
</div>
</div></div><br>_______________________________________________<br>
mrtg mailing list<br>
<a href="mailto:mrtg@lists.oetiker.ch" target="_blank">mrtg@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Freddie Cash<br><a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a><br>
</div></div></div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><div>Freddie Cash<br><a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Freddie Cash<br><a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a><br>
</div></div></div></div><br>_______________________________________________<br>
mrtg mailing list<br>
<a href="mailto:mrtg@lists.oetiker.ch" target="_blank">mrtg@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Freddie Cash<br><a href="mailto:fjwcash@gmail.com" target="_blank">fjwcash@gmail.com</a><br>
</div></body></html>