Hi all,
I am totally new to linux, and I am trying to set cacti under ubuntu…
I followed this guide http://www.goldfisch.at/knowwiki/howtos/cacti
After I login to cacti I can get graphs from my local host and Cisco 876.
BUT when I am trying to create a graph with Unix - Ping Host I get empty graphs (with –nan, even if the status of the machine I try to monitor is up)…what am I doing wrong?
Could anybody give me an installation guide that he/she is sure that it works…
Thank you all
I am sending you some debug
#my machine responts to ICMP
Ping Results
ICMP Ping Success (25.234 ms)
#This is the debug of ping latency that i get an empty graph…you can see that RRDTool says OK
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Squid WAN - Ping Latency' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='milliseconds' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/squid_wan_ping_11.rrd":ping:AVERAGE \
AREA:a#FFF200FF:"" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
#Here is the debug of the same machine…with advanced ping…that works
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Squid WAN - Advanced Ping' \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit='10' \
--lower-limit='0' \
--units-exponent='1' \
--vertical-label='milliseconds' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/squid_wan_loss_12.rrd":min:AVERAGE \
DEF:b="/var/lib/cacti/rra/squid_wan_loss_12.rrd":avg:AVERAGE \
DEF:c="/var/lib/cacti/rra/squid_wan_loss_12.rrd":max:AVERAGE \
DEF:d="/var/lib/cacti/rra/squid_wan_loss_12.rrd":loss:AVERAGE \
DEF:e="/var/lib/cacti/rra/squid_wan_loss_12.rrd":dev:AVERAGE \
CDEF:cdefg=d,0,GT,d,2,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefh=d,3,GT,d,5,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefi=d,5,GT,d,10,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefj=d,10,GT,d,15,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefba=d,15,GT,d,50,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefbb=d,50,GT,d,95,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefbc=d,95,GT,d,100,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefbd=d,UN,1,EQ,TIME,300,+,NOW,GT,UNKN,INF,IF,d,95,GT,INF,UNKN,IF,IF \
CDEF:cdefbf=e,2,/ \
CDEF:cdefbh=c,b,-,e,-,3,/ \
CDEF:cdefcd=d,0,GT,d,2,GT,UNKN,b,IF,UNKN,IF \
CDEF:cdefce=d,3,GT,d,5,GT,UNKN,b,IF,UNKN,IF \
CDEF:cdefcf=d,5,GT,d,10,GT,UNKN,b,IF,UNKN,IF \
CDEF:cdefcg=d,10,GT,d,15,GT,UNKN,b,IF,UNKN,IF \
CDEF:cdefch=d,15,GT,d,50,GT,b,INF,IF,UNKN,IF \
CDEF:cdefci=d,50,GT,d,95,GT,UNKN,b,IF,UNKN,IF \
CDEF:cdefcj=d,95,GT,d,100,GT,UNKN,b,IF,UNKN,IF \
LINE1"" \
LINE1"" \
LINE1:c:"" \
LINE1:d:"" \
LINE1:e:"" \
COMMENT:" Pkt Loss\:" \
AREA:cdefg#AFECEDFF:"1-2%" \
AREA:cdefh#55D6D3FF:"3-5%" \
AREA:cdefi#7CB3F1FF:"6-10%" \
AREA:cdefj#4668E4FF:"11-15%" \
AREA:cdefba#A150AAFF:"16-50%" \
AREA:cdefbb#FF00FFFF:"51-95%" \
AREA:cdefbc#F51D30FF:"96-100%" \
COMMENT:"Unknown\n" \
AREA:b#FFFFFFFF:"" \
AREA:cdefbf#333333FF:"":STACK \
AREA:cdefbf#555555FF:"":STACK \
AREA:cdefbh#888888FF:"":STACK \
AREA:cdefbh#AAAAAAFF:"":STACK \
AREA:cdefbh#CCCCCCFF:"":STACK \
GPRINT:d:AVERAGE:" Avg Loss\:%6.2lf%%" \
GPRINT:d:MAX:"Max Loss\:%6.2lf%%\n" \
COMMENT:" Latency\:" \
AREA:cdefcd#AFECEDFF:"" \
AREA:cdefce#55D6D3FF:"" \
AREA:cdefcf#7CB3F1FF:"" \
AREA:cdefcg#4668E4FF:"" \
AREA:cdefch#A150AAFF:"" \
AREA:cdefci#FF00FFFF:"" \
AREA:cdefcj#F51D30FF:"" \
GPRINTAVERAGE:"Min\:%8.2lf ms" \
GPRINTAVERAGE:"Avg\:%8.2lf ms" \
GPRINT:c:MAX:"Max\:%8.2lf ms" \
GPRINT:e:AVERAGE:"Dev\:%8.2lf ms\n" \
COMMENT:"Avg Latency\:" \
LINE1:b#00BD27FF:"
"
RRDTool Says:
OK
Unix - Ping Host graph -nan
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Unix - Ping Host graph -nan
Please see 2nd link of my sig as a start
R.
R.
-
- Posts: 2
- Joined: Wed Apr 06, 2011 6:35 am
Re: Unix - Ping Host graph -nan
hi G
this is my cron config
cat /etc/cron.d/cacti
MAILTO=root
*/5 * * * * root php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
and these are some lines from -rw-r----- 1 www-data www-data 88573 2011-04-12 06:35 cacti.log
drwxr-xr-x 2 www-data www-data 4096 2011-04-06 05:30 .
drwxr-xr-x 18 root root 4096 2011-04-12 06:21 ..
-rw-r----- 1 www-data www-data 88573 2011-04-12 06:35 cacti.log
-rw-r--r-- 1 www-data www-data 0 2011-04-12 06:35 poller-error.log
-rw-r----- 1 www-data www-data 0 2011-04-06 05:27 rrd.log
(poller-error.log this is empty)
04/12/2011 06:15:02 AM - SYSTEM STATS: Time:1.1405 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:20:02 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:20:03 AM - SYSTEM STATS: Time:1.1244 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:25:02 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:25:04 AM - SYSTEM STATS: Time:3.1492 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:30:02 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:30:05 AM - SYSTEM STATS: Time:3.1391 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:35:01 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:35:03 AM - SYSTEM STATS: Time:2.1246 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
Is there a quide for newbies to install cacti in new machine???
thanx
this is my cron config
cat /etc/cron.d/cacti
MAILTO=root
*/5 * * * * root php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
and these are some lines from -rw-r----- 1 www-data www-data 88573 2011-04-12 06:35 cacti.log
drwxr-xr-x 2 www-data www-data 4096 2011-04-06 05:30 .
drwxr-xr-x 18 root root 4096 2011-04-12 06:21 ..
-rw-r----- 1 www-data www-data 88573 2011-04-12 06:35 cacti.log
-rw-r--r-- 1 www-data www-data 0 2011-04-12 06:35 poller-error.log
-rw-r----- 1 www-data www-data 0 2011-04-06 05:27 rrd.log
(poller-error.log this is empty)
04/12/2011 06:15:02 AM - SYSTEM STATS: Time:1.1405 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:20:02 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:20:03 AM - SYSTEM STATS: Time:1.1244 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:25:02 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:25:04 AM - SYSTEM STATS: Time:3.1492 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:30:02 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:30:05 AM - SYSTEM STATS: Time:3.1391 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
04/12/2011 06:35:01 AM - CMDPHP: Poller[0] Host[3] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/12/2011 06:35:03 AM - SYSTEM STATS: Time:2.1246 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:9
Is there a quide for newbies to install cacti in new machine???
thanx
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Unix - Ping Host graph -nan
Depends on how "newbie" you are. Installation is explained at 1st link of my sig
R.
R.
Who is online
Users browsing this forum: No registered users and 1 guest