Cacti Install Issues...

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

Moderators: Developers, Moderators

Post Reply
megahosters
Posts: 8
Joined: Mon Mar 21, 2005 8:52 pm
Contact:

Cacti Install Issues...

Post by megahosters »

Hello all, I have been trying for two days now to install cacti with only marginal sucess.

I have the GUI interface all installed and working just fine. When I look at the default server (localhost) it says:

Localhost (127.0.0.1)
SNMP Information
SNMP error

I can not create graphs at all, they are just Xed out images.

I do not have net-snmp installed but I do I have ucd-snmp-4.2.5 installed (or so it would seem) I tried to install net-snmp and I got this error:

[root@web downloads]# rpm -ivh net-snmp-5.0.9-4.rh73.i386.rpm
Preparing... ########################################### [100%]
file /etc/rc.d/init.d/snmpd from install of net-snmp-5.0.9-4.rh73 conflicts with file from package ucd-snmp-4.2.5-8.73.1

The list is very log I will spare you the scroll...

Anyway here are some system stats and what not to perhaps aid in my help here:

Server: RedHat 7.3 (mysql on same server)

PHP Modules:

Code: Select all

[root@web downloads]# php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
dba
dbx
dio
exif
ftp
gettext
iconv
mbstring
ncurses
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
xslt
yp
zlib

[Zend Modules]

[root@web downloads]# 
Cacti Settings:

Code: Select all

path_rrdtool /usr/bin/rrdtool 
      path_php_binary /usr/bin/php 
      path_snmpwalk /usr/bin/snmpwalk 
      path_snmpget /usr/bin/snmpget 
            path_cactilog /home/local/home/www/mydomain.com/cacti/log/cacti.log
      snmp_version ucd-snmp 
      log_destination 1 
      log_snmp   
      log_graph   
      log_export   
      log_verbosity 5 
      log_pstats on 
      log_pwarn on 
      log_perror on 
      snmp_ver 1 
      snmp_community public 
      snmp_username   
      snmp_password   
      snmp_timeout 500 
      snmp_port 161 
      snmp_retries 3 
      remove_verification on 
      path_cactid /usr/local/cactid 
      poller_enabled on 
      poller_type 2 
      concurrent_processes 1 
      max_threads 1 
      availability_method 2 
      ping_method 2 
      ping_timeout 400 
MySQL version 4.0.24
PHP version 4.3.6

As well when I run poller.php from the command line I get this:

Code: Select all

[root@web cacti]# php poller.php

Fatal error: Call to undefined function:  mysql_connect() in /home/local/home/www/mydomain.com/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[root@web cacti]#
Not sure what more to tell you.... I think the main thing is the SNMP error...

If it is the SNMP causing all this what is the best course of action? Remove the ucd-snmp and then install net-snmp?

I know I can remove the ucd version by using "rpm -evv ucd-snmp" the install the "net-snmp-5.0.9-4.rh73.i386.rpm" and "net-snmp-devel-5.0.9-4.rh73.i386.rpm" I downloaded from rpmfind.net.

I dunno, I am no expert in all this but I would really like to get Cacti working on my servers. If you need anymore info please let me know and I will post it.

Thanks,

Clint
depee
Posts: 2
Joined: Fri Apr 15, 2005 6:01 am
Location: Cameroon - Africa

Re: Cacti Install Issues...

Post by depee »

Hi,

-Install net-snmp-utils-5.0.9-4 (this will provide snmpwalk and snmpget )
- Install php-mysql- (this will provide snmp modue , you will see it at the bottom of php -m)
- Uninstall the ucd-snmp- packages, and keep net-snmp

Hope this helps,

I ran through that pb also

Daniel



megahosters wrote:Hello all, I have been trying for two days now to install cacti with only marginal sucess.

I have the GUI interface all installed and working just fine. When I look at the default server (localhost) it says:

Localhost (127.0.0.1)
SNMP Information
SNMP error

I can not create graphs at all, they are just Xed out images.

I do not have net-snmp installed but I do I have ucd-snmp-4.2.5 installed (or so it would seem) I tried to install net-snmp and I got this error:

[root@web downloads]# rpm -ivh net-snmp-5.0.9-4.rh73.i386.rpm
Preparing... ########################################### [100%]
file /etc/rc.d/init.d/snmpd from install of net-snmp-5.0.9-4.rh73 conflicts with file from package ucd-snmp-4.2.5-8.73.1

The list is very log I will spare you the scroll...

Anyway here are some system stats and what not to perhaps aid in my help here:

Server: RedHat 7.3 (mysql on same server)

PHP Modules:

Code: Select all

[root@web downloads]# php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
dba
dbx
dio
exif
ftp
gettext
iconv
mbstring
ncurses
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
xslt
yp
zlib

[Zend Modules]

[root@web downloads]# 
Cacti Settings:

Code: Select all

path_rrdtool /usr/bin/rrdtool 
      path_php_binary /usr/bin/php 
      path_snmpwalk /usr/bin/snmpwalk 
      path_snmpget /usr/bin/snmpget 
            path_cactilog /home/local/home/www/mydomain.com/cacti/log/cacti.log
      snmp_version ucd-snmp 
      log_destination 1 
      log_snmp   
      log_graph   
      log_export   
      log_verbosity 5 
      log_pstats on 
      log_pwarn on 
      log_perror on 
      snmp_ver 1 
      snmp_community public 
      snmp_username   
      snmp_password   
      snmp_timeout 500 
      snmp_port 161 
      snmp_retries 3 
      remove_verification on 
      path_cactid /usr/local/cactid 
      poller_enabled on 
      poller_type 2 
      concurrent_processes 1 
      max_threads 1 
      availability_method 2 
      ping_method 2 
      ping_timeout 400 
MySQL version 4.0.24
PHP version 4.3.6

As well when I run poller.php from the command line I get this:

Code: Select all

[root@web cacti]# php poller.php

Fatal error: Call to undefined function:  mysql_connect() in /home/local/home/www/mydomain.com/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
[root@web cacti]#
Not sure what more to tell you.... I think the main thing is the SNMP error...

If it is the SNMP causing all this what is the best course of action? Remove the ucd-snmp and then install net-snmp?

I know I can remove the ucd version by using "rpm -evv ucd-snmp" the install the "net-snmp-5.0.9-4.rh73.i386.rpm" and "net-snmp-devel-5.0.9-4.rh73.i386.rpm" I downloaded from rpmfind.net.

I dunno, I am no expert in all this but I would really like to get Cacti working on my servers. If you need anymore info please let me know and I will post it.

Thanks,

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

Post by rony »

Also, you have to configure snmpd before it will work. If I remember correctly, you should find the configuration file in /etc/snmp/.

Read the man page on snmpd.conf as well.
[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 4 guests