I know you guys must hate this question...

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

Moderators: Developers, Moderators

timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

I know you guys must hate this question...

Post by timed_out »

Sorry in advance, ive tried all I can before asking..

I can get my graphs to populate data, but putting a graph in debug mode says RRD is ok.

When I run poller,php manually I get the below message:

[root@localhost ~]# php /usr/share/cacti/poller.php
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Australia/Melbourne' for 'AEST/10.0/no DST' instead in /usr/share/cacti/cmd.php on line 61
OK u:0.00 s:0.00 r:0.00

But I have changed my php.ini as below and I still get this message:

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
;date.timezone =Australia/Melbourne


Im running centos 6.7 and I have turned of selinux.

Thanks for your help
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: I know you guys must hate this question...

Post by phalek »

The line is still commented out. You need to remove the semi-colon from it so it looks like this:

Code: Select all

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone =Australia/Melbourne

Then restart the webserver afterwards so that PHP reads in the new setting
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
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

omg.. Im used to a #. Thank you
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Now I get this cron error:

06/23/2016 09:41:17 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '22276', Max Runtime '298', Poller Runs: '1'
06/23/2016 09:41:17 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 22276 seconds have passed since the last poll!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: I know you guys must hate this question...

Post by phalek »

Only once ?
Do you use ntp ?
Did you manually run this or via cron ?
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
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Yeah looks like only once looking through the cacti.log:

[root@localhost cacti]# cat /var/log/cacti.log | grep POLLER
06/23/2016 09:41:17 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '22276', Max Runtime '298', Poller Runs: '1'
06/23/2016 09:41:17 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 22276 seconds have passed since the last poll!

Yes I use NTP and I run it via a cron:

[root@localhost cacti]# cat /etc/cron.d/cacti
#*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1

Thanks for your help,
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Oh and the remaining issue is that the graphs just don't populate, but RRD looks ok, would it be a permissions or ownership issue?

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='ASA - Traffic - Ethernet0/0' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/asa_traffic_in_68.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/asa_traffic_in_68.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:cdefe#002A97FF:'Outbound' \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n'
RRDTool Says:
OK
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: I know you guys must hate this question...

Post by phalek »

Go look at these graphs and especially check the future.

It may be that they got updated with a future date ( due to wrong timing ), so you will not see anything today.

If this is a fresh system, go and delete the files in the rra directory to be sure they are ok now.
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
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Thank Phalek,

I have left Cacti polling overnight for several nights, but still no data. Yes this is a fresh installation, but I have uninstalled Cacti once and reinstalled just to see if I could fix it. Same issue though.

I have deleted the files in the rrd directory and will give it some time.

Cheers
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: I know you guys must hate this question...

Post by cigamit »

timed_out wrote: Yes I use NTP and I run it via a cron:

[root@localhost cacti]# cat /etc/cron.d/cacti
#*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Why is your cron entry commented out?
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

looking at the article I used, the linux command line prompt in his instructions didnt have a space after it (like in the rest of his steps), so I thought it was needed..

http://www.tecmint.com/install-cacti-ne ... ora-17-12/

Thanks mate
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

cigamit wrote:
timed_out wrote: Yes I use NTP and I run it via a cron:

[root@localhost cacti]# cat /etc/cron.d/cacti
#*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Why is your cron entry commented out?
and yeah I admit, im an idiot.. I didnt actually look at it properly when creating it.. Still noting so fat thought.. As Janet Jackson once said.. Lets wait a while..
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Now I get this when I run the poller manually (even though cron should be working now):

06/25/2016 10:49:42 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '281', Max Runtime '298', Poller Runs: '1'
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
{Removed}
Waiting on 1 of 1 pollers.
06/25/2016 10:49:43 AM - SYSTEM STATS: Time:0.2677 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:45 RRDsProcessed:25
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: I know you guys must hate this question...

Post by micke2k »

Did you remove the rras after running poller --force ?

Check the permissions on the rra folder, make sure the file dates update every poller run.
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Yep removed the rrd files and they update when I force run the poller:

[root@localhost rra]# php /usr/share/cacti/poller.php --force
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.01 r:0.01
OK u:0.00 s:0.01 r:0.02
OK u:0.00 s:0.01 r:0.04
[Removed[
06/25/2016 10:03:49 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '30', Max Runtime '298', Poller Runs: '1'
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
[Removed]
Waiting on 1 of 1 pollers.
06/25/2016 10:03:49 PM - SYSTEM STATS: Time:0.2787 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:45 RRDsProcessed:25

[root@localhost rra]# ls -la
total 2260
drwxrwxrwx. 2 cacti root 4096 Jun 25 22:03 .
drwxr-xr-x. 5 root root 4096 Jun 23 21:12 ..
-rw-r--r-- 1 root root 94816 Jun 25 22:03 asa_traffic_in_67.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:03 asa_traffic_in_68.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:03 asa_traffic_in_69.rrd
[Removed]
-rw-r--r-- 1 root root 94816 Jun 25 22:03 asa_traffic_in_84.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:03 asa_traffic_in_85.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:03 asa_traffic_in_86.rrd
-rw-r--r-- 1 root root 141640 Jun 25 22:03 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47992 Jun 25 22:03 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47992 Jun 25 22:03 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47992 Jun 25 22:03 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47992 Jun 25 22:03 localhost_users_6.rrd

Then I run again a minute later:

[root@localhost rra]# ls -la
total 2260
drwxrwxrwx. 2 cacti root 4096 Jun 25 22:03 .
drwxr-xr-x. 5 root root 4096 Jun 23 21:12 ..
-rw-r--r-- 1 root root 94816 Jun 25 22:04 asa_traffic_in_67.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:04 asa_traffic_in_68.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:04 asa_traffic_in_69.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:04 asa_traffic_in_70.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:04 asa_traffic_in_71.rrd
-rw-r--r-- 1 root root 94816 Jun 25 22:04 asa_traffic_in_72.rrd
{Removed]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests