Cacitd not pulling data
Moderators: Developers, Moderators
Cacitd not pulling data
This is a continuation of this thread.
http://forums.cacti.net/viewtopic.php?t=19689
Basically, the second hard disk on the original hardware died. I dumped the cacti database, installed cacti on a new server, and imported the entire old cacti database onto the new server. I left the rrd files where on the old server.
Cacti with cmd.php seemed to work fine. I was getting data from all my hosts, and things were peachy, until the load of my server skyrocketed again (as in the previous thread.)
I upped my PHP memory limit, and nothing changed.
This time, I was smart enough to install Ubuntu 6.10 instead of 6.06. 6.06 has a broken cactid package in its repositories. 6.10 has a working cactid package.
I installed the cactid package, and pointed cacti to cactid instead of cmd.php. Now, the poller doesn't pull any data from localhost anymore (and possibly other hosts, I haven't checked all 50+ yet)
I can snmpwalk locally on the machine, and the perl scripts return data if they are ran from the command line.
Adding /usr/bin/perl instead of just perl on the Data Sources page did not resolve the problem.
What do I need to do?
http://forums.cacti.net/viewtopic.php?t=19689
Basically, the second hard disk on the original hardware died. I dumped the cacti database, installed cacti on a new server, and imported the entire old cacti database onto the new server. I left the rrd files where on the old server.
Cacti with cmd.php seemed to work fine. I was getting data from all my hosts, and things were peachy, until the load of my server skyrocketed again (as in the previous thread.)
I upped my PHP memory limit, and nothing changed.
This time, I was smart enough to install Ubuntu 6.10 instead of 6.06. 6.06 has a broken cactid package in its repositories. 6.10 has a working cactid package.
I installed the cactid package, and pointed cacti to cactid instead of cmd.php. Now, the poller doesn't pull any data from localhost anymore (and possibly other hosts, I haven't checked all 50+ yet)
I can snmpwalk locally on the machine, and the perl scripts return data if they are ran from the command line.
Adding /usr/bin/perl instead of just perl on the Data Sources page did not resolve the problem.
What do I need to do?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Let me introduce this by saying, that I don't like rpm installations of cacti. Are you sure, that all path settings are the same as the old install that created the mysql tables? Cacti stores path information in the tables! Those may now be broken.
Yes, you may say that storing absolute paths is not that good of an idea, but nevertheless, this is fact.
Reinhard
Yes, you may say that storing absolute paths is not that good of an idea, but nevertheless, this is fact.
Reinhard
This is not an RPM. This is a DEB.
The only difference between the two machines is one is running Ubuntu 6.06 and the other is running Ubuntu 6.10. Maybe the paths did change since then, but I don't believe that is the case.
Where can I see those settings?
I can always "whereis <command>" and compare the paths, but I need to know where to find these settings.
Is this the Paths tab under System Settings?
The only difference between the two machines is one is running Ubuntu 6.06 and the other is running Ubuntu 6.10. Maybe the paths did change since then, but I don't believe that is the case.
Where can I see those settings?
I can always "whereis <command>" and compare the paths, but I need to know where to find these settings.
Is this the Paths tab under System Settings?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Yes, but that was not the question.
Table poller_item holds /full/path/to/rrd/file. You may re-create this table by running. You may enable poller verbosity level of DEBUG to find more output at ./log/cacti.log
Reinhard
Table poller_item holds /full/path/to/rrd/file. You may re-create this table by running
Code: Select all
php -q rebuild_poller_cache.php
Reinhard
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
The Debian package is a bit finiky. I did not know their very specific packaging system too well, so when it came to cleaning things up, I was kind of lost. However, once you understand it, things should work as expected.
The Debian distribution changes very many things in Cacti's base setup. Things like scripts are taken from the web path, password containing files are moved to /etc/cacti, rra's are moved to their own directory, ADODB is moved to a system library path, and the log file is moved to /var/log and handled like any other log.
It's actually quite "Linux" centric distribution.
TheWitness
The Debian distribution changes very many things in Cacti's base setup. Things like scripts are taken from the web path, password containing files are moved to /etc/cacti, rra's are moved to their own directory, ADODB is moved to a system library path, and the log file is moved to /var/log and handled like any other log.
It's actually quite "Linux" centric distribution.
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?
Code: Select all
cacti@FAIA-Cacti:~$ sudo php -q /usr/share/cacti/site/rebuild_poller_cache.php
Warning: include_once(./lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/site/rebuild_poller_cache.php on line 35
Warning: include_once(): Failed opening './lib/utility.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/rebuild_poller_cache.php on line 35
WARNING: Do not interrupt this script. Rebuilding the Poller Cache can take quite some time
.
Fatal error: Call to undefined function update_poller_cache() in /usr/share/cacti/site/rebuild_poller_cache.php on line 95
I'm guessing this has to do with the moved directories that The Witness is talking about?
Who is online
Users browsing this forum: No registered users and 0 guests