Redhat 9 & 0.8.6g

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

Moderators: Developers, Moderators

Post Reply
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Redhat 9 & 0.8.6g

Post by Instigater »

I wanted to upgrade to newer version of cacti but strange error arised.
I installed new version along with old one using new install and new database.
I can make ucd/net SNMP cpu usage graphs but no data returned for interface and partition statistics.
Right now a cannot play much around because old version (0.8.5) is still needed with its history.

In our test environmet I use Gentoo. On that box everything was normal and working fine except Unix - Get Mounted Partitions which give 0 results.

System:
Redhat 9
PHP Version 4.2.2
UCD-SNMP Version: 5.0.6 (enabled in PHP)

Code: Select all

 SNMP Information
System: Linux xxxxx 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686
Uptime: 136297615
Hostname: xxxxx

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/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'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/interface.xml'
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

Got this working.
Replaced snmp.php from version 0.8.6c and now SNMP queries work.

I'm rather sure that this is a bug.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Need additional information: snmp version, php_snmp in use, net/ucd snmp version in use, etc.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

How do I get all information you need?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

snmp version run "snmpwalk"

php version run "php -v"

php_snmp in use run "php -m"

Settings->Paths, Settings->General for associations with Net-SNMP versions and binary paths.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

snmpwalk
Version: 5.0.6

php -v
4.2.2

php -m
Running PHP 4.2.2
Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies

[PHP Modules]
yp
xml
wddx
sysvshm
sysvsem
standard
sockets
shmop
session
pspell
posix
pcre
openssl
ncurses
iconv
gmp
gettext
gd
ftp
exif
domxml
dio
dbx
dba
curl
ctype
calendar
bz2
bcmath
zlib
mysql
snmp

no zend modules
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

Settings->Paths, Settings->General for associations with Net-SNMP versions and binary paths.
I believe that this is impossible while not having Xwindow.

Got that! ;-)

Settings -> General:
NET-SNMP 5.x

Paths:
/usr/bin/snmpwalk
/usr/bin/snmpget
/usr/local/rrdtool-1.0.46/bin/rrdtool
/usr/bin/php
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I don't see how backing off fixed your problem. I am perplexed. What was the hosts SNMP version that you were polling with when you had the problem. I am hoping v2... You may have to upgrade PHP...

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

It was v2.

Right now this is not a problem any more. We did setup new cacti version on another server with Gentoo because old box could not handle two pollers using 1 minute resolution for up to 1 month scale.

We have also hacked cacti to have more functionality - added reports and messages tab (no related to graphs nor querries). This hack only shares web interface between cacti and report system. Reports are PDF files that are shared through web interface. MySQL have reports table where are defined which file is assigned to which user. Messages are just plain text notes what has happened if something abnormal in graphs are shown. They are stored in messages table in SQL.

Is it possible to review and maybe add this functionality in mainstream cacti releases? (I can share source code if needed).
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

With a V2 host I can see why. Upgrading PHP would definately solve a lot of problems there. With regard to your feature, PM me some screen shots and I will distribute and provide comment.

We have injected some contribs right into the code base without much change. It all depends.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest