Getting cacti to gather network traffic stats

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

Moderators: Developers, Moderators

lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

rony wrote:Um, did you update snmpwalk's permissions?

Code: Select all

cacti:~# ls -l /usr/bin/snmpget
-rwxr-xr-x  1 root root 6160 2005-10-15 11:27 /usr/bin/snmpget
cacti:~# ls -l /usr/bin/snmpwalk
-rwxr-xr-x  1 root root 8216 2005-10-15 11:27 /usr/bin/snmpwalk

Code: Select all

cacti:~# dpkg -l *snmp*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                              Version                           Description
+++-=================================-=================================-==================================================================================
un  libsnmp                           <none>                            (no description available)
ii  libsnmp-base                      5.2.1.2-4                         NET SNMP (Simple Network Management Protocol) MIBs and Docs
un  libsnmp-dev                       <none>                            (no description available)
ii  libsnmp-perl                      5.2.1.2-4                         NET SNMP (Simple Network Management Protocol) Perl5 Support
un  libsnmp5-dev                      <none>                            (no description available)
ii  libsnmp9                          5.2.1.2-4                         NET SNMP (Simple Network Management Protocol) Library
ii  libsnmp9-dev                      5.2.1.2-4                         NET SNMP (Simple Network Management Protocol) Development Files
ii  php4-snmp                         4.4.0-4                           SNMP module for php4
un  php5-snmp                         <none>                            (no description available)
ii  snmp                              5.2.1.2-4                         NET SNMP (Simple Network Management Protocol) Apps
un  snmpd                             <none>                            (no description available)

All work ... but not polling interface from devices ...

Code: Select all

1) SNMP - Interface Statistics  (Verbose Query)  Uptime Goes Backwards  Success [0 Items, 0 Rows]  

On an another Debian not updated All works !
The difference between these are version of net-snmp and cacti/cactid :

Code: Select all

monitoring:/usr/share# dpkg -l |grep snmp
ii  libsnmp-base             5.2.1.2-4             NET SNMP (Simple Network Management Protocol
ii  libsnmp-session-perl     1.07-1                Perl support for accessing SNMP-aware device
ii  libsnmp5                 5.1.2-6.1             NET SNMP (Simple Network Management Protocol
ii  libsnmp9                 5.2.1.2-4             NET SNMP (Simple Network Management Protocol
ii  php4-snmp                4.4.0-4               SNMP module for php4
ii  snmp                     5.2.1.2-4             NET SNMP (Simple Network Management Protocol

Code: Select all

monitoring:/usr/share# dpkg -l |grep cacti
ii  cacti                    0.8.6g-1              Frontend to rrdtool for monitoring systems a
ii  cacti-cactid             0.8.6d-5              Multi-Threading poller for cacti


Thks in advance,

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

Post by rony »

Ok, I have to request that you install cacti from the source available on the cacti site.

No offence to the maintainer of the Deb packages, but we have had problems in the past. (FYI, I know will read this and email me.. :) )
[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]
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

rony wrote:Ok, I have to request that you install cacti from the source available on the cacti site.

No offence to the maintainer of the Deb packages, but we have had problems in the past. (FYI, I know will read this and email me.. :) )

On RHEL 4.0 I use cacti from source available on the site...
[root@nrbl05 ~]# rpm -qa |grep snmp
net-snmp-5.1.2-11.EL4.6
net-snmp-devel-5.1.2-11.EL4.6
net-snmp-utils-5.1.2-11.EL4.6
php-snmp-4.3.9-3.9
net-snmp-libs-5.1.2-11.EL4.6

drwxr-xr-x 10 apache apache 4096 Nov 16 12:23 cacti-0.8.6g
drwxr-xr-x 4 root root 4096 Nov 8 10:32 cactid-0.8.6f-1

Any recent system on the level of packages don't work ...

Do you have an idea ? I shouldn't be only in this case ...
I need really a solution :(

Thks in advance,

Lionel
fata51
Posts: 17
Joined: Wed Nov 16, 2005 8:34 am

Post by fata51 »

I have last versions of packages for Debian Sarge. I don't use cactid.

It doesn't work too...
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

Debian , Redhat ... cacti doesn't work.
Certainly bug with libsnmp ... no ?
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

yay good to see its not just me, there appears to be some kind of bug. i am using latest ver of net-snmp, pre-compiled cacti and from source, and still get the same issue. im leaning towards running mrtg just for bandwidth graphs, because i know that mrtg actually works.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, what versions of Debian and Redhat are you running?

Is there a way I can inspect the systems to determine what is going on? If not, I will attempt to install in VMware and reproduce.
[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]
fsd
Posts: 21
Joined: Sat Jul 23, 2005 12:26 am

Post by fsd »

im running ubuntu (breezy badger)
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

rony wrote:Ok, what versions of Debian and Redhat are you running?

Is there a way I can inspect the systems to determine what is going on? If not, I will attempt to install in VMware and reproduce.
Rony,

I use RHEL 4.0 or Debian (Sarge, Testing).

It's easy to reproduce the problem... update the distribution, you will have the last versions of net-snmp, php-snmp, php, ...
The polling via SNMP works well but not to poll interfaces ...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, not really, I'm not running any of those distros, so I have to install them. If I was able to access and troubleshoot on your installations, that would help me to fix it quicker.
[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]
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

rony wrote:Well, not really, I'm not running any of those distros, so I have to install them. If I was able to access and troubleshoot on your installations, that would help me to fix it quicker.
Sorry but it's not possible because of the security policy ...
Just install a debian box, "testing" version of debian. Add a device where you can monitor interfaces and you'll see the problem.
I can maybe reproduce this problem at home on my debian server in polling my interfaces and the interface of Access point...

Are you there this evening ?

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

Post by rony »

I will be around after 19:00 CST
[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]
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

rony wrote:I will be around after 19:00 CST

When you're ready, send me a mail at lga AT segfault DOT be

Thks in advance,

Lionel.
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

Rony,

I found the problem. It's about the cacti database!!!
If I rebuild a new database with cact.sql for example, the polling interfaces works !

What's uses "SNMP - Interface Statistics" ? How can I correct this problem ?
The problem is just for polling interface with "SNMP - Interface Statistics"??

Thks in advance,

Lionel
tonyurban
Posts: 6
Joined: Wed Nov 16, 2005 1:44 pm

Post by tonyurban »

Just wanted to post a quick reply to thank rony for the personal help in debugging my cacti install. Stupid user error, fixed.

Thanks again.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest