Cacti - no grahps showing up

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

Moderators: Developers, Moderators

Post Reply
urzh
Posts: 13
Joined: Sat Jul 13, 2013 4:04 pm

Cacti - no grahps showing up

Post by urzh »

Recently installed Cacti on Mac 10.10. I've added the WebServer Apache stats template 7 graphs. I have mod_status.so enabled.

I'm getting blank graphs for more than a day now. My configuration follows in screenshots and attached technical support.
Attachments
technical.pdf
(1.36 MiB) Downloaded 75 times
settings.jpg
settings.jpg (223.01 KiB) Viewed 1387 times
poller.jpg
poller.jpg (232.32 KiB) Viewed 1387 times
paths.jpg
paths.jpg (177.81 KiB) Viewed 1387 times
urzh
Posts: 13
Joined: Sat Jul 13, 2013 4:04 pm

Re: Cacti - no grahps showing up

Post by urzh »

After changing some permissions on cacti dir's, adding a time zone in php.ini graphs are showing! However, they are "nan" value graphs. I went through the nan debugging on here but there's nothing I can see pointing out why my graphs would not display data. I am NOT using SNMP on my machine and I'm only using the Apache Stats template. I have met the pre-reqs for this template.

/05/2015 03:47:11 PM - CMDPHP: Poller[0] Host[2] DS[15] WARNING: Result from SERVER not valid. Partial Result: U
06/05/2015 03:47:11 PM - CMDPHP: Poller[0] Host[2] DS[15] SERVER: /cacti/scripts/ss_apache_stats.php ss_apache_stats 192.168.1.2 workers, output: U
06/05/2015 03:47:11 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
06/05/2015 03:47:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update/cacti/rra/web_apache_idle_workers_15.rrd --template 143353723

6/05/2015 03:52:12 PM - PHPSVR: Poller[0] DEBUG: PID[48146] CTR[3] INC: 'ss_apache_stats.php' FUNC: 'ss_apache_stats' PARMS: '192.168.1.2 workers'
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'thread_W:0' [map thread_W->thread_W]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadS:0' [map threadS->threadS]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadR:0' [map threadR->threadR]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadW:0' [map threadW->threadW]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadK:0' [map threadK->threadK]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadD:0' [map threadD->threadD]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadC:0' [map threadC->threadC]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadL:0' [map threadL->threadL]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadG:0' [map threadG->threadG]
06/05/2015 03:52:12 PM - POLLER: Poller[0] Parsed MULTI output field 'threadI:0' [map threadI->threadI]
06/05/2015 03:52:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /cacti/rra/web_threads_12.rrd --template thread_W:threadS:threadR:threadW:threadK:threadD:threadC:threadL:threadG:threadI 1433537532:0:0:0:0:0:0:0:0:0:0
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Cacti - no grahps showing up

Post by cigamit »

You should run this script by hand and see what you are getting bad results.
/cacti/scripts/ss_apache_stats.php ss_apache_stats 192.168.1.2 workers
urzh
Posts: 13
Joined: Sat Jul 13, 2013 4:04 pm

Re: Cacti - no grahps showing up

Post by urzh »

Here is output, I'm not sure..

php -f /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php

Warning: strtotime(): 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php on line 674

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0031 753688 2. include_once('/Users/mac/Desktop/CACTI/cacti/include/global.php') /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:57
0.0360 4247072 3. include_once('/Users/mac/Desktop/CACTI/cacti/include/global_arrays.php') /Users/mac/Desktop/CACTI/cacti/include/global.php:216
0.0368 4361256 4. strtotime() /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php:674


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 'America/Chicago' for 'CDT/-5.0/DST' instead in /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php on line 674

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0031 753688 2. include_once('/Users/mac/Desktop/CACTI/cacti/include/global.php') /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:57
0.0360 4247072 3. include_once('/Users/mac/Desktop/CACTI/cacti/include/global_arrays.php') /Users/mac/Desktop/CACTI/cacti/include/global.php:216
0.0369 4361224 4. date() /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php:674


Warning: strtotime(): 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php on line 675

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0031 753688 2. include_once('/Users/mac/Desktop/CACTI/cacti/include/global.php') /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:57
0.0360 4247072 3. include_once('/Users/mac/Desktop/CACTI/cacti/include/global_arrays.php') /Users/mac/Desktop/CACTI/cacti/include/global.php:216
0.0370 4361488 4. strtotime() /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php:675


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 'America/Chicago' for 'CDT/-5.0/DST' instead in /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php on line 675

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0031 753688 2. include_once('/Users/mac/Desktop/CACTI/cacti/include/global.php') /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:57
0.0360 4247072 3. include_once('/Users/mac/Desktop/CACTI/cacti/include/global_arrays.php') /Users/mac/Desktop/CACTI/cacti/include/global.php:216
0.0371 4361456 4. date() /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php:675


Warning: strtotime(): 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php on line 676

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0031 753688 2. include_once('/Users/mac/Desktop/CACTI/cacti/include/global.php') /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:57
0.0360 4247072 3. include_once('/Users/mac/Desktop/CACTI/cacti/include/global_arrays.php') /Users/mac/Desktop/CACTI/cacti/include/global.php:216
0.0372 4361720 4. strtotime() /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php:676


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 'America/Chicago' for 'CDT/-5.0/DST' instead in /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php on line 676

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0031 753688 2. include_once('/Users/mac/Desktop/CACTI/cacti/include/global.php') /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:57
0.0360 4247072 3. include_once('/Users/mac/Desktop/CACTI/cacti/include/global_arrays.php') /Users/mac/Desktop/CACTI/cacti/include/global.php:216
0.0373 4361688 4. date() /Users/mac/Desktop/CACTI/cacti/include/global_arrays.php:676


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 'America/Chicago' for 'CDT/-5.0/DST' instead in /Users/mac/Desktop/CACTI/cacti/lib/functions.php on line 486

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0547 5930296 2. call_user_func_array:{/Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:62}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:62
0.0547 5930544 3. ss_apache_stats() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:62
0.0547 5930832 4. cacti_log() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:69
0.0547 5931088 5. date() /Users/mac/Desktop/CACTI/cacti/lib/functions.php:486


Warning: file_get_contents(http:///server-status?auto): failed to open stream: operation failed in /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php on line 88

Call Stack:
0.0007 672464 1. {main}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:0
0.0547 5930296 2. call_user_func_array:{/Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:62}() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:62
0.0547 5930544 3. ss_apache_stats() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:62
0.0576 5934768 4. file_get_contents() /Users/mac/Desktop/CACTI/cacti/scripts/ss_apache_stats.php:88

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

Re: Cacti - no grahps showing up

Post by cigamit »

Your server is misconfigured. You need to set the timezone manually in php.ini, just like the error says.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests