Hello,
I install cacti on centos 4, all working fine on localhost, cacti print graph and update them very well.
Now I add mikrotik template, add device with v1 smtp and save, then I read on cacti from snmp name, uptime and other, add graph by uptime and other but nothing cacti not print any graph.
I active log to DEBUG level but nothing it print this many times:
02/14/2007 12:50:41 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name) LIMIT 10000"
then I watch in Graph managament and cacti print it:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Base Station - Mikrotik - Uptime" \
--rigid \
--base=1000 \
--height=80 \
--width=512 \
--alt-autoscale \
--vertical-label="Timeticks" \
--slope-mode \
DEF:a="/var/www/cacti/rra/base_station_mikrotik_sysuptime_11.rrd":sysUptime:AVERAGE \
AREA:a#FFC73B:"Uptime" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/base_station_mikrotik_sysuptime_11.rrd': No such file or directory
and then I watch this in data source:
Data Source Debug
/usr/bin/rrdtool create \
/var/www/cacti/rra/base_station_mikrotik_sysuptime_11.rrd \
--step 300 \
DS:sysUptime:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
all print attach up are refer to uptime template…
I try all, please help me…
P.s. I try snmp by linux console and working fine:
snmpwalk -v1 -c public 192.168.51.53 sysuptime
SNMPv2-MIB::sysUpTime.0 = Timeticks: (744000) 2:04:00.00
Regards
Mat