A few notes on where I am so far:
1. I am trying to graph firewall counters for 40 or so juniper routers. All IP and community string info has been verified correct.
2. In the device menu, all devices are seen as up and I am using SNMP only for 'downed host detection'.
3. I am successfully graphing stats on the localhost.
4. I have successfully loaded the Juniper templates from the post, http://forums.cacti.net/about4189.html, and made modifications as indicated at the bottom of this post.
5. Upon debugging graphs from the GUI, I get the infamous message indicating that rrdtool can not create files inthe rra directory. For now, I am running everything as root, yet still get the below ourput:
RRDTool Command:
/usr/local/rrdtool-1.2.15/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="bpr1.at - Packets" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Packets" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/bpr1_at_packets_22.rrd":Packets:AVERAGE \
AREA:a#00CF00FF:"N. of packets" \
GPRINT
GPRINT
GPRINT
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/bpr1_at_packets_22.rrd': No such file or directory
6. When running a query manually, I get the following:
/usr/bin/php -q /var/www/cacti/scripts/query_firewall_counters.php 172.17.249.48 <snmp string> 2 index
PHP Warning: Missing argument 9 for cacti_snmp_walk() in /var/www/cacti/lib/snmp.php on line 225
PHP Warning: Missing argument 10 for cacti_snmp_walk() in /var/www/cacti/lib/snmp.php on line 225
sh: /usr/bin/snmpbulkwalk-m: No such file or directory
Attached is the 'query_firewall_counters.php file I am using.
Can someone please assist?? I suspect something incompatible with snmp.php and the query script.
Thanks.....