problem after updating to cacti-0.8.7c

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

Moderators: Developers, Moderators

Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

problem after updating to cacti-0.8.7c

Post by Pengu1n »

hello
after upgrade can't see any graph.
checked logs, spine works correctly
Log File [Total Lines: 220 - All Items Shown]

01/30/2009 11:56:41 AM - SYSTEM STATS: Time:39.7797 Method:spine Processes:1 Threads:1 Hosts:121 HostsPerProcess:121 DataSources:4156 RRDsProcessed:2109
01/30/2009 11:55:49 AM - SYSTEM STATS: Time:48.0101 Method:spine Processes:1 Threads:1 Hosts:121 HostsPerProcess:121 DataSources:4156 RRDsProcessed:2110
rrd files updates too



mon1:/var/www/rra# /usr/local/rrdtool-1.3.6/bin/rrdtool info cisco_871_3_karo_ligonines_19_kaunas_axis_ekoterm_5min_cpu_77.rrd
filename = "cisco_871_3_karo_ligonines_19_kaunas_axis_ekoterm_5min_cpu_77.rrd"
rrd_version = "0003"
step = 300
last_update = 1233309302
ds[5min_cpu].type = "GAUGE"
ds[5min_cpu].minimal_heartbeat = 600
ds[5min_cpu].min = 0.0000000000e+00
ds[5min_cpu].max = 1.0000000000e+02
ds[5min_cpu].last_ds = "2"
ds[5min_cpu].value = 4.0000000000e+00
ds[5min_cpu].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 345
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 56
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 1.0000000000e+01
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 738
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 4.8416666667e+01
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 190
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 5.4026666667e+01
rra[3].cdp_prep[0].unknown_datapoints = 92
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 345
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].cur_row = 56
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 2.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 738
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 4.8400000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 190
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 4.8400000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 92
mon1:/var/www/rra#
where can be problem? :(

thx
Attachments
sc1.JPG
sc1.JPG (114.02 KiB) Viewed 4856 times
Runz
Posts: 6
Joined: Wed Jan 28, 2009 3:01 am

Post by Runz »

I think it's the same like here (you posted also):

http://forums.cacti.net/about30829.html

I had also no graphs :roll: But now it works (with the workaround postet in the thread above). Don't ask me why :wink:
Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

Post by Pengu1n »

Runz wrote:I think it's the same like here (you posted also):

http://forums.cacti.net/about30829.html

I had also no graphs :roll: But now it works (with the workaround postet in the thread above). Don't ask me why :wink:
Your workaround helped me with that error message "/lib/rrd.php on line 68", thx :) (but i changed line back 538 to original, so warning dissapeared)
But i still have no graphs... :(
I set permissions for /rra 0777, but this didn't help
mon1:/var/www# ls -l
....
drwxrwxrwx 2 cactiuser root 237568 2009-01-30 11:40 rra
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Any error messages in cacti.log or error_log?
Reinhard
Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

Post by Pengu1n »

gandalf wrote:Any error messages in cacti.log or error_log?
Reinhard
no, there are no errors in log files :-?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I just updated SVN with a fix for rrd.php issue. You may download lib/rrd.php from SVN momentarily. A patch will be provided soon including other bug fixes as well
Reinhard
Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

Post by Pengu1n »

still have no graphs.. :(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit Graph management, DEBUG, and post a screenshot
Reinhard
Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

Post by Pengu1n »

my debug:

1. Check Cacti Log File:
02/05/2009 09:34:30 AM - SYSTEM STATS: Time:29.5037 Method:spine Processes:1 Threads:1 Hosts:122 HostsPerProcess:122 DataSources:4168 RRDsProcessed:2117
02/05/2009 09:34:29 AM - SPINE: Poller[0] Time: 27.9322 s, Threads: 1, Hosts: 122
02/05/2009 09:34:29 AM - SPINE: Poller[0] DEBUG: MYSQL Free & Close Completed
02/05/2009 09:34:29 AM - SPINE: Poller[0] DEBUG: Allocated Variable Memory Freed
02/05/2009 09:34:29 AM - SPINE: Poller[0] DEBUG: PHP Script Server Pipes Closed
02/05/2009 09:34:29 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
02/05/2009 09:34:29 AM - SPINE: Poller[0] DEBUG: SS[0] Script Server Shutdown Started
02/05/2009 09:34:29 AM - SPINE: Poller[0] DEBUG: Thread Cleanup Complete
02/05/2009 09:34:29 AM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2457] SNMP: v1: 10.255.228.22, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 1459506850
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2457] SNMP: v1: 10.255.228.22, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 2308500904
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2458] SNMP: v1: 10.255.228.22, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, value: 2994842013
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2458] SNMP: v1: 10.255.228.22, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, value: 2100201251
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2459] SNMP: v1: 10.255.228.22, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.7, value: 1431211826
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2459] SNMP: v1: 10.255.228.22, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.7, value: 2268696640
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2460] SNMP: v1: 10.255.228.22, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8, value: 2347758879
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] DS[2460] SNMP: v1: 10.255.228.22, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.8, value: 1496079007
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] RECACHE: Processing 1 items in the auto reindex cache for '10.255.228.22'
02/05/2009 09:34:29 AM - SPINE: Poller[0] Host[140] PING: Result ICMP: Host is Alive
As i understood it is anything all right with spine and mysql

2. Check rrd file updating
02/05/2009 09:38:43 AM - SYSTEM STATS: Time:41.5346 Method:spine Processes:1 Threads:1 Hosts:122 HostsPerProcess:122 DataSources:4168 RRDsProcessed:2116
02/05/2009 09:38:43 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.6/bin/rrdtool update /var/www/rra/cisco_871_5_silutes_40_klaipeda_cs_call_center_traffic_in_2460.rrd --template traffic_in:traffic_out 1233819521:2353587545:1501458397
02/05/2009 09:38:43 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.6/bin/rrdtool update /var/www/rra/cisco_871_5_silutes_40_klaipeda_cs_call_center_traffic_in_2459.rrd --template traffic_in:traffic_out 1233819521:1436335059:2274280364
02/05/2009 09:38:43 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.6/bin/rrdtool update /var/www/rra/cisco_871_5_silutes_40_klaipeda_cs_call_center_traffic_in_2458.rrd --template traffic_in:traffic_out 1233819521:3002746265:2107639477
02/05/2009 09:38:43 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.6/bin/rrdtool update /var/www/rra/cisco_871_5_silutes_40_klaipeda_cs_call_center_traffic_in_2457.rrd --template traffic_in:traffic_out 1233819521:1464732361:2314196498
02/05/2009 09:38:42 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.6/bin/rrdtool update /var/www/rra/barracuda_allowed_2276.rrd --template allowed:blocked:quarantined:tagged:viruses
anything ok too?

3. Check rrd file ownership
mon1:/var/www# ls -l /var/www/
...
drwxrwxrwx 2 cactiuser root 4096 2009-01-26 15:31 log
drwxrwxrwx 2 cactiuser root 237568 2009-02-02 16:50 rra
...
mon1:/var/www# ls -l /var/www/rra
...
-rw-r--r-- 1 cactiuser root 47840 2009-02-05 09:38 windows_2003_server_media_proc_1373.rrd
-rw-r--r-- 1 cactiuser root 111208 2009-02-05 09:42 windows_2003_server_media_traffic_in_1378.rrd
-rw-r--r-- 1 cactiuser root 47840 2009-02-05 09:42 windows_2003_server_media_users_1372.rrd
-rw-r--r-- 1 cactiuser root 47840 2009-02-05 09:41 windows_2003_server_merkys_cpu_1427.rrd
...
4. Check rrd file numbers
mon1:/var/www/rra# /usr/local/rrdtool-1.3.6/bin/rrdtool fetch cisco_2811_2_vpn_5min_cpu_43.rrd AVERAGE
5min_cpu
...
1233817500: 2.0000000000e+00
1233817800: 1.8100000000e+00
1233818100: 1.0000000000e+00
1233818400: 1.0000000000e+00
1233818700: 1.0000000000e+00
1233819000: 1.0000000000e+00
1233819300: 1.0000000000e+00
1233819600: 1.0000000000e+00
1233819900: nan
1233820200: nan
5. Check rrdtool graph statement

screenshot attached. DEF is ok

6. Cron
mon1:/etc/cron.d# tail cacti
*/5 * * * * root /usr/bin/php /var/www/poller.php>>/var/log/cacti/cacti.log 2>>/var/log/cacti/poller-error.log
Attachments
graph_debug_mode.JPG
graph_debug_mode.JPG (188.71 KiB) Viewed 4506 times
Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

Post by Pengu1n »

one more thing:

i checked how works rrdtool. i copied one rrd file to another directory and ran command
mon1:~/my# /usr/local/rrdtool-1.3.6/bin/rrdtool graph graph.png DEF:a="cisco_871_1_pramones_8a_klaipeda_5min_cpu_28.rrd":5min_cpu:AVERAGE AREA:a#FF0000FF:"CPU Usage" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"
i got nice .png file with graph.
then i looked into sourcecode of "http://CACTI/graphs.php?action=graph_edit&id=20" and tried to run from cli:
mon1:/var/www# php graph_image.php?action=edit&local_graph_id=2237&rra_id=1
[1] 6514
[2] 6515
what does it mean? and how can i try to create png file by cacti php scripts?

still waiting for some help.. :roll:
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The "fd" error message should be away when using latest rrd.php from SVN
Please verify
Reinhard
Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

Post by Pengu1n »

gandalf wrote:The "fd" error message should be away when using latest rrd.php from SVN
Please verify
Reinhard
i tried this version:
http://svn.cacti.net/viewvc/cacti/branc ... p?view=log

result this error:
Parse error: syntax error, unexpected '=', expecting ')' in /var/www/lib/rrd.php on line 68
User avatar
TheWitness
Developer
Posts: 17055
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Check the SVN again. A change was reverted from SVN about 30 minutes ago.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Pengu1n
Posts: 24
Joined: Fri Nov 30, 2007 2:07 am
Location: Lithuania, Vilnius
Contact:

Post by Pengu1n »

TheWitness wrote:Check the SVN again. A change was reverted from SVN about 30 minutes ago.

TheWitness
Thank you very much, i have all my graphs back :)

P.S. Is it problem with PHP4? May be i need upgrade to PHP5 ?
User avatar
TheWitness
Developer
Posts: 17055
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Pengu1n wrote:
TheWitness wrote:Check the SVN again. A change was reverted from SVN about 30 minutes ago.

TheWitness
Thank you very much, i have all my graphs back :)

P.S. Is it problem with PHP4? May be i need upgrade to PHP5 ?
If I had to vote, our next major release 0.8.8 will drop PHP5 support as PHP4 is so broken in many ways and the maturity of 5 is well established.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests