snmp - dont work..no response...SNMP and RRD Tool Errors....

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

snmp - dont work..no response...SNMP and RRD Tool Errors....

Post by ApoC »

hi guys...

i use cati as well, but some things are not working.

i CAN graph HDD, CPU and DISK with rrdtool. graphs are there an works great.

but now i would graph the traffic from eth0.

this appears in the webinterface:

Code: Select all

 Localhost (127.0.0.1)
SNMP Information
SNMP not in use 
and i have very very big probs with snmp. when i use the following command on the shell, i get an error..

Code: Select all

shell:~# snmpwalk -c public -v 1 localhost
Timeout: No Response from localhost
shell:~#
when is use following i get...

Code: Select all

shell:~# snmpd -v

NET-SNMP version:  5.2.1
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net
what is my failure?

i would only graph traffic on eth0....any ideas?
Last edited by ApoC on Thu Feb 24, 2005 1:30 pm, edited 1 time in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You should be able to run snmpconf, which will allow you to configure snmpd configuration file. Then you still have to start snmpd, depending on you OS, there should be an init script in /etc/init.d or /etc/rc.d/init.d to start snmpd.

Refer to the snmpd.conf documentation for more help with configuring snmpd.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

it must running? i think it would be called....when needed...hmmm

i see no traffic option in there....

Code: Select all

Section: Monitor Various Aspects of the Running Host
Description:
  The following check up on various aspects of a host.

Select from:

   1:  Check for processes that should be running.
   2:  Check for disk space usage of a partition.
   3:  Check for unreasonable load average values.
   4:  Check on the size of a file.

Other options: finished, list

Select section:
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

now ive snmp running...

but...o m g...

i would create device named traffic

verbose mode to check...

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='End of MIB'] index: End of MIB [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='End of MIB'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
seems to be okay...

created a graph traffic, but i cant choose any options...

Code: Select all

1) SNMP - Interface Statistics  	 (Verbose Query)  	 Uptime Goes Backwards  	 Success [9 Items, 2 Rows]  	 Reload Data Query  Delete Data Query Association
seems okay....

editing localhost traffic - RRDTool Says:

ERROR: can't parse '#00CF00:Inbound'

DATA SOURCES:

Code: Select all

 Localhost - Traffic
Data Source Debug

/usr/bin/rrdtool create \
/var/www/cacti/rra/localhost_traffic_in_10.rrd \
--step 300  \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
seems to be tracked..but...cant create a graph...

and at the end...rrdtool doesnt create the "localhost_traffic_in_10.rrd"..why not?

Code: Select all

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/localhost_traffic_in_14.rrd': No such file or directory
cant choose in or outbound on this...whats the failure?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Make sure that user that the poller is running as has permissions on the rra and log directory to read/write.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

all other rra´s are there...why should this not being written?
ApoC
Posts: 18
Joined: Sun Jan 16, 2005 10:11 pm

Post by ApoC »

no answer?? hmmm....
nurseryboy
Posts: 1
Joined: Mon Feb 28, 2005 10:31 pm
Contact:

Post by nurseryboy »

ApoC,

What did you do to get snmp running correctly? I've been through the config, but couldn't figure out what needed to be changed, if anything.

Thanks,
Matthew
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests