Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Samtech
Posts: 6
Joined: Wed Jan 17, 2018 3:09 am

Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by Samtech »

I am relatively new to cacti and linux. I have installed cacti on centos 6. I have been able to install but the graphs are not polling despite the equipment being detected on cacti.

I have tried to perform various changes as read on forums to no avail. All help is welcome
Attachments
Status Unknown.PNG
Status Unknown.PNG (12.37 KiB) Viewed 1174 times
Node Discovered.PNG
Node Discovered.PNG (6.74 KiB) Viewed 1174 times
No Graphing.PNG
No Graphing.PNG (12.5 KiB) Viewed 1174 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by netniV »

Have you got a cron job setup to run the poller.php?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Samtech
Posts: 6
Joined: Wed Jan 17, 2018 3:09 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by Samtech »

Not sure

I used this guide during the installation

https://www.tecmint.com/install-cacti-n ... ent-961286


As indicated, I am relatively new to linux
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by netniV »

Setting Cron for Cacti
Open file /etc/cron.d/cacti.

Code: Select all

# vi /etc/cron.d/cacti
Uncomment the following line. The poller.php script runs every 5mins and collects data of known host which is used by Cacti application to display graphs.

Code: Select all

#*/5 * * * *    cacti   /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
This is the section that matters. However, what they have done is left a # at the front of the cron to stop the scheduler kicking in before you've fully installed cacti. You need to edit /etc/cron.d/cacti and remove that hash prefix for the poller to actually kick in.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Samtech
Posts: 6
Joined: Wed Jan 17, 2018 3:09 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by Samtech »

Yes I had done that earlier but still it did not work
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by netniV »

OK, what is appearing in the log files? Are there any errors or warnings?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Samtech
Posts: 6
Joined: Wed Jan 17, 2018 3:09 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by Samtech »

How can i check on that?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by phalek »

Just curious, did you change all the Timezone settings in /etc/php.ini and /etc/my.cnf ?

Also, you can check if the rrd files are actually updated ?

You can do this by going to the Console, then in the Management section choose "Data Sources". Select a data source there and on the next script click on the "Turn On Data Source Info Mode". You will see a new section with "RRD File Information" stating the full path to the rrd file as well as the last_update time.
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 : CereusReporting
Samtech
Posts: 6
Joined: Wed Jan 17, 2018 3:09 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by Samtech »

netniV wrote:OK, what is appearing in the log files? Are there any errors or warnings?

Kindly advice
Samtech
Posts: 6
Joined: Wed Jan 17, 2018 3:09 am

Re: Cacti failing to poll - Cacti cacti-1.1.19-2 on CentOS 6

Post by Samtech »

phalek wrote:Just curious, did you change all the Timezone settings in /etc/php.ini and /etc/my.cnf ?

Also, you can check if the rrd files are actually updated ?

You can do this by going to the Console, then in the Management section choose "Data Sources". Select a data source there and on the next script click on the "Turn On Data Source Info Mode". You will see a new section with "RRD File Information" stating the full path to the rrd file as well as the last_update time.


The timezone settings have not been changed


"Turn On Data Source Info Mode" does not show any extra info. Page remains the same with the feature turned on or off
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests