Custom script oddness

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

Moderators: Developers, Moderators

Post Reply
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

Custom script oddness

Post by Findarato »

When I run my script from the command line it outputs the correct data, and when I look at the log files I get

Code: Select all

03/24/2010 04:30:14 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users N:452:263:78:185
03/24/2010 04:35:47 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269466545:452:263:78:185
03/24/2010 04:40:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269466815:452:263:78:185
03/24/2010 04:46:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269467160:452:263:78:185
03/24/2010 04:50:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269467412:452:263:78:185
03/24/2010 04:55:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269467716:452:263:78:185
03/24/2010 05:00:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269468012:452:263:78:185
03/24/2010 05:05:20 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269468318:452:263:78:185
03/24/2010 05:10:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /www/cacti/rra/WWW_non_staff_users_1036.rrd --template total_users:valid_users:staff_users:non_staff_users 1269468610:452:263:78:185
the output from the command line looks like

Code: Select all

total:452 valid:263 staff:78 nonstaff:185
but all I get in the RRD's is

Code: Select all

1269466500: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1269466800: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1269467100: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1269467400: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1269467700: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1269468000: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1269468300: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
I have deleted them a few times and they get recreated, the permissions on them are set correctly as well. The files are counters min value of 0 and max of 1000000. I am not sure what is going on and why I always get 0's in the RRDs please help :)
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

just giving more information

Post by Findarato »

This is how the rrd is being created

Code: Select all

POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /www/cacti/rra/www_non_staff_users_1036.rrd   --step 300   DS:non_staff_users:COUNTER:600:0:10000000000000000000  DS:valid_users:COUNTER:600:0:100000000000000  DS:staff_users:COUNTER:600:0:10000000000000000000  DS:total_users:COUNTER:600:0:1000000000000  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:4100  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:500  RRA:MIN:0.5:1:4100  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:4100  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:4100  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797  


[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

still nothing

Post by Findarato »

I went as far as recreating the data source and graph

--template total:valid:staff:nonstaff 1269529216:452:263:78:185

its passing the correct values to the rrd but the rrd when dumped still shows nothing but 0's

/usr/bin/rrdtool create \
/www/cacti/rra/www_lapcat_org_staff_1040.rrd \
--step 300 \
DS:total:COUNTER:600:0:100000 \
DS:nonstaff:COUNTER:600:0:100000 \
DS:valid:COUNTER:600:0:100000 \
DS:staff:COUNTER:600:0:100 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:4100 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:500 \
RRA:MIN:0.5:1:4100 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:4100 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:4100 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

Post by Findarato »

disregard, I figured it out
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests