POLLER: Poller[0] ERROR: The path: is invalid.
Moderators: Developers, Moderators
POLLER: Poller[0] ERROR: The path: is invalid.
Hello,
I upgraded from 0.8.6j to 0.8.7, on my linux running cacti.
If I use spine then I get the error msg
"POLLER: Poller[0] ERROR: The path: is invalid. Can not continue"
If i change to cmd.php then it works.
When configured to use spine, if I run
/usr/local/php/bin/php poller.php
then spine works fine and is able to update the rra files. Not sure why this does not work and gives me the error when it does it by itself using spine as the poller !
Any help would be great. (spine version 0.8.7)
thanks
-Kartik
I upgraded from 0.8.6j to 0.8.7, on my linux running cacti.
If I use spine then I get the error msg
"POLLER: Poller[0] ERROR: The path: is invalid. Can not continue"
If i change to cmd.php then it works.
When configured to use spine, if I run
/usr/local/php/bin/php poller.php
then spine works fine and is able to update the rra files. Not sure why this does not work and gives me the error when it does it by itself using spine as the poller !
Any help would be great. (spine version 0.8.7)
thanks
-Kartik
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
Did you check:
Console --> Settings --> Paths
Make sure the paths are correct, the paths require full path AND the binary itself e.g (/var/www/cacti/spine/bin/spine).
Console --> Settings --> Paths
Make sure the paths are correct, the paths require full path AND the binary itself e.g (/var/www/cacti/spine/bin/spine).
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
yes I did and the path is correct and points to the binary. Also when i run <path php> poller.php it works fine with spine as the poller.
The error message is supposed to show the spine path that is incorrect but i am getting a blank instead. Is this supposed to be configured in some other file as well ??? the database has the right path for path_spine as is seen in the settings table
thanks!
The error message is supposed to show the spine path that is incorrect but i am getting a blank instead. Is this supposed to be configured in some other file as well ??? the database has the right path for path_spine as is seen in the settings table
thanks!
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Is spine suppose to be executed from cactiuser? e.g.
Reinhard
Code: Select all
chmod a+x spine
Hi Randolf,
Yes I gave spine full permission.
Actually I think now its got to do with when I was compiling spine. I had to add a couple of symbolic links due to a mysql error it was throwing up (based on what I read from other posts in this forum). Specifically I added the two symlinks in red below and I think thats why its unable to read the database for the path_spine ?
relative: /usr/local/mysql/lib/mysql/libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
relative: /usr/local/mysql/lib/mysql/libmysqlclient.so -> libmysqlclient.so.12.0.0
absolute: /usr/local/mysql/lib/mysql/libmysqlclient_r.a -> /usr/local/mysql/lib/mysql/libmysqlclient.a
absolute: /usr/local/mysql/lib/mysql/libmysqlclient_r.la -> /usr/local/mysql/lib/mysql/libmysqlclient.larelative: /usr/local/mysql-4.0.9/lib/mysql/libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
relative: /usr/local/mysql-4.0.9/lib/mysql/libmysqlclient.so -> libmysqlclient.so.12.0.0
thank you
-Kartik
Yes I gave spine full permission.
Actually I think now its got to do with when I was compiling spine. I had to add a couple of symbolic links due to a mysql error it was throwing up (based on what I read from other posts in this forum). Specifically I added the two symlinks in red below and I think thats why its unable to read the database for the path_spine ?
relative: /usr/local/mysql/lib/mysql/libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
relative: /usr/local/mysql/lib/mysql/libmysqlclient.so -> libmysqlclient.so.12.0.0
absolute: /usr/local/mysql/lib/mysql/libmysqlclient_r.a -> /usr/local/mysql/lib/mysql/libmysqlclient.a
absolute: /usr/local/mysql/lib/mysql/libmysqlclient_r.la -> /usr/local/mysql/lib/mysql/libmysqlclient.larelative: /usr/local/mysql-4.0.9/lib/mysql/libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
relative: /usr/local/mysql-4.0.9/lib/mysql/libmysqlclient.so -> libmysqlclient.so.12.0.0
thank you
-Kartik
whew .. finally i was able fixed it ... i reran the ./configure --with-threadsafe (with threadsafe) on on my existing mysql distribution and just did a make and make install. Since i already had a database i didnt go any further.
I ensured my /etc/crontab was calling the poller every 5 mins and i was off and away. spine sure does run faster.
thanks
-kartik
I ensured my /etc/crontab was calling the poller every 5 mins and i was off and away. spine sure does run faster.
thanks
-kartik
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Of course this is NOT a good solution. What you, in fact need to do is make sure that your MySQL is recent enough to be copiled "thread safe".
The "_r" at the end of the library name is for a special build of MySQL Client libraries that allows Spine to operate safely in a multi-threaded capacity. Not using the correct libraries, may result in undesirable behavior.
To make MySQL "thread safe", you must compile the client library with the "--enable-thread-safe-client" flag.
TheWitness
The "_r" at the end of the library name is for a special build of MySQL Client libraries that allows Spine to operate safely in a multi-threaded capacity. Not using the correct libraries, may result in undesirable behavior.
To make MySQL "thread safe", you must compile the client library with the "--enable-thread-safe-client" flag.
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?
Witness,
Thank you, I will do as you recommend.
However one question, with spine do I still need to use crontab to schedule running poller.php ?
I see this version of cacti runs multiple intervals to poll data from 30secs to 5 mins. So If i need some datasources to be polled say every 1 min, and others to be polled every 5 mins, then how do I configure my crontab ? (Shoud I configure it for 1 min and cacti will automatically run the 5 min data sources every 5 times the cron job runs? )
thank you.
-Kartik
Thank you, I will do as you recommend.
However one question, with spine do I still need to use crontab to schedule running poller.php ?
I see this version of cacti runs multiple intervals to poll data from 30secs to 5 mins. So If i need some datasources to be polled say every 1 min, and others to be polled every 5 mins, then how do I configure my crontab ? (Shoud I configure it for 1 min and cacti will automatically run the 5 min data sources every 5 times the cron job runs? )
thank you.
-Kartik
Who is online
Users browsing this forum: No registered users and 2 guests