cactid installation problems
Moderators: Developers, Moderators
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
cactid installation problems
Hi. I'm trying to install cactid.
1 -
If i try the RPM, I get:
# rpm -Uvh ../cacti-cactid-0.8.6g.fc4.i386.rpm
error: Failed dependencies:
libcrypto.so.5 is needed by cacti-cactid-0.8.6g-1.i386
libmysqlclient.so.14 is needed by cacti-cactid-0.8.6g-1.i386
libnetsnmp.so.5 is needed by cacti-cactid-0.8.6g-1.i386
I tryed to install these using yum, but a get a lot of these kind of errors.
(...)
file /usr/share/man/man8/e2label.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
file /usr/share/man/man8/ext2online.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
file /usr/share/man/man8/filefrag.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
file /usr/share/man/man8/findfs.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
(...)
2 -
If I try to compile the binaries, I get:
#./configure
(...)
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strerror... yes
checking for strtoll... yes
checking for mysql_init in -lmysqlclient... no
configure: error: MySQL libraries not found.
Can anyone please tell me what I can do to solve this?
Thanks a lot.
1 -
If i try the RPM, I get:
# rpm -Uvh ../cacti-cactid-0.8.6g.fc4.i386.rpm
error: Failed dependencies:
libcrypto.so.5 is needed by cacti-cactid-0.8.6g-1.i386
libmysqlclient.so.14 is needed by cacti-cactid-0.8.6g-1.i386
libnetsnmp.so.5 is needed by cacti-cactid-0.8.6g-1.i386
I tryed to install these using yum, but a get a lot of these kind of errors.
(...)
file /usr/share/man/man8/e2label.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
file /usr/share/man/man8/ext2online.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
file /usr/share/man/man8/filefrag.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
file /usr/share/man/man8/findfs.8.gz from install of e2fsprogs-1.38-0.FC4.1 conflicts with file from package e2fsprogs-1.37-4
(...)
2 -
If I try to compile the binaries, I get:
#./configure
(...)
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strerror... yes
checking for strtoll... yes
checking for mysql_init in -lmysqlclient... no
configure: error: MySQL libraries not found.
Can anyone please tell me what I can do to solve this?
Thanks a lot.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Look into the installation folder for a readme and you will find your answer. Although, you need to have the aformentioned libraries installed before it will work.
TheWitness
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?
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?
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Re: cactid installation problems
HiMaestro_Ba wrote:configure: error: MySQL libraries not found.
you miss the mysql-devel package.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
First of all, thanks for the replys.
I have Fedora Core 4 x86_64, and I have mysql-devel installed. If I do yum list|grep mysql I get this:
libdbi-dbd-mysql.x86_64 0.7.1-3 installed
mysql.x86_64 4.1.20-1.FC4.1 installed
mysql-bench.x86_64 4.1.20-1.FC4.1 installed
mysql-devel.x86_64 4.1.20-1.FC4.1 installed
mysql-server.x86_64 4.1.20-1.FC4.1 installed
mysqlclient10.x86_64 3.23.58-6 installed
mysqlclient10-devel.x86_64 3.23.58-6 installed
php-mysql.x86_64 5.0.4-10 installed
php-mysql.x86_64 5.0.4-10.5 installed
freeradius-mysql.x86_64 1.0.4-1.FC4.1 updates-released
mod_auth_mysql.x86_64 1:2.6.1-4 base
mysql.i386 4.1.20-1.FC4.1 updates-released
TheWitness, inside file INSTALL I saw this:
- right now cactid requires -lmysqlclient_r to compile (which may be
removed in the future). It seems that the default Redhat (at least
RH9) RPM's have trouble with this. The mysql.com RPMs work fine
though.
I believe the problem is this one. What should I do? Which RPMs are you talking about? Could you be more specific about the solution to my problem?
Sorry about that, but I got confused about what to do, and I don't want to uninstall mysql.x86_64 since I already have LOTS of hosts configured in cacti.
Thanks a lot!
I have Fedora Core 4 x86_64, and I have mysql-devel installed. If I do yum list|grep mysql I get this:
libdbi-dbd-mysql.x86_64 0.7.1-3 installed
mysql.x86_64 4.1.20-1.FC4.1 installed
mysql-bench.x86_64 4.1.20-1.FC4.1 installed
mysql-devel.x86_64 4.1.20-1.FC4.1 installed
mysql-server.x86_64 4.1.20-1.FC4.1 installed
mysqlclient10.x86_64 3.23.58-6 installed
mysqlclient10-devel.x86_64 3.23.58-6 installed
php-mysql.x86_64 5.0.4-10 installed
php-mysql.x86_64 5.0.4-10.5 installed
freeradius-mysql.x86_64 1.0.4-1.FC4.1 updates-released
mod_auth_mysql.x86_64 1:2.6.1-4 base
mysql.i386 4.1.20-1.FC4.1 updates-released
TheWitness, inside file INSTALL I saw this:
- right now cactid requires -lmysqlclient_r to compile (which may be
removed in the future). It seems that the default Redhat (at least
RH9) RPM's have trouble with this. The mysql.com RPMs work fine
though.
I believe the problem is this one. What should I do? Which RPMs are you talking about? Could you be more specific about the solution to my problem?
Sorry about that, but I got confused about what to do, and I don't want to uninstall mysql.x86_64 since I already have LOTS of hosts configured in cacti.
Thanks a lot!
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
All Right!
I solved this problem by looking at the last post of this thread:
http://forums.cacti.net/viewtopic.php?t ... sql+cactid
So I changed file "configure"like this:
Line 4864: str="$i/lib/mysql/libmysqlclient.*"
replaced by : str="$i/lib64/mysql/libmysqlclient.*"
Line 4867: MYSQL_LIB_DIR=$i/lib/mysql
by MYSQL_LIB_DIR=$i/lib64/mysql
Now the error is this one, but at least I'm going somewhere!
(...)
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
I'll inform later if I succeed or not.
I solved this problem by looking at the last post of this thread:
http://forums.cacti.net/viewtopic.php?t ... sql+cactid
So I changed file "configure"like this:
Line 4864: str="$i/lib/mysql/libmysqlclient.*"
replaced by : str="$i/lib64/mysql/libmysqlclient.*"
Line 4867: MYSQL_LIB_DIR=$i/lib/mysql
by MYSQL_LIB_DIR=$i/lib64/mysql
Now the error is this one, but at least I'm going somewhere!
(...)
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
I'll inform later if I succeed or not.
Last edited by Maestro_Ba on Mon Aug 21, 2006 5:40 am, edited 1 time in total.
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
HiMaestro_Ba wrote:checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!
IMO you miss the openssl-devel package.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I would agree.
TheWitness
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?
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?
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
It wasn't that, I already had all the necessary packages.
I managed to compile cactid by looking at this thread http://forums.cacti.net/viewtopic.php?t ... =libcrypto.
First I created a symbolic link /lib/libcrytpo.so pointing to /lib64/libcrypto.so.0.9.7f (it was the highest version number available). Then I downloaded the net-snmp binaries and recompiled them.
After this I was able to compile cactid without problems.
My (2) problems were all due to the location of certain libraries. It seems that people with Fedora Core (like me) or with certain versions of Red Hat had the same problems as me.
Thanks anyway for the help!
Unfortunately I now have ANOTHER problem... Cactid worked fine (at first) but now all the graphs are blank, and I keep getting these 3 messages in the pooler:
1-
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.47.1.1.1.1.71
2-
CACTID: Host[537] DS[2815] WARNING: Result from SNMP not valid. Partial Result: ...
3-
CACTID: ERROR: Problem initializing SNMP session ' 172.20.117.61'
This really isn't easy...
I managed to compile cactid by looking at this thread http://forums.cacti.net/viewtopic.php?t ... =libcrypto.
First I created a symbolic link /lib/libcrytpo.so pointing to /lib64/libcrypto.so.0.9.7f (it was the highest version number available). Then I downloaded the net-snmp binaries and recompiled them.
After this I was able to compile cactid without problems.
My (2) problems were all due to the location of certain libraries. It seems that people with Fedora Core (like me) or with certain versions of Red Hat had the same problems as me.
Thanks anyway for the help!
Unfortunately I now have ANOTHER problem... Cactid worked fine (at first) but now all the graphs are blank, and I keep getting these 3 messages in the pooler:
1-
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.47.1.1.1.1.71
2-
CACTID: Host[537] DS[2815] WARNING: Result from SNMP not valid. Partial Result: ...
3-
CACTID: ERROR: Problem initializing SNMP session ' 172.20.117.61'
This really isn't easy...
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Sorry you are having difficulty:
1: is normal when you have a OID that does not exist on the host
2: normally results from 1:
3: is a problem. What version of Cactid and Net-SNMP-devel are your using?
TheWitness
1: is normal when you have a OID that does not exist on the host
2: normally results from 1:
3: is a problem. What version of Cactid and Net-SNMP-devel are your using?
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?
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?
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
I have the latest cactid, cactid-0.8.6g.
I previously HAD:
#rpm -q net-snmp
net-snmp-5.2.1-12
net-snmp-5.2.1.2-fc4.1
# rpm -q net-snmp-devel
net-snmp-devel-5.2.1.2-fc4.1
But I have compiled net-snmp-5.3.1 (doesn't it include net-snmp-devel?)
I don't know how I can see the version of packages compiled by myself...
I'm trying to find net-snmp-devel-5.3.1 binaries, but I'm not finding.
Thanks
I previously HAD:
#rpm -q net-snmp
net-snmp-5.2.1-12
net-snmp-5.2.1.2-fc4.1
# rpm -q net-snmp-devel
net-snmp-devel-5.2.1.2-fc4.1
But I have compiled net-snmp-5.3.1 (doesn't it include net-snmp-devel?)
I don't know how I can see the version of packages compiled by myself...
I'm trying to find net-snmp-devel-5.3.1 binaries, but I'm not finding.
Thanks
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
I'm posting my poller log, in case it helps...
I'm not getting ANY graphic, except one that uses a local Script I made.
If I change to cmd.php it all seems right.
I'm not getting ANY graphic, except one that uses a local Script I made.
If I change to cmd.php it all seems right.
- Attachments
-
- poller.log.txt
- (4.27 KiB) Downloaded 254 times
-
- Posts: 36
- Joined: Tue Jun 06, 2006 10:53 am
THIS IS UNBELIAVABLE!!! I found out what was causing me problems. It's extremely simple, and it was caused by a distraction.
I forgot to do "System Utilities -> Clear Poller Cache" after changing to cactid.
Cactid is running, exactly the same way as cmd.php was.
Now it takes 190 seconds with 1 process, 20 threads.
No comments...
P.S.: Can anyone tell me which the best combination for "Cactid Specific Execution Parameters" is? I currently have:
Maximum Concurrent Poller Processes - 1
Maximum Threads per Process - 20
Number of PHP Script Servers - 1
Script and Script Server Timeout Value - 30
The Maximum SNMP OID's Per SNMP Get Request - 10
I forgot to do "System Utilities -> Clear Poller Cache" after changing to cactid.
Cactid is running, exactly the same way as cmd.php was.
Now it takes 190 seconds with 1 process, 20 threads.
No comments...
P.S.: Can anyone tell me which the best combination for "Cactid Specific Execution Parameters" is? I currently have:
Maximum Concurrent Poller Processes - 1
Maximum Threads per Process - 20
Number of PHP Script Servers - 1
Script and Script Server Timeout Value - 30
The Maximum SNMP OID's Per SNMP Get Request - 10
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
With Cactid 0.8.6g, you need to include full paths to binaries. If you simply change it in the Input Method and don't clear poller cache, bad things happen. In hindsight, that was a bad decision. So, in Cactid 0.8.6i, I have reverted to allowing the shortname for binaries.
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 5 guests