Boost Server Problem

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Boost Server Problem

Post by msw1970 »

Hi

I've got a problem running the boost server, I get the following message in the logfile....

03/06/2007 11:21:47 AM - BOOST: Poller[0] ERROR: Socket Error. Boost server is down. Contact support immediately!!

Any ideas??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you start the boost server? How did you do so? The rrdsrv init script needs customization, please be aware of this
Reinhard
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

gandalf wrote:Did you start the boost server? How did you do so? The rrdsrv init script needs customization, please be aware of this
Reinhard
I've modified the cacti_rrdsvc file and the service starts fine, but when I enable the boost server in cacti my graphs stop working. Disable it again and the graphs start working again.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What effective user is used? Please redirect output of the boost server to some /tmp/sth file (you will have to change the init script again to achieve this) and "tail -f" the file while boost is running
Reinhard
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

gandalf wrote:What effective user is used? Please redirect output of the boost server to some /tmp/sth file (you will have to change the init script again to achieve this) and "tail -f" the file while boost is running
Reinhard
How do I see what effective user is being used?? Also, I presume I need to edit the cacti_rrdsvc file to redirect to a file??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Effective User is defined by the "Settings" for Boost. And, yes, for redirection you will have to edit cacti_rrdsvc
Reinhard
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

gandalf wrote:Effective User is defined by the "Settings" for Boost. And, yes, for redirection you will have to edit cacti_rrdsvc
Reinhard
OK, I don't have anything set for effective user. should I set something??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Huh, never tried without. Use the userid running the poller cause this one has all needed permissions (e.g. cactiuser)
Reinhard
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

gandalf wrote:Huh, never tried without. Use the userid running the poller cause this one has all needed permissions (e.g. cactiuser)
Reinhard
Added cactiuser and I now don't get the errors in the logfile.... Boost server appears to run and says it's updated around 4,500 rrd's but nothing appears on the graphs??
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Boost server is only for interactive sessions, and if you don't set a userid, it uses the service uid which is ROOT.

The non-interactive "batch" version of boost is run vi the "poller_boost.php" command. You can let the poller_output_boost table grow, and then open a shell and do the following:

Code: Select all

su - cactiuser
cd /var/www/html/cacti/plugins/boost
php poller_boost.php -d -f
And observe the behavior. BTB, this is why I ask for people to "play" with it first. Maybe Gandolf can whip up some documentation on the docs site :)

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?
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

TheWitness wrote:Boost server is only for interactive sessions, and if you don't set a userid, it uses the service uid which is ROOT.

The non-interactive "batch" version of boost is run vi the "poller_boost.php" command. You can let the poller_output_boost table grow, and then open a shell and do the following:

Code: Select all

su - cactiuser
cd /var/www/html/cacti/plugins/boost
php poller_boost.php -d -f
And observe the behavior. BTB, this is why I ask for people to "play" with it first. Maybe Gandolf can whip up some documentation on the docs site :)

TheWitness
If I run poller_boost.php manually everything runs fine and the graphs are updated. However, the boost server doesn't seem to be running. If I nmap the box, port 9050 doesn't appear to be open.

Should I have any data in the poller_output_boost_processes??
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Let's be clear, if you are going to use the Boost Server, before you turn it on in Cacti, you should verify that it is in fact running.

So, if the init.d script is not working, debug it first. I had to run a dos2unix on the file (why, I work in Windows. I plan on changing that soon).

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?
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

TheWitness wrote:Let's be clear, if you are going to use the Boost Server, before you turn it on in Cacti, you should verify that it is in fact running.

So, if the init.d script is not working, debug it first. I had to run a dos2unix on the file (why, I work in Windows. I plan on changing that soon).

TheWitness
As far as I can tell, the init.d script is working. I too had to run a dos2unix on the file to get it to run. If I execute service cacti_rrdsvc restart it shuts down and restarts ok but still no port open via nmap.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

After you start it, do the following:

telnet localhost 9050

Also,

ps -ef | grep boost_server.php

It may not be staying started.

You can also run it in debug mode:

php <path_cacti>/plugins/boost/boost_server.php -d

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?
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

TheWitness wrote:After you start it, do the following:

telnet localhost 9050

Also,

ps -ef | grep boost_server.php

It may not be staying started.

You can also run it in debug mode:

php <path_cacti>/plugins/boost/boost_server.php -d

TheWitness
OK, when I manually run it in debug mode I see messages scroll through the screen that consist of the following....

2007:03:08 11:46:04 - Host Connected '127.0.0.1'
2007:03:08 11:46:04 - Host Validated '127.0.0.1'
2007:03:08 11:46:04 - RRD Command 'update /var/www/html/cacti/rrd/localhost_linux_local_server_hosts_486.rrd --template time:hosts 1173354163:7.7606:1'
OK u:0.00 s:0.01 r:571.25
2007:03:08 11:46:04 - Host Disconnect Request Received. '127.0.0.1'

So, it appears to work fine when the boost server is started manually, but not when started as a service!!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests