Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Aug 21, 2017 12:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Fri Nov 08, 2013 1:36 am 
Offline

Joined: Mon Jun 13, 2011 11:20 pm
Posts: 26
Hi André / der_doc
I have a running cacticluster working well.
Only one issue left. How's the backup poller mechanism work ?
I deliberately disable one of the poller , but the backup poller did not take over the polling process automatically. Should it take over the polling from failed poller automatically ?

Appreciate for any explanation.

Thanks.


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Tue Nov 12, 2013 11:34 am 
Offline

Joined: Mon Aug 08, 2011 4:04 am
Posts: 27
Hi der_doc,

Can you explain how to set up cacti with your plugin ?
What needs to be patched (for the last stable versions of cacti and spine) and configured on both servers ?

Thanks

NP


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Tue Feb 11, 2014 12:53 am 
Offline

Joined: Tue Feb 11, 2014 12:14 am
Posts: 1
Hi der_doc,
thx for your great work.
The Master-MultiWorkers model can improve the performance of cacti greatly, but I have another question :
if the cluster have 10+ thousands of rrd file that should be written into disk (local physical disk or remote file system such as NFS) in a very short period, the disk IO bottleneck would be a big problem.
Is it possible to changing your model to another structure below?
  • 1. the workers gather a certain group of devices' info and modify/append their rrd files in local disk.
  • 2. each worker is a NFS server and export their rrd files dir to master.
  • 3. the master create mount points that mapping every worker's local rrdDir and read the remote rrd files for displaying & reporting.
Code:
                                                                     Master
                                                                        |_____/usr/local/rrd_root
worker/poller a                                                                             |
       |_______/usr/local/poller_a/   ---------------mount------------- ./poller_a/ ________|
worker/poller b                                                                             |
       |_______/usr/local/poller_b/   ---------------mount------------- ./poller_b/ ________|
worker/poller c                                                                             |
       |_______/usr/local/poller_c/   ---------------mount------------- ./poller_c/ ________|



In my opinion, I must do some work after the event of binding host to poller in your project, such as changing the rrd file path just like cli/structure_rra_paths.php doing.
I am a newbie of cacti and I am not sure if the WriteLocal-ReadRemote model would work or not.

Any suggestions?
thx & regards


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Tue Mar 04, 2014 9:59 am 
Offline

Joined: Wed Feb 23, 2011 5:45 am
Posts: 4
Hi,

i have a problem with install plugin multipoller 0.2.2b, my install is a install from scratch and i have the following message in cacti.log

extract of cacti.log : "The Plugin Multi-Pollerserver notifies the backup of patching files not done"

and it's impossible to create a pollerserver.

I tested install with plugins 0.2.21 and i have an other error

"3/04/2014 04:06:44 PM - POLLER: Poller[0] ERROR: The Plugin Multi-Pollerserver notifies one or more errors at updateprocess."

patching file poller.php
Reversed (or previously applied) patch detected! Skipping patch.
13 out of 13 hunks ignored -- saving rejects to file poller.php.rej

is it necessary to install previous version ? 0.2.21 => 0.2.22 => 0.2.2a

Thank for help

my configuration

rhel 6.5
cacti 0.8.8a
spine 0.8.8a
php 5.3.3-27


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Wed Mar 19, 2014 5:23 am 
Offline

Joined: Wed Feb 23, 2011 5:45 am
Posts: 4
after investigation, I noticed that the problem was present in some version of PHP 5.3, in my case with the 5.3.3-27 release.

I downgraded my version of php to release 5.3.3-3.

best regards


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Wed Oct 01, 2014 3:58 am 
Offline
Cacti User

Joined: Mon Jul 24, 2006 7:20 am
Posts: 50
Location: Braunschweig, Germany
Hi all,

sorry that i not answerd of your posts. It will be better, pleace fogive.
So i will begin to answer your questions.

@optimuscream
optimuscream @ Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reuploaded!

In all my tests this feature work perfectly.
You must shout down one of the poller, than work the bachupfunktion. Every Backuppoller looke at his poller how is registerd als poller to backup and takes over his work if the last pollertime of his server is greather than 5min.

@npeltier
npeltier @ Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reuploaded!

On my webpage it gives an doku, he is on german. sorry. On the feature site on the page is a picturegallery of an installation.
http://www.cacti-multipollerserver.de/i ... tures.html

I work on an doku of the installation. The big problem is my english. ;-( but if the request is sooo big the i will do my very best.

@aleyx1979
aleyx1979 @ Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reuploaded!
The ground idea is that not the master hold the rrd-files. The rrd files scheduled be saved at a NAS System and the NAS system mount via NFS Mountpoints on the client system.
If you will work with this structuremode all rrd files must be copyed to the other ordner if you push the device to another pollerserver. You now what i mean?

@all
I will have a look at the php version. One of the useed functions are not supported. I will fined them and make it futer-proofed.

Thank at all peaople how use the plugin.

MfG
André

_________________
Image
ImageImage


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Wed Oct 29, 2014 10:50 am 
Offline

Joined: Wed Sep 04, 2013 12:11 pm
Posts: 10
Hi der_doc,

We are looking forward to deploy this however have run into issues when installing straight to 0.8.8b:

    -The plugin does not initialise, it get's stuck and report that it is 'Awaiting Upgrade'.
    -Getting SQL error 1091 when creating tables.

Is installing to 0.8.8b supported?

thanks for clarifying

rgds
Marthin


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Sat Nov 01, 2014 12:30 pm 
Offline
Cacti User

Joined: Mon Jul 24, 2006 7:20 am
Posts: 50
Location: Braunschweig, Germany
Hi Marthin

yes cacti 0.8.8b is supported.
My testinstall is with teh reposetory form ubuntu server 12.04.
All versions of php and mysql from this reposetory are work fine.

please post the technical details from your cacti instalation.
NOTE i also tested on ubuntu! I now from some installations on Red Heat. In this winter i will update so that the plugin will run unter Red Heat.

mfg
der_doc

_________________
Image
ImageImage


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Fri Nov 07, 2014 8:43 am 
Offline

Joined: Mon Nov 04, 2013 10:16 am
Posts: 4
Hey der_doc, same problem as Marthin. Just used two different fresh installs I created yesterday, using 64 Bit Ubuntu Server 14.04. Only things I added to the server on the install were LAMP, OpenSSH, and Samba. I applied all system updates and fresh kernels, then installed Cacti-Spine from Ubuntu repositories. Only addon I put in was the multipollerserver. End result is the same as Marthin: "The plugin does not initialise, it get's stuck and report that it is 'Awaiting Upgrade'."

I haven't been able to do much troubleshooting on what the issue is, but any insight you've found would be appreciated.

Thanks.


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Fri Nov 07, 2014 10:29 am 
Offline
Cacti User

Joined: Mon Jul 24, 2006 7:20 am
Posts: 50
Location: Braunschweig, Germany
Hi Pollay,

ok i will have a look and fix the problen soon as posible.
Sorry for the trouble.

mfg
Der_Doc

_________________
Image
ImageImage


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Fri Nov 07, 2014 12:03 pm 
Offline

Joined: Mon Nov 04, 2013 10:16 am
Posts: 4
Ok, sat down and did some troubleshooting.

In setup.php I set the version in line 43 to '0.2.2b' (was 0.2.2.a), deleted the entry for multipollerserver from the plugin_config table and was able to install and enable the plugin properly.


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Thu Nov 13, 2014 3:43 am 
Offline

Joined: Wed Sep 04, 2013 12:11 pm
Posts: 10
hi Pollay,

thanks for the hint! it worked as expected.

@der_doc,

I am now faced with the configuration of the plugin. Have been searching the docs and Google and could not find info relating to this error/step that I seeing.

When adding a poller server via the console menu of the plugin I get a 'Save Failed' with a SQL error produced in the logs. I have applied ALL the patches in the patches directory, not sure if that is correct but it is how I interpreted the instructions.

Here is the error:

Code:
CMDPHP: Poller[0] ERROR: SQL Save Command Failed for Table 'poller_server'.  Error was 'Unknown column 'backup_poller_id' in 'field list''


when searching poller_server table this column does not appear (backup_poller_id):

Code:
mysql> select * from poller_server;
+----+-----------+-----------+----------------+--------------+--------+---------------------+-------------+-----------+--------------+--------------+
| id | name      | hostname  | poller_lastrun | stats_poller | aktive | availability_method | ping_method | ping_port | ping_timeout | ping_retries |
+----+-----------+-----------+----------------+--------------+--------+---------------------+-------------+-----------+--------------+--------------+
|  2 | localhost | 127.0.0.1 |              0 | 0            | on     |                   3 |           1 |     33439 |          500 |            2 |
+----+-----------+-----------+----------------+--------------+--------+---------------------+-------------+-----------+--------------+--------------+
1 row in set (0.00 sec)



I have tried adding a poller server with and without a backup poller, however the results are the same.

Your assistance would be appreciated.

Many thanks
Marthin


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Mon Nov 17, 2014 7:04 am 
Offline

Joined: Mon Nov 04, 2013 10:16 am
Posts: 4
The problem with my suggestion is that there are a bunch of upgrade scripts that need to be parsed in that don't get parsed if following my advice.


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Mon Nov 24, 2014 8:14 am 
Offline

Joined: Mon Nov 24, 2014 8:10 am
Posts: 2
Hello Pollay
I encounter the same problem but my only log.


[Mon Nov 10 12:42:25 2014] [error] [client 192.168.10.50] PHP Notice: Use of undefined constant \xe2\x80\x98weathermap\xe2\x80\x99 - assumed '\xe2\x80\x98weathermap\xe2\x80\x99' in /var/www/cacti/include/config.php on line 35, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose
[Mon Nov 10 12:42:26 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php:actions in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose
[Mon Nov 10 12:42:26 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php:actions in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose
[Mon Nov 10 12:42:26 2014] [error] [client 192.168.10.50] PHP Fatal error: Call to undefined function template_remove() in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 68, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose


Mon Nov 10 12:44:54 2014] [error] [client 192.168.10.50] PHP Notice: Use of undefined constant \xe2\x80\x98weathermap\xe2\x80\x99 - assumed '\xe2\x80\x98weathermap\xe2\x80\x99' in /var/www/cacti/include/config.php on line 35, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose
[Mon Nov 10 12:44:54 2014] [error] [client 192.168.10.50] PHP Notice: Use of undefined constant \xe2\x80\x98weathermap\xe2\x80\x99 - assumed '\xe2\x80\x98weathermap\xe2\x80\x99' in /var/www/cacti/include/config.php on line 35, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose
[Mon Nov 10 12:44:54 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php: in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose
[Mon Nov 10 12:44:54 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php: in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=device_choose


[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Use of undefined constant \xe2\x80\x98weathermap\xe2\x80\x99 - assumed '\xe2\x80\x98weathermap\xe2\x80\x99' in /var/www/cacti/include/config.php on line 35, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php:template_edit in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php:template_edit in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: id in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 292, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: name in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 383, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: hostname in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 390, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: backup_poller_id in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 397, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: name in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 399, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: aktive in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 406, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: availability_method in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 417, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: id in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 450, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php
[Mon Nov 10 12:45:28 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: id in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 454, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php


[Mon Nov 10 12:46:42 2014] [error] [client 192.168.10.50] PHP Notice: Use of undefined constant \xe2\x80\x98weathermap\xe2\x80\x99 - assumed '\xe2\x80\x98weathermap\xe2\x80\x99' in /var/www/cacti/include/config.php on line 35, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: ping_timeout in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 115, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined variable: pollerserver_id in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 124, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Use of undefined constant \xe2\x80\x98weathermap\xe2\x80\x99 - assumed '\xe2\x80\x98weathermap\xe2\x80\x99' in /var/www/cacti/include/config.php on line 35, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php:template_edit in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: multipollerserver.php:template_edit in /var/www/cacti/lib/functions.php on line 1830, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: backup_poller_id in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 397, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: name in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 399, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: aktive in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 406, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit
[Mon Nov 10 12:46:43 2014] [error] [client 192.168.10.50] PHP Notice: Undefined index: availability_method in /var/www/cacti/plugins/multipollerserver/multipollerserver.php on line 417, referer: http://192.168.10.56/cacti/plugins/multipollerserver/multipollerserver.php?action=template_edit


Top
 Profile  
 
 Post subject: Re: Plugin Multi-Pollerserver (Cacticluster) 0.2.2b reupload
PostPosted: Wed Nov 26, 2014 8:23 am 
Offline

Joined: Wed Sep 04, 2013 12:11 pm
Posts: 10
Thanks Pollay, Have worked through the upgrade scripts and manually run the db_execute functions in the php there.

What I am now sitting with is to try and understand the overall installation and config of the plugin. Have gone through the install doc and graphics may thirty times but the penny has not dropped ... yet.

Please if it can be explained the procedure to install the plugin from a NFS/MySQL/Cacti files perspective it would really be great. Nothing too verbose, just to colour the picture a bit more would help a lot.

Specifically what I would like to understand:
    1. What files should be shared on the master server and where should it be mounted on the (slave) poller servers?
    2. How would the poller servers connect to the master server database? Make a connection to the master MySQL via the 'include/config.php' or via the spine.conf? or both?
    3. How do you enable the master server for polling?
    4. Is it needed to install the plugin in the (slave) poller servers? or only the master?

Please excuse if the questions seem basic, I truly have been struggling with some of the details.

many thanks
Marthin


Last edited by marthin on Wed Nov 26, 2014 8:44 am, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group