Graph Generated but no inbound & outbound info

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

Moderators: Developers, Moderators

alexito
Posts: 10
Joined: Thu Nov 17, 2005 7:03 am
Location: Ghana
Contact:

Graph Generated but no inbound & outbound info

Post by alexito »

Hi Guys,

I just joined the forum and I am having abit of a problem. My graphs are displaying but they appear empty. There are no inbound and outbound traffic generated for any of the devices I am polling from. I can attach devices and cacti can talk to them all right but I get empty graphs with no inbound and outbound traffic information on them.

This is my OS environment

Redhat Enterprise Server AS
Apache 2.0.52
PHP 4.3.3
rrdtool 1.0.49
net-snmp 5.1.2
mysql 4.0.21
cacti 0.8.6g with all patches applied

Please assist, as I am new to cacti and will appreciate any help.

Here are the output from my cacti logs

11/16/2005 03:10:00 PM - SYSTEM STATS: Time:3.3261 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:30 RRDsProcessed:19
11/16/2005 03:09:58 PM - CMDPHP: Poller[0] Host[7] DS[13] WARNING: Result from SNMP not valid. Partial Result:
Opensource is the future
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

"Results from SNMP not valid" tells us, that there is an snmp problem. Please switch to DEBUG mode (see: Settings) on run at least one polling cycle. Look at your cacti.log a you'll see the failing OID. Check that OID using snmpwalk from command line.
Reinhard
alexito
Posts: 10
Joined: Thu Nov 17, 2005 7:03 am
Location: Ghana
Contact:

Post by alexito »

Thanks for replying. I am new to cacti so you will have to be a little patient with me.

[Please switch to DEBUG mode (see: Settings) on run at least one polling cycle]

Data Source Debug
/usr/local/rrdtool/bin/rrdtool create \
/www/htdocs/cacti/rra/ecoband_core_router_traffic_in_18.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
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 \

I hope this is what you are talking about, please tell me if I am doing the wrong thing.

Is this the way to run the polling cycle?

[root@ns0 cacti]# php poller.php
Missing object name
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

OPTIONS:
-h, --help display this help message
-H display configuration file directives understood
-v 1|2c|3 specifies SNMP version to use
-V, --version display package version number
SNMP Version 1 or 2c specific
-c COMMUNITY set the community string
SNMP Version 3 specific
-a PROTOCOL set authentication protocol (MD5|SHA)
-A PASSPHRASE set authentication protocol pass phrase
-e ENGINE-ID set security engine ID (e.g. 800000020109840301)
-E ENGINE-ID set context engine ID (e.g. 800000020109840301)
-l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
-n CONTEXT set context name (e.g. bridge1)
-u USER-NAME set security name (e.g. bert)
-x PROTOCOL set privacy protocol (DES|AES)
-X PASSPHRASE set privacy protocol pass phrase
-Z BOOTS,TIME set destination engine boots/time
General communication options
-r RETRIES set the number of retries
-t TIMEOUT set the request timeout (in seconds)
Debugging
-d dump input/output packets in hexadecimal
-D TOKEN[,...] turn on debugging output for the specified TOKENs
(ALL gives extremely verbose debugging output)
General options
-m MIB[:...] load given list of MIBs (ALL loads everything)
-M DIR[:...] look in given list of directories for MIBs
-P MIBOPTS Toggle various defaults controlling MIB parsing:
u: allow the use of underlines in MIB symbols
c: disallow the use of "--" to terminate comments
d: save the DESCRIPTIONs of the MIB objects
e: disable errors when MIB symbols conflict
w: enable warnings when MIB symbols conflict
W: enable detailed warnings when MIB symbols conflict
R: replace MIB symbols from latest module
-O OUTOPTS Toggle various defaults controlling output display:
a: print all strings in ascii format
b: do not break OID indexes down
e: print enums numerically
E: escape quotes in string indices
f: print full OIDs on output
n: print OIDs numerically
q: quick print for easier parsing
Q: quick print with equal-signs
s: print only last symbolic element of OID
S: print MIB module-id plus last element
t: print timeticks unparsed as numeric integers
T: print human-readable text along with hex strings
u: print OIDs using UCD-style prefix suppression
U: don't print units
v: print values only (not OID = value)
x: print all strings in hex format
X: extended index format
-I INOPTS Toggle various defaults controlling input parsing:
b: do best/regex matching to find a MIB node
h: don't apply DISPLAY-HINTs
r: do not check values for range/type legality
R: do random access to OID labels
u: top-level OIDs must have '.' prefix (UCD-style)
s SUFFIX: Append all textual OIDs with SUFFIX before parsing
S PREFIX: Prepend all textual OIDs with PREFIX before parsing
-L LOGOPTS Toggle various defaults controlling logging:
e: log to standard error
o: log to standard output
f file: log to the specified file
s facility: log to syslog (via the specified facility)

(variants)
[EO] pri: log to standard error/output for level 'pri' and above
[EO] p1-p2: log to standard error/output for levels 'p1' to 'p2'
[FS] pri token: log to file/syslog for level 'pri' and above
[FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
-C APPOPTS Set various application specific behaviours:
f: do not fix errors and retry the request
Missing object name
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

OPTIONS:
-h, --help display this help message
-H display configuration file directives understood
-v 1|2c|3 specifies SNMP version to use
-V, --version display package version number
SNMP Version 1 or 2c specific
-c COMMUNITY set the community string
SNMP Version 3 specific
-a PROTOCOL set authentication protocol (MD5|SHA)
-A PASSPHRASE set authentication protocol pass phrase
-e ENGINE-ID set security engine ID (e.g. 800000020109840301)
-E ENGINE-ID set context engine ID (e.g. 800000020109840301)
-l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
-n CONTEXT set context name (e.g. bridge1)
-u USER-NAME set security name (e.g. bert)
-x PROTOCOL set privacy protocol (DES|AES)
-X PASSPHRASE set privacy protocol pass phrase
-Z BOOTS,TIME set destination engine boots/time
General communication options
-r RETRIES set the number of retries
-t TIMEOUT set the request timeout (in seconds)
Debugging
-d dump input/output packets in hexadecimal
-D TOKEN[,...] turn on debugging output for the specified TOKENs
(ALL gives extremely verbose debugging output)
General options
-m MIB[:...] load given list of MIBs (ALL loads everything)
-M DIR[:...] look in given list of directories for MIBs
-P MIBOPTS Toggle various defaults controlling MIB parsing:
u: allow the use of underlines in MIB symbols
c: disallow the use of "--" to terminate comments
d: save the DESCRIPTIONs of the MIB objects
e: disable errors when MIB symbols conflict
w: enable warnings when MIB symbols conflict
W: enable detailed warnings when MIB symbols conflict
R: replace MIB symbols from latest module
-O OUTOPTS Toggle various defaults controlling output display:
a: print all strings in ascii format
b: do not break OID indexes down
e: print enums numerically
E: escape quotes in string indices
f: print full OIDs on output
n: print OIDs numerically
q: quick print for easier parsing
Q: quick print with equal-signs
s: print only last symbolic element of OID
S: print MIB module-id plus last element
t: print timeticks unparsed as numeric integers
T: print human-readable text along with hex strings
u: print OIDs using UCD-style prefix suppression
U: don't print units
v: print values only (not OID = value)
x: print all strings in hex format
X: extended index format
-I INOPTS Toggle various defaults controlling input parsing:
b: do best/regex matching to find a MIB node
h: don't apply DISPLAY-HINTs
r: do not check values for range/type legality
R: do random access to OID labels
u: top-level OIDs must have '.' prefix (UCD-style)
s SUFFIX: Append all textual OIDs with SUFFIX before parsing
S PREFIX: Prepend all textual OIDs with PREFIX before parsing
-L LOGOPTS Toggle various defaults controlling logging:
e: log to standard error
o: log to standard output
f file: log to the specified file
s facility: log to syslog (via the specified facility)

(variants)
[EO] pri: log to standard error/output for level 'pri' and above
[EO] p1-p2: log to standard error/output for levels 'p1' to 'p2'
[FS] pri token: log to file/syslog for level 'pri' and above
[FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
-C APPOPTS Set various application specific behaviours:
f: do not fix errors and retry the request
OK u:0.00 s:0.00 r:2.18
OK u:0.00 s:0.01 r:2.18
OK u:0.00 s:0.01 r:2.19
OK u:0.00 s:0.01 r:2.19
OK u:0.00 s:0.01 r:2.20
OK u:0.00 s:0.01 r:2.22
OK u:0.00 s:0.01 r:2.22
OK u:0.00 s:0.01 r:2.22
OK u:0.00 s:0.01 r:2.23
OK u:0.01 s:0.01 r:2.25
OK u:0.01 s:0.01 r:2.26
OK u:0.01 s:0.01 r:3.17
OK u:0.01 s:0.01 r:3.18
OK u:0.01 s:0.01 r:3.19
OK u:0.01 s:0.01 r:3.19
OK u:0.01 s:0.01 r:3.20
OK u:0.01 s:0.01 r:4.17
OK u:0.01 s:0.01 r:4.18
Timeout: No Response from 62.56.205.3:161.
11/17/2005 10:48:41 PM - SYSTEM STATS: Time:5.2751 Method:cmd.php Processes:3 Threads:N/A Hosts:5 HostsPerProcess:2 DataSources:36 RRDsProcessed:18


After the polling cycle, I ran the cacti log file, here are the results.

[root@ns0 log]# more cacti.log
11/16/2005 03:09:58 PM - CMDPHP: Poller[0] Host[7] DS[13] WARNING: Result from S
NMP not valid. Partial Result:
11/16/2005 03:10:00 PM - SYSTEM STATS: Time:3.3261 Method:cmd.php Processes:1 Th
reads:N/A Hosts:4 HostsPerProcess:4 DataSources:30 RRDsProcessed:19
11/17/2005 03:05:25 PM - CMDPHP: Poller[0] Host[10] DS[27] WARNING: Result from
SNMP not valid. Partial Result: No Such Object avail
11/17/2005 03:05:25 PM - CMDPHP: Poller[0] Host[10] DS[28] WARNING: Result from
SNMP not valid. Partial Result:
11/17/2005 03:05:26 PM - CMDPHP: Poller[0] Host[7] DS[13] WARNING: Result from S
NMP not valid. Partial Result:
11/17/2005 03:05:30 PM - SYSTEM STATS: Time:5.1870 Method:cmd.php Processes:3 Th
reads:N/A Hosts:5 HostsPerProcess:2 DataSources:36 RRDsProcessed:18
11/17/2005 10:48:37 PM - CMDPHP: Poller[0] Host[10] DS[27] WARNING: Result from
SNMP not valid. Partial Result: No Such Object avail
11/17/2005 10:48:37 PM - CMDPHP: Poller[0] Host[7] DS[13] WARNING: Result from S
NMP not valid. Partial Result:
11/17/2005 10:48:37 PM - CMDPHP: Poller[0] Host[10] DS[28] WARNING: Result from
SNMP not valid. Partial Result:
11/17/2005 10:48:40 PM - CMDPHP: Poller[0] Host[1] ERROR: HOST EVENT: Host is DO
WN Message: Host did not respond to SNMP
11/17/2005 10:48:41 PM - SYSTEM STATS: Time:5.2751 Method:cmd.php Processes:3 Th
reads:N/A Hosts:5 HostsPerProcess:2 DataSources:36 RRDsProcessed:18



[Check that OID using snmpwalk from command line. ]

How do I do that?


Thanks
Opensource is the future
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

In your settings, what SNMP Utility Version do you have selected?
[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]
alexito
Posts: 10
Joined: Thu Nov 17, 2005 7:03 am
Location: Ghana
Contact:

Post by alexito »

net-snmp-5.1.2

Please, how do I check the OID using snmpwalk from command line?
Opensource is the future
nugai
Posts: 49
Joined: Thu Nov 03, 2005 10:48 pm

Post by nugai »

alexito wrote:Please, how do I check the OID using snmpwalk from command line?
Try this for a list of interfaces:

Code: Select all

snmpwalk -v 1 -c  public 62.56.205.3 .1.3.6.1.2.1.2.2.1.1
The notation is:

Code: Select all

"snmpwalk -v 1 -c  <community>  <IPaddress>  <OID>", where:

"-v 1" defines the SNMP version (in this case SNMP version 1).
"-c  <community>" defines the SNMP community name ("-c public" is usually the default).
"<IPaddress>"  is the IP address your polling (e.g. "62.56.205.3")
"<OID>" is the OID (e.g. ".1.3.6.1.2.1.2.2.1.1" .
BTW: Your debug shows:

Code: Select all

Timeout: No Response from 62.56.205.3:161. 
In my limited experience (I too am new to cacti and SNMP), this indicates a SNMP version problem (e.g. sending SNMP v2 instead of SNMP v1).

Good luck.
alexito
Posts: 10
Joined: Thu Nov 17, 2005 7:03 am
Location: Ghana
Contact:

Post by alexito »

ok.

I did just that

snmpwalk -v 1 -c public 62.56.205.3 .1.3.6.1.2.1.2.2.1.1

and I got

Timeout: No Response from 62.56.205.3

I installed net-snmp-5.1.2 as stated on the .pdf documentation on cactis' website.

How do I fix this problem. Thanks for your help for far, at least we have identified the problem.
Opensource is the future
alexito
Posts: 10
Joined: Thu Nov 17, 2005 7:03 am
Location: Ghana
Contact:

Post by alexito »

ok.

I did just that

snmpwalk -v 1 -c public 62.56.205.3 .1.3.6.1.2.1.2.2.1.1

and I got

Timeout: No Response from 62.56.205.3

I installed net-snmp-5.1.2 as stated on the .pdf documentation on cactis' website.

How do I fix this problem. Thanks for your help for far, at least we have identified the problem.
Opensource is the future
nugai
Posts: 49
Joined: Thu Nov 03, 2005 10:48 pm

Post by nugai »

OK. Try the next higher SNMP version:

Code: Select all

snmpwalk -v 2c -c  public 62.56.205.3 .1.3.6.1.2.1.2.2.1.1
nugai
Posts: 49
Joined: Thu Nov 03, 2005 10:48 pm

Post by nugai »

In your firewall(s), do you have IP ports 161 and 162 open on both the host that is polling and the device being polled?
nugai
Posts: 49
Joined: Thu Nov 03, 2005 10:48 pm

Post by nugai »

Can you log into the device being polled and verify whether the SNMP community is "public" or something else?
alexito
Posts: 10
Joined: Thu Nov 17, 2005 7:03 am
Location: Ghana
Contact:

Post by alexito »

There are no firewall rules and the community string for the device is correct. What I noticed is that when connecting to the device, if I use version 1 on the host, it generates a SNMP error but when I use version 2, it polls information from the device all right. This shows that version 2 of SNMP is running on the device.

We use intermapper to monitor all traffic on our network and it works well. We want to give customers the ability to check their bandwidth usage with cacti.

Can you advice what next I should do, should I re-install net-snmp.
Opensource is the future
nugai
Posts: 49
Joined: Thu Nov 03, 2005 10:48 pm

Post by nugai »

alexito wrote:What I noticed is that when connecting to the device, if I use version 1 on the host, it generates a SNMP error but when I use version 2, it polls information from the device all right. This shows that version 2 of SNMP is running on the device.
Does that mean you are getting a response using snmpwalk with version 2?
alexito
Posts: 10
Joined: Thu Nov 17, 2005 7:03 am
Location: Ghana
Contact:

Post by alexito »

The host uses SNMP version 2. I don't know what version I am using on my server. How can I find that out?
Opensource is the future
nugai
Posts: 49
Joined: Thu Nov 03, 2005 10:48 pm

Post by nugai »

The terms "host", "device" and "server" seem to be used in different contexts. Which is which and what are they?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest