Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Apr 22, 2019 11:28 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Raspberry Pi Dynamic Remote Poller for Cacti 1.x
PostPosted: Wed Aug 29, 2018 7:30 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2707
Location: Kressbronn, Germany
Hi Community

I'm currently working on a dynamic remote poller system using the latest Cacti 1.x and a Raspberry PI 3 B+ device.

The goal is to get a system up and running which is automatically registering itself on the Master system and is using DHCP for getting its' address.

This allows for an easy distribution of remote pollers in remote sites for .e.g URL or application monitoring from an end-user perspective.

The current working status as of 29/Aug 2018 is as follows:
  • Raspberry PI 3 B+ running Raspbian Stretch and backported Cacti 1.1.38
  • The system is retrieving its IP using DHCP
  • After initial boot, the system is registering with the Master server as a new poller
  • The hostname/database hostname are updated on the Master after each IP address change automatically
  • Master System(IP, DB settings) need to be configured correctly in the respective config files

The goal is to have this as easy as possible with an installation tool to configure the basic settings, so an image of the SD-Card can be taken afterwards and distributed.


Anyone likes to join this ?

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Raspberry Pi Dynamic Remote Poller for Cacti 1.x
PostPosted: Mon Sep 03, 2018 9:31 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2397
If I had a Pi, I would probably help you out. Especially given we've updated the installer in 1.2 quite dramatically (I'm working on a CLI version to allow a scripted install!). Hopefully, you will get responses from others to help out :)

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Raspberry Pi Dynamic Remote Poller for Cacti 1.x
PostPosted: Tue Sep 04, 2018 3:05 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2707
Location: Kressbronn, Germany
The current Pi is using the Debian installer, which works just fine, except it install a full Master systems.

So I changed the configs to point to the true master (spine.conf / config.php ) and set the poller-id to 999.

A small script checks that poller_id and registers the Pi with the master if it's still 999 or updates the hostname/dbhost if it's not 999.
That registering part is actually small code part from the actual cacti installer.

That's currently working just fine and tested with several remote locations.

I'm looking into making this more intuitive, so you only need to setup one Pi using an easy installer and then you can distribute the image to other PIs ...

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

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