Nan in RRD FILE - cmd.php works and not permissions issue

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
aitm908
Posts: 15
Joined: Fri Jan 16, 2009 9:50 am

Nan in RRD FILE - cmd.php works and not permissions issue

Post by aitm908 »

All,

Good afternoon. Created a script which does the following:

copies far end file into local /tmp/
opens up the file
parses the info and prints out the value

Setup:
CactiEZ version of Cacti is 0.8.7c
cmd.php poller every minute - PHP version 5.1.6
RRDTool version 1.2.23 - not sure how to check poller cache?


I. Perl script works file spitting out one value
[root@cacti rra]# /usr/bin/perl /var/www/html/scripts/nxt_scp.pl CD-GW1 0
6[root@cacti rra]#

II. running php -q cmd.php 2 486 is positive:
02/20/2009 01:09:25 PM - CMDPHP: Poller[0] Host[2] DS[486] CMD: /usr/bin/perl /var/www/html/scripts/nxt_scp.pl CD-GW1 0, output: 6

III. rrdtool fetch [filename] AVERAGE only has nan:
[root@cacti rra]# rrdtool fetch *CD* AVERAGE
........
1235067000: nan
1235067300: nan

IIII. Read and write permissions are the same on this file as others:
-rw-r--r-- 1 root apache 1541696 Feb 19 16:03 cd_out_486.rrd

V. Data Templates has Min and Max at 0 to 3000


Thanks, and please let me know what I am missing.

George
aitm908
Posts: 15
Joined: Fri Jan 16, 2009 9:50 am

CMD not running

Post by aitm908 »

Also, the poller does not work unless executed manually? When checking debug log do not see the CMD being executed:

[root@cacti rra]# cat ../log/cacti.log | grep 'Host\[2\]' | grep scp
02/20/2009 01:29:01 PM - CMDPHP: Poller[0] Host[2] DS[486] CMD: /usr/bin/perl /var/www/html/scripts/nxt_scp.pl CD-GW1 0, output: 6

Any reasons why? Have Data Input Methods setup, Data Templates, Graph Templates, Data Sources, Graph Management, and Devices graphing it. Thanks.

G
aitm908
Posts: 15
Joined: Fri Jan 16, 2009 9:50 am

CMD is being processed every 5 minutes - my mistake

Post by aitm908 »

Stand corrected, the poller is grabbing new data every 5 minutes:

[root@cacti rra]# cat ../log/cacti.log | grep 'Host\[2\]' | grep scp
02/20/2009 01:29:01 PM - CMDPHP: Poller[0] Host[2] DS[486] CMD: /usr/bin/perl /var/www/html/scripts/nxt_scp.pl CD-GW1 0, output: 6
02/20/2009 01:34:04 PM - CMDPHP: Poller[0] Host[2] DS[486] CMD: /usr/bin/perl /var/www/html/scripts/nxt_scp.pl CD-GW1 0, output: 6
02/20/2009 01:39:04 PM - CMDPHP: Poller[0] Host[2] DS[486] CMD: /usr/bin/perl /var/www/html/scripts/nxt_scp.pl CD-GW1 0, output: 6

So why wouldn't it be graphing? Note that I am graphing every minute. Thanks again.

G
aitm908
Posts: 15
Joined: Fri Jan 16, 2009 9:50 am

AND LOL.... rrdtool update is being sent out...

Post by aitm908 »

02/20/2009 01:29:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/rra/cd_out_486.rrd --template 1235154538:6

OK sorry but that is it for now.

George
aitm908
Posts: 15
Joined: Fri Jan 16, 2009 9:50 am

Data Input Methods - is Output Fields needed?!

Post by aitm908 »

Note that this field is left with no Output Fields setup. Is it needed? Instructions had ssaid that this is not used?

G
aitm908
Posts: 15
Joined: Fri Jan 16, 2009 9:50 am

OUTPUT FIELD NEEDED IN DATA INPUT METHODS!!!

Post by aitm908 »

OK so clearly I troubleshoot my own graph problem.

Under Data Input Methods had to setup the output value to cc. Thanks all!

Georgee the
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests