Unable to create interface graphs

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

Moderators: Developers, Moderators

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

Post by rony »

Um....

Silly question, does your enviroment has an alias setup for snmpget and snmpwalk, that is overwriting the command line options?
[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]
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

No, just straight out of the box configs.

Code: Select all

[root@zus2 branix]# alias
alias cd..='cd ..'
alias cp='cp -i'
alias d='ls'
alias df='df -h -x supermount'
alias du='du -h'
alias l='ls'
alias la='ls -a'
alias ll='ls -l'
alias ls='ls -F --color=auto'
alias lsd='ls -d */'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
alias md='mkdir'
alias mv='mv -i'
alias p='cd -'
alias rd='rmdir'
alias rm='rm -i'
alias s='cd ..'
[root@zus2 branix]#
User avatar
_pre[PL]
Posts: 12
Joined: Mon Dec 29, 2003 5:25 pm
Location: Poland, Gdynia
Contact:

Post by _pre[PL] »

I got the same problem...
with Debian testing

Code: Select all

snmpd -v

NET-SNMP version:  5.1.2
PHP 4.3.10-9

snmpwalk output :

Code: Select all

IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifDescr.4 = STRING: eth2
IF-MIB::ifDescr.5 = STRING: ppp0
IF-MIB::ifDescr.6 = STRING: ra0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.5 = INTEGER: ppp(23)
IF-MIB::ifType.6 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.4 = INTEGER: up(1)
IF-MIB::ifOperStatus.5 = INTEGER: down(2)
IF-MIB::ifOperStatus.6 = INTEGER: up(1)
The ppp0 interface is not down, though.... Strange...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That is not the same problem.... What Brainix is having is the output from snmpwalk does not have the "=" sign. But he is not applying the switch that removes the equal sign.
[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]
User avatar
_pre[PL]
Posts: 12
Joined: Mon Dec 29, 2003 5:25 pm
Location: Poland, Gdynia
Contact:

Post by _pre[PL] »

I meant I got the same situation in cacti :D
Might be parsing problem, as thewittness suggested

regards
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Parsing problem was just an idea. Has been ruled out at this point. I had some issues last night with mandrake in vmware, doesn't want to start X, so I have to work on that, but getting close to recreating your enviroment Brainix.

As for parsing error, send me an email with details of what is happening.
[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]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That output is lame.....

Um, I can't seem to find net-snmp as a package in mandrake 10.1, where did you get it?

I did notice that they do not have a snmp php module package, interesting... And mysql is version 4.0.20.

I assume at this point, you are using the ucd-snmp package. Please remember to select that in your cacti settings.
[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]
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

If the net-snmp package is not included in the default distribution, I am sure it is included in their contrib media cource (got that by ftp). I add this instalation media to the urpmi sources, and then urpmi net-snmp.

I am currently runing net-snmp, but probably will switch to ucd soon.

If I'll have time next week, I'll go through the cacti source code myself.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Not completely familar with Mandrake... Can you give me to full line to add and explain the process to add the other repository?

Thanks,
[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]
hank42
Posts: 8
Joined: Sun Apr 03, 2005 9:45 pm

Same problem, and some info on Mandrake for Rony

Post by hank42 »

I am having the same problem - Same distro -

http://forums.cacti.net/viewtopic.php?p=28374#28374

Rony, to help you get your Mandrake 10.1 test box up to snuff, the easy way to get things going is to use urpmi. Go to this web page, and follow the instructions:

http://easyurpmi.zarb.org/

http://easyurpmi.zarb.org/

From a vanilla install of Mandrake 10.1, here are the packages that need to be installed to satisfy the Cacto 0.8.6.c dependancies:

urpmi php-xml
urpmi rrdtool
urpmi net-snmp
urpmi net-snmp-utils
urpmi mysql


cacti will install, and work, and even work well for Cisco CPU etc, but for some reason, it fails with the interfaces(That's why you're reading this :) )

The version of net-snmp that gets installed witht eh above command is listed below:

"USAGE: snmpwalk [OPTIONS] AGENT [OID]

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

I'm willing to pitch in and try some "Crazy stuff" - I have a devel box ready.
hank42
Posts: 8
Joined: Sun Apr 03, 2005 9:45 pm

Solution -

Post by hank42 »

branix, rory:

The Witness is correct that snmpwalk needs to put an "=" sign in its output.

snmpwalk has an output modifer that lets you do just that:

snmpwalk -OQ is the command line syntax.

I patched my snmp.php file to inclue the "-OQ":

line 130 was changed from:

$temp_array = exec_into_array(read_config_option("path_snmpwalk") . " $snmp_auth -v $version -t $timeout -r $retries $hostname:$port $oid");

TO:

$temp_array = exec_into_array(read_config_option("path_snmpwalk") . " -OQ $snmp_auth -v $version -t $timeout -r $retries $hostname:$port $oid");



Every things seems to be right again.
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

Sorry to be inactive for that long :)

hank42 I'll try yor patch asap and report back ;)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: Solution -

Post by rony »

hank42 wrote:branix, rory:

The Witness is correct that snmpwalk needs to put an "=" sign in its output.

snmpwalk has an output modifer that lets you do just that:

snmpwalk -OQ is the command line syntax.

I patched my snmp.php file to inclue the "-OQ":

line 130 was changed from:

$temp_array = exec_into_array(read_config_option("path_snmpwalk") . " $snmp_auth -v $version -t $timeout -r $retries $hostname:$port $oid");

TO:

$temp_array = exec_into_array(read_config_option("path_snmpwalk") . " -OQ $snmp_auth -v $version -t $timeout -r $retries $hostname:$port $oid");



Every things seems to be right again.
I know the equal sign is needed... :P

My question is why is this different with those archives in Mandrake. Seems like someone has changed something they shouldn't. The "Q" output option is the default output of snmpget and snmpwalk. I will check it out when I get home, I think that option can safely be added to the main distrubution without affecting current working installations.
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests