Rodolfo J. Paiz wrote:
> First off, it WORKED! Thanks to Brett and Steve for the key pieces of
> help. Of course, some further questions on the subject for resolution:
> 
> At 05:23 10/15/2003, you wrote:
>> You might consider running a less restrictive snmpd until you get
>> things figured out, try changing the sec.model section to any. i.e.
>> 
>> group     MyRWGroup     any     local
>> group     MyROGroup     any      mynetwork
>> 
>> Now you can make a v1 or v2c type query.
> 
> Based on the error messages (many hundreds of them) which I got from
> MRTG in the course of testing, it seems like MRTG uses v1 queries.

You can change the mrtg query type. See the mrtg reference manual where is
states...

SNMPv2c

If you have a fast router you might want to try to poll the ifHC* counters.
This feature gets activated by switching to SNMPv2c. Unfortunately not all
devices support SNMPv2c yet. If it works, this will prevent your counters
from wraping within the 5 minute polling interval, since we now use 64 bit
instead of the normal 32 bit. 
Example:

 Target[ezwf]: 2:[EMAIL PROTECTED]:::::2


> Nevertheless, I set this to "any" as you suggested, which is fine
> except for two errors in /var/log/messages when snmpd is restarted.
> Those errors say: 
> 
> Oct 13 21:11:26 apollo ucd-snmp[22520]: /etc/snmp/snmpd.conf: line 76:
> Error: bad security model "any" should be: v1, v2c or usm -
> installing anyway Oct 13 21:11:26 apollo ucd-snmp[22520]:
> /etc/snmp/snmpd.conf: line 77: Error: bad security model "any" should
> be: v1, v2c or usm - installing anyway 
> 
> What should I do here to correct this error and make it go away?

You must be running a different version of snmp than what I'm running. I
don't see the above error when I start snmpd at this end. FWIW: I changed my
snmpd.conf file to "any" before I posted just to be sure that was a valid
option.

[EMAIL PROTECTED] scowles]$ rpm -q net-snmp
net-snmp-5.0.6-17
[EMAIL PROTECTED] scowles]$ rpm -q net-snmp-utils
net-snmp-utils-5.0.6-17

Anyway, now that you have things working, set the sec.model back to v1 for
both group entries. i.e. localhost and your network address. BTW: You should
be able to add multiple entries for both v1 and v2c.

> 
> Also, three more questions, now directly related to the MRTG output:
> 
>          1. "The statistics were last updated... blah, blah... at
> which time 'apollo.paiz.org' had been up for 2:01:10." The actual
> uptime is around 12 days... where is snmpd/mrtg getting its data, and
> how can I make sure that it gets the correct data?

See Brett's answer.

> 
>          2. I have a screen resolution of 1400x1050 on my notebook,
> and 1280x1024 on my desktop. The charts seem to be optimized for
> 640x480 or something... they look tiny. Can I either make them
> larger, or maybe put two interface charts side by side? (This box
> only has two interfaces, so being able to see both at once would be
> nice too.) 

This was one of the reasons I switched to using rrdtool and routers.cgi
mentioned in my previous post. With routers.cgi, you can specify what
resolution to create the graphs. Plus the graphs are created dynamically by
reading the rrdtool database, not during the mrtg run like the default mrtg
configuration.

Also, using the default mrtg graphs (not routers.cgi/rrdtool), you can
display multiple graphs on a single page by using the mrtg supplied command
"indexmaker"

> 
>          3. I have a 256 Kbps link... should I set MaxBytes to exactly
> 32000 or 32768? I know it's for display only, but what is the
> _correct_ value? 

I simply divide the Kbps value by 8 to specify the MaxBytes value.

Steve Cowles


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to