Function does not exist - runaway error
Moderators: Developers, Moderators
From: Console/Settings: cactid path: /usr/bin/cactid
[xxxx@xxxx cacti]# /usr/bin/cactid -R
CACTID: Using cactid config file [/etc/cactid.conf]
CACTID: Version 0.8.6i starting
read_config_option("path_cactid") from the poller.php file returns /usr/bin/cactid
From cacti subversion dir:
[xxxx@xxxx cacti]# svn update
At revision 3809.
Compiled from [xxxx@xxxx cactid]# pwd
/home/xxx/cacti/branches/BRANCH_0_8_6/cactid
ie, make clean, bootstrap, ./configure, make, move cactid from that path to /usr/bin/
Reading through the forums the trunk should be .9 dev right?
Is there something I'm missing?
Digging through the cactid src
Doing an egrep for poller_output give me this:
poller.c, ln 208-210...
snprintf(query8, sizeof(query8),
"INSERT INTO poller_output"
" (local_data_id, rrd_name, time, output) VALUES");
According to your last post, that should be a replace query, not an insert. Am I not building the correct version of the source?
[xxxx@xxxx cacti]# /usr/bin/cactid -R
CACTID: Using cactid config file [/etc/cactid.conf]
CACTID: Version 0.8.6i starting
read_config_option("path_cactid") from the poller.php file returns /usr/bin/cactid
From cacti subversion dir:
[xxxx@xxxx cacti]# svn update
At revision 3809.
Compiled from [xxxx@xxxx cactid]# pwd
/home/xxx/cacti/branches/BRANCH_0_8_6/cactid
ie, make clean, bootstrap, ./configure, make, move cactid from that path to /usr/bin/
Reading through the forums the trunk should be .9 dev right?
Is there something I'm missing?
Digging through the cactid src
Doing an egrep for poller_output give me this:
poller.c, ln 208-210...
snprintf(query8, sizeof(query8),
"INSERT INTO poller_output"
" (local_data_id, rrd_name, time, output) VALUES");
According to your last post, that should be a replace query, not an insert. Am I not building the correct version of the source?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
1) Avoid the SVN version
2) That insert is for poller output, what your error message indicates is a reindex query, sill in poller.c, but it is a "replace" statement in the planned release, so you should not get that error.
Have you performed a "make clean" prior to the make? Are your running "./cactid" from the source directory?
TheWitness
2) That insert is for poller output, what your error message indicates is a reindex query, sill in poller.c, but it is a "replace" statement in the planned release, so you should not get that error.
Have you performed a "make clean" prior to the make? Are your running "./cactid" from the source directory?
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?
Alright. No SVN.
By that, do you mean you would prefer that I use the beta3 release from the announcements forum, or the current stable release of cactid?
To clarify:
when I run cactid from the command line ./cactid or /full/path/to using the -R option, or without, I don't see any Duplication MySQL errors come up.
However when I look at the active cacti logs, or run php poller.php, with the version of cactid I am testing in the appropriate dir on the server I DO get the errors. Also, no matter what build of cactid I seem to try (on the .8.6i branch) cactid is always exceeding its max runtime and being killed by the poller instead of exiting cleanly.
By that, do you mean you would prefer that I use the beta3 release from the announcements forum, or the current stable release of cactid?
To clarify:
when I run cactid from the command line ./cactid or /full/path/to using the -R option, or without, I don't see any Duplication MySQL errors come up.
However when I look at the active cacti logs, or run php poller.php, with the version of cactid I am testing in the appropriate dir on the server I DO get the errors. Also, no matter what build of cactid I seem to try (on the .8.6i branch) cactid is always exceeding its max runtime and being killed by the poller instead of exiting cleanly.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Turn logging to medium and run from the command line, what happens then. The logging message are an annoyance that should be corrected wit the new version.
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I'm going to pushlish a patched file that I need people to test. It does not occur with all users.
Question, in <include>/config.php, there is an array called $no_http_header_files. In you config file, is the script_server.php a part of that array?
Also, separately, please try the attached script_server.php and see if it clears the problem.
TheWitness
Question, in <include>/config.php, there is an array called $no_http_header_files. In you config file, is the script_server.php a part of that array?
Also, separately, please try the attached script_server.php and see if it clears the problem.
TheWitness
- Attachments
-
- script_server.zip
- (2.25 KiB) Downloaded 78 times
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I'll let you know, but working at the moment... One thing you can try is placing a trim() function around the fgets() function in the script_server.php file.
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Ahhhh, wait, I know what "may be" going on now.... I am performing an explode based upon the " " character. If bet a few of your call's have multiple spaces in them. Hmm, this would cause the behavior. If you can dump your poller_item table and e-mail/PM that to me, it would explain it.
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Run this version of the script_server for a single pass, and then send me your cacti.log file.
TheWitness
TheWitness
- Attachments
-
- script_server.zip
- (2.26 KiB) Downloaded 70 times
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?
errr... feeling a bit confused today...
About 8PM last night rrdtools stopped processing the graphs. Everything is still being polled, but I am seeing this in the logs...
10/17/2006 09:44:35 AM - CACTID: Poller[0] DEBUG: SS[0] Script Server Shutdown Started
10/17/2006 09:44:35 AM - CMDPHP: Poller[0] The command wasquit^M
10/17/2006 09:44:35 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/17/2006 09:44:35 AM - CACTID: Poller[0] DEBUG: SS[1] Script Server Shutdown Started
10/17/2006 09:44:35 AM - CMDPHP: Poller[0] The command wasquit^M
Not looking like rrdtool was updated or anything, and not seeing any other funky statements in my logs.
About 8PM last night rrdtools stopped processing the graphs. Everything is still being polled, but I am seeing this in the logs...
10/17/2006 09:44:35 AM - CACTID: Poller[0] DEBUG: SS[0] Script Server Shutdown Started
10/17/2006 09:44:35 AM - CMDPHP: Poller[0] The command wasquit^M
10/17/2006 09:44:35 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/17/2006 09:44:35 AM - CACTID: Poller[0] DEBUG: SS[1] Script Server Shutdown Started
10/17/2006 09:44:35 AM - CMDPHP: Poller[0] The command wasquit^M
Not looking like rrdtool was updated or anything, and not seeing any other funky statements in my logs.
- Attachments
-
- cacti.log.rar
- (775 Bytes) Downloaded 211 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
dos2unix on script_server.php
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
One more time then. I would like to send you another file. I am not sure when I can get it to you though. It's dinner time now.
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 0 guests