Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jun 27, 2017 5:40 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Can't configure remote poller
PostPosted: Fri May 19, 2017 12:08 pm 
Offline
Cacti User

Joined: Tue Mar 31, 2009 10:05 am
Posts: 229
Yes, we are using spine and on-demand is enabled.

Attachment:
performance.png
performance.png [ 69.66 KiB | Viewed 474 times ]


Attachment:
spine.png
spine.png [ 61.55 KiB | Viewed 474 times ]


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Mon May 22, 2017 6:47 am 
Offline

Joined: Thu May 03, 2007 6:22 am
Posts: 26
I have it working. Looks very good.

I have both On-demand RRD Updating and RRDtool Proxy Server disabled. Currently testing with localhost and one Cisco router (I have no idea why Cacti is sharing the localhost data).


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Mon May 22, 2017 8:32 am 
Offline
Cacti User

Joined: Tue Mar 31, 2009 10:05 am
Posts: 229
You have on demand updating disabled? That is strange as that is not what any of the documentation says.


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Mon May 22, 2017 10:17 am 
Offline

Joined: Thu May 03, 2007 6:22 am
Posts: 26
I had problems with On-demand RRD Updating enabled.


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Mon May 22, 2017 10:21 am 
Offline
Cacti User

Joined: Tue Mar 31, 2009 10:05 am
Posts: 229
What do your spine.conf files look like on your main Cacti server and the remote poller?


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Mon May 22, 2017 10:39 am 
Offline

Joined: Thu May 03, 2007 6:22 am
Posts: 26
Both spine.conf look like you would expect:

Code:
DB_Host      localhost
DB_Database   cacti
DB_User      cactiuser
DB_Pass      local_PW
DB_Port      3306

RDB_Host      remote_IP
RDB_Database   cacti
RDB_User      cactiuser
RDB_Pass      remote_PW
RDB_Port      3306

But I did have to add extra rules to the firewall (I updated from CatiEZ 0.7).

I also I had to uncomment "bind-address=127.0.0.1" in /etc/my.cnf.d/server.cnf and add remote user login to MySQL:

Code:
mysql> GRANT ALL ON cacti.* TO cactiuser@{remoteIP} IDENTIFIED BY '{local_PW}';
mysql> flush privileges;

to be able to remotely log in to MySQL .


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Mon May 22, 2017 1:45 pm 
Offline
Cacti User

Joined: Tue Mar 31, 2009 10:05 am
Posts: 229
So your main server looks like below and the remote server has the same conifg (with the only exception being the remote IP is different)?

DB_Host localhost
DB_Database cacti
DB_User cactiuser
DB_Pass local_PW
DB_Port 3306

RDB_Host remote_IP
RDB_Database cacti
RDB_User cactiuser
RDB_Pass remote_PW
RDB_Port 3306


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Tue May 23, 2017 4:57 am 
Offline

Joined: Thu May 03, 2007 6:22 am
Posts: 26
Dear stormonts,

I made a small guide here:

http://forums.cacti.net/viewtopic.php?f=6&t=57506


Top
 Profile  
 
 Post subject: Re: Can't configure remote poller
PostPosted: Wed Jun 21, 2017 5:58 pm 
Offline
Cacti User

Joined: Tue Mar 31, 2009 10:05 am
Posts: 229
I think I finally got this working (somewhat), but it wasn't quite as expected and I am still having some issues.

Before we messed with remote polling, our main Cacti server we have "On Demand RRD Updating" enabled, as well as SPine ( 6 concurrent poller processes, 25 threads per process, 10 script servers), and polling would finish at around 30 seconds. We have more devices that we want to add, like some switches, that we know are slow to poll so we wanted to setup a remote poller to poll servers/devices at that location. The remote poller (it doesn't have nearly the horespower as the main server) was setup at a different location connected via a dedicated 1 gig connection with a latency of 2.5 ms between them.

I know that the remote polling is configured as the following tests all pass:
From the remote poller to the main poller
Code:
mysql -u cactiuser --password={Main poller PW} -h {Main poller IP}

Works fine.

From the main poller to the remote poller
Code:
shell> mysql -u cactiuser --password={Remote Poller PW} -h {Remote Poller IP}

Works fine.

Log into the GUI, go to Data Collectors, click on the Remote Data Collector (it has no name initially). Did the following:
Code:
Change the name
Set the web site hostname to the FQDN of the remote poller
Set the hostname to the IP of the remote poller
Set the Remote Database Name to the correct name (cacti1x-btp)
Set the Remote Database User to cactiuser
Set the Remote Database Password to the {Remote Poller PW}
Click Save
Click Test Connection button
See "Connection Successful" message.


When I make a change on either the remote or main poller settings, the change then shows up at the other location, so they are definitely talking.

When I select the remote Data Collector and click "Enable", no more data is charted in the graphs. At this point, I haven't even assigned any devices to the remote poller, they are still associated with the original main poller but the graphs just stop logging data. If I turn off On Demand RRD Updating, then I start getting sporadic data graphed, but then both pollers (main and remote) start to overrun the 1 minute polling interval that we have setup.

I know the various posts I have read said that having on demand updating is suggested, that gives me absolutely no graphs. But disabling it ends up giving me holes. Is it a permission thing with Boost and the rra directory? Any other ideas?


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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