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
Nan in RRD FILE - cmd.php works and not permissions issue
Moderators: Developers, Moderators
CMD not running
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
[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
CMD is being processed every 5 minutes - my mistake
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
[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
AND LOL.... rrdtool update is being sent out...
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
OK sorry but that is it for now.
George
Data Input Methods - is Output Fields needed?!
Note that this field is left with no Output Fields setup. Is it needed? Instructions had ssaid that this is not used?
G
G
OUTPUT FIELD NEEDED IN DATA INPUT METHODS!!!
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
Under Data Input Methods had to setup the output value to cc. Thanks all!
Georgee the
Who is online
Users browsing this forum: No registered users and 0 guests