Latency on cacti 0.8.7b

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

Moderators: Developers, Moderators

Post Reply
hatiras
Posts: 25
Joined: Mon Oct 10, 2005 4:55 pm
Location: Mexico, Puebla

Latency on cacti 0.8.7b

Post by hatiras »

Hi Chief´s, i have a problem and a dude, i had installed cacti 0.8.6g with advanced ping v1_3 templete without problems 2 years ago, then on a new server i installed 0.8.7b with arch, thold, monitor and ntop, this is ready ok it works very good, but i need graph the latency on my hosts. well, i installed the same templete (advanced ping v1_3) on the new instalation, this draw the graph the first time but the second poll no, so i install other templete this appear like netowrk - ping but this templet dont work, just appear the img of the graph but dont draw...

this is the debug mode with advanced ping templete:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="AP Prueba - Advanced Ping" \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=10 \
--lower-limit=0 \
--units-exponent=1 \
--vertical-label="milliseconds" \
--slope-mode \
--font TITLE:10.5:C:/WINDOWS/Fonts/lucon.ttf \
--font AXIS:8: \
--font LEGEND:8:C:/WINDOWS/Fonts/lucon.ttf \
--font UNIT:8: \
DEF:a="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":min:AVERAGE \
DEF:b="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":avg:AVERAGE \
DEF:c="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":max:AVERAGE \
DEF:d="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":loss:AVERAGE \
DEF:e="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":dev:AVERAGE \
DEF:f="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":avg:MAX \
DEF:g="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":loss:MAX \
DEF:h="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":min:MAX \
DEF:i="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":max:MAX \
DEF:j="c\:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd":dev:MAX \
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:a:"" \
LINE1:b:"" \
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:g: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:"" \
GPRINT:a:AVERAGE:"Min\:%8.2lf ms" \
GPRINT:b:AVERAGE:"Avg\:%8.2lf ms" \
GPRINT:i:MAX:"Max\:%8.2lf ms" \
GPRINT:e:AVERAGE:"Dev\:%8.2lf ms\n" \
COMMENT:"Avg Latency\:" \
LINE1:b#00BD27FF:"
"
RRDTool Says:

OK

this is the debug mode with network- ping templete:

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="ExacuarioSM - Ping" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Round-Trip Time (ms)" \
--slope-mode \
--font TITLE:10.5:C:/WINDOWS/Fonts/lucon.ttf \
--font AXIS:8: \
--font LEGEND:8:C:/WINDOWS/Fonts/lucon.ttf \
--font UNIT:8: \
DEF:a="c\:/inetpub/wwwroot/cacti/rra/exacuariosm_pl_29.rrd":AV:AVERAGE \
DEF:b="c\:/inetpub/wwwroot/cacti/rra/exacuariosm_pl_29.rrd":PL:AVERAGE \
DEF:c="c\:/inetpub/wwwroot/cacti/rra/exacuariosm_pl_29.rrd":AV:MAX \
CDEF:cdefd=b,10,LE,NEGINF,UNKN,IF \
CDEF:cdeff=b,25,LE,b,10,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefh=b,50,LE,b,25,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefj=b,75,LE,b,50,GT,NEGINF,UNKN,IF,UNKN,IF \
CDEF:cdefba=b,100,LE,b,75,GT,NEGINF,UNKN,IF,UNKN,IF \
HRULE:500#AA0000FF:"" \
COMMENT:"% Packet Loss" \
AREA:a#0000AAFF:"Round-Trip Time in milliseconds\n" \
AREA:cdefd#6C9BCDFF:"0 - 10%":STACK \
GPRINT:a:LAST:" Now\:%8.2lf %s\n" \
AREA:cdeff#FFFF00FF:"11 - 25%":STACK \
GPRINT:a:AVERAGE:" Avg\:%8.2lf %s\n" \
AREA:cdefh#FFCC66FF:"26 - 50%":STACK \
GPRINT:c:MAX:" Max\:%8.2lf %s\n" \
AREA:cdefj#FF9900FF:"51 - 75%\n":STACK \
AREA:cdefba#FF0000FF:"76 - 100%\n":STACK
RRDTool Says:

OK



i installed fping and tping for advanced and network ping on c:\%systemroot\%system32... Please help me and thanks


NOTE: Excuse me for my english...
[b]___________________[/b]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Anything about these graphs in the logs ? Yopu may need to enable socket support in PHP
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
hatiras
Posts: 25
Joined: Mon Oct 10, 2005 4:55 pm
Location: Mexico, Puebla

.....

Post by hatiras »

Yes of course friend, i take a look again, this is ok in my php.ini:
C:\Documents and Settings\Administrador>php -m
[PHP Modules]
bcmath
calendar
com
ctype
ftp
mysql
odbc
overload
pcre
session
snmp
sockets
standard
tokenizer
wddx
xml
zlib


This is a mode debug of a cache Rebuild Poller Cache of my graph wiht advanced ping.

Data Source Debug

c:/rrdtool/rrdtool.exe create \
c:/inetpub/wwwroot/cacti/rra/ap_prueba_loss_24.rrd \
--step 60 \
DS:loss:GAUGE:120:0:100 \
DS:avg:GAUGE:120:0:500 \
DS:max:GAUGE:120:0:500 \
DS:dev:GAUGE:120:0:500 \
DS:min:GAUGE:120:0:500 \
RRA:AVERAGE:0.5:1:500 \
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:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

----This is my cacti log file:

01/15/2009 11:02:34 AM - SYSTEM STATS: Time:11.0146 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:5 RRDsProcessed:5
01/15/2009 11:02:23 AM - SYSTEM STATS: Time:1.0172 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:5 RRDsProcessed:3
01/15/2009 11:02:22 AM - SYSTEM STATS: Time:10.0130 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:5 RRDsProcessed:6
01/15/2009 11:02:12 AM - SYSTEM STATS: Time:10.0090 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:5 RRDsProcessed:5
01/15/2009 11:00:14 AM - WEBUI: Cacti Log Cleared from Web Management Interface


---This is my poller cache

AP Prueba - Advanced Ping Script Server: c:/inetpub/wwwroot/cacti/scripts/ss_fping.php ss_fping 100.100.1.30 25 ICMP
RRD: c:\inetpub\wwwroot\cacti\rra\ap_prueba_loss_24.rrd
AP Prueba - Traffic - 100.100.1.30 - 1 SNMP Version: 2, Community: Canopy, OID: .1.3.6.1.2.1.2.2.1.10.1
RRD: c:\inetpub\wwwroot\cacti\rra\ap_prueba_traffic_in_19.rrd
AP Prueba - Traffic - 100.100.1.30 - 1 SNMP Version: 2, Community: Canopy, OID: .1.3.6.1.2.1.2.2.1.16.1
RRD: c:\inetpub\wwwroot\cacti\rra\ap_prueba_traffic_in_19.rrd
ExacuarioSM - Advanced Ping Script Server: c:/inetpub/wwwroot/cacti/scripts/ss_fping.php ss_fping 100.100.1.31 20 ICMP
RRD: c:\inetpub\wwwroot\cacti\rra\exacuariosm_loss_27.rrd
ExacuarioSM - Ping Script Server: c:/inetpub/wwwroot/cacti/scripts/ss_tping.php ss_tping google.com
RRD: c:\inetpub\wwwroot\cacti\rra\exacuariosm_pl_29.rrd
ExacuarioSM - Traffic - 100.100.1.31 - 1 SNMP Version: 2, Community: Canopy, OID: .1.3.6.1.2.1.2.2.1.10.1
RRD: c:\inetpub\wwwroot\cacti\rra\exacuariosm_traffic_in_28.rrd
ExacuarioSM - Traffic - 100.100.1.31 - 1 SNMP Version: 2, Community: Canopy, OID: .1.3.6.1.2.1.2.2.1.16.1
RRD: c:\inetpub\wwwroot\cacti\rra\exacuariosm_traffic_in_28.rrd
Server Monitoreo 8.7b - Advanced Ping Script Server: c:/inetpub/wwwroot/cacti/scripts/ss_fping.php ss_fping 127.0.0.1 20 ICMP
RRD: c:\inetpub\wwwroot\cacti\rra\server_monitoreo_8_7b_loss_26.rrd
Server Monitoreo 8.7b - Logged in Users SNMP Version: 2, Community: JIS2005, OID: .1.3.6.1.2.1.25.1.5.0
RRD: c:\inetpub\wwwroot\cacti\rra\server_monitoreo_8_7b_users_25.rrd
Server Monitoreo 8.7b - Processes SNMP Version: 2, Community: JIS2005, OID: .1.3.6.1.2.1.25.1.6.0
RRD: c:\inetpub\wwwroot\cacti\rra\server_monitoreo_8_7b_proc_16.rrd
Server Monitoreo 8.7b - Traffic - 192.168.16.253/Intel(R) 82566D SNMP Version: 2, Community: JIS2005, OID: .1.3.6.1.2.1.2.2.1.10.65539
RRD: c:\inetpub\wwwroot\cacti\rra\server_monitoreo_8_7b_traffic_in_17.rrd
Server Monitoreo 8.7b - Traffic - 192.168.16.253/Intel(R) 82566D SNMP Version: 2, Community: JIS2005, OID: .1.3.6.1.2.1.2.2.1.16.65539
RRD: c:\inetpub\wwwroot\cacti\rra\server_monitoreo_8_7b_traffic_in_17.rrd
Server Monitoreo 8.7b - Used Space - Physical Memory Script Server: c:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php ss_host_disk 127.0.0.1 4 2:161:500:JIS2005:::MD5::DES: get total 6
RRD: c:\inetpub\wwwroot\cacti\rra\server_monitoreo_8_7b_hdd_used_18.rrd
Server Monitoreo 8.7b - Used Space - Physical Memory Script Server: c:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php ss_host_disk 127.0.0.1 4 2:161:500:JIS2005:::MD5::DES: get used 6
RRD: c:\inetpub\wwwroot\cacti\rra\server_monitoreo_8_7b_hdd_used_18.rrd

thanks and i stay keep...
[b]___________________[/b]
hatiras
Posts: 25
Joined: Mon Oct 10, 2005 4:55 pm
Location: Mexico, Puebla

Post by hatiras »

ahhhh and, i restart my box and draw just a poll one time my advanced ping, but the next times dont draw, this si always.......... all works fine and draw all less my advanced ping graphs. thanks
[b]___________________[/b]
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests