Unable to create interface graphs
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Um....
Silly question, does your enviroment has an alias setup for snmpget and snmpwalk, that is overwriting the command line options?
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]
[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]
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]#
I got the same problem...
with Debian testing
PHP 4.3.10-9
snmpwalk output :
The ppp0 interface is not down, though.... Strange...
with Debian testing
Code: Select all
snmpd -v
NET-SNMP version: 5.1.2
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)
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Not completely familar with Mandrake... Can you give me to full line to add and explain the process to add the other repository?
Thanks,
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]
[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]
Same problem, and some info on Mandrake for Rony
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.
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.
Solution -
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Re: Solution -
I know the equal sign is needed...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.
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]
[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]
Who is online
Users browsing this forum: No registered users and 0 guests