[SOLVED]date problem

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

Moderators: Developers, Moderators

Post Reply
luffywallis
Posts: 10
Joined: Tue May 03, 2011 9:41 pm

[SOLVED]date problem

Post by luffywallis »

Hi,
I have a cacti installed with "eyesofnetwork". at first, the cacti plotted the graphs, but i saw that the date and time weren't the good ones, so i changed them on the machine using the commands date and hwclock --systohc
after doing that, the graphs are no longer plotted (blank graphs). how can i fix that? thanks!
Last edited by luffywallis on Mon May 30, 2011 3:27 pm, edited 1 time in total.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: date problem

Post by Linegod »

rrd files are date sensitive. You will have to wait until the 'current' time matches the next open spot in the rrd file before it will start graphing again.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
luffywallis
Posts: 10
Joined: Tue May 03, 2011 9:41 pm

Re: date problem

Post by luffywallis »

Thanks for your reply.
the old date was 11/11/2011.. is there another way to do it? if i recreate all the graphs will it solve the problem?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: date problem

Post by Linegod »

Best bet is to recreate all of the graphs.

You could export all of the rrd files, and manually update every date stamp, but that might be madness...
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
luffywallis
Posts: 10
Joined: Tue May 03, 2011 9:41 pm

Re: date problem

Post by luffywallis »

Well, i deleted all the graphs and created them but nothing happened. So i deleted the devices and created them again (and created their graphs again) but the problem was not solved. Worse, now the devices have an "unknown" status
i took a look when i deleted the devices, and i saw that the directory /srv/eyesofnetwork/cacti-0.8.7e/rra/ is full of .rra files of the deleted devices, so i deleted all of those files (i made a backup in case), but nothing happened..what can i do to fix this?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: date problem

Post by Linegod »

How long did you wait? Did you check your log for messages?

http://docs.cacti.net/manual:087:4_help.2_debugging
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
luffywallis
Posts: 10
Joined: Tue May 03, 2011 9:41 pm

Re: date problem

Post by luffywallis »

i waited like 15 minutes

here the last entries on my cacti.log

Code: Select all

11/13/2011 09:50:36 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97 run complete - 0 maps were run in 0 seconds with 0 warnings.
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[14] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[15] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[16] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[17] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[18] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[19] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[20] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[21] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:02 AM - CMDPHP: Poller[0] Host[8] DS[22] WARNING: Result from SNMP not valid.  Partial Result: U
11/13/2011 09:55:36 AM - SYSTEM STATS: Time:34.4012 Method:cmd.php Processes:1 Threads:N/A Hosts:16 HostsPerProcess:16 DataSources:187 RRDsProcessed:83
11/13/2011 09:55:36 AM - SYSTEM THOLD STATS: Time:0.0332 Tholds:3 Hosts:0
11/13/2011 09:55:36 AM - WEATHERMAP: Poller[0] Weathermap 0.97 starting - Normal logging mode. Turn on DEBUG in Cacti for more information

11/13/2011 09:55:36 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97 run complete - 0 maps were run in 0 seconds with 0 warnings.
you can see that all the entries have the wrong time, so when i changed the time the poller didn't work...



EDIT: i run php -q /srv/eyesofnetwork/cacti-0.8.7e/cmd.php manually on the machine and the devices became "up"
the poller doesn't create .rrd files, even if i run it manually..strange
luffywallis
Posts: 10
Joined: Tue May 03, 2011 9:41 pm

Re: date problem

Post by luffywallis »

Now i have this in my cacti.log:

Code: Select all

05/20/2011 08:02:36 AM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only -15299545 seconds have passed since the poller last ran. 
-15299545 seconds brings us to the previous date (~ 11/11/2011) so there is something that still use the "wrong" time and needs to be adjusted..
luffywallis
Posts: 10
Joined: Tue May 03, 2011 9:41 pm

Re: date problem

Post by luffywallis »

ok now i was able to find a solution to the cron issue, just by modifying poller.php, in the line $force=FALSE turn it to TRUE, run the poller manually and then turn it back to FALSE.
after that, another problem appeared:

Code: Select all

05/20/2011 09:55:01 AM - POLLER: Poller[0] WARNING: Poller Output Table not Empty. Issues Found: 59, Data Sources: traffic_in(DS[155]), traffic_out(DS[155]), traffic_in(DS[156]), traffic_out(DS[156]), discards_in(DS[157]), discards_out(DS[157]), errors_in(DS[157]), errors_out(DS[157]), discards_in(DS[158]), discards_out(DS[158]), errors_in(DS[158]), errors_out(DS[158]), traffic_in(DS[159]), traffic_out(DS[159]), traffic_in(DS[160]), traffic_out(DS[160]), traffic_in(DS[161]), traffic_out(DS[161]), traffic_in(DS[162]), traffic_out(DS[162]), traffic_in(DS[163]), Additional Issues Remain. Only showing first 20 
now i see the graphs but they are empty..still searching for a solution..
luffywallis
Posts: 10
Joined: Tue May 03, 2011 9:41 pm

Re: date problem

Post by luffywallis »

resolved! i removed and re create the devices again, and after that it worked!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests