Skip navigation
1 2 Previous Next 109109 Views 15 Replies Latest reply: May 6, 2012 6:38 PM by sanane enenand RSS
pTy Rank: White Belt 14 posts since
Nov 16, 2009
Currently Being Moderated

Nov 19, 2009 12:23 PM

fping do not graph... please help...

Hello all,

 

After long researches i don't understand why this template doesn't want to work.

 

Installation is good, i binded it to my test device, and no graph.

 

When i test the command in the data source template section, it works well (exemple : PING OK|xmt=3 rcv=3 loss=0 min=17.8 avg=21.3 max=23.7)

 

But still no graph.

 

It's the same problem than a precedent template "smokeping" (somebody knows where to find it ? It's not listed in the zenpack list) installed on the server before i began to use it, which is approximatively the same than fping. This template used to work before my upgrade from 2.1.x to 2.4.5. And since, there is no graph anymore. For old devices with previous data we can read the NAN value on the graph, and for new added device, there is no graph at all...

 

Please, someone give me a clue... I'm out of ideas...

  • artifact Rank: Green Belt 303 posts since
    Mar 11, 2008
    Currently Being Moderated
    1. Nov 19, 2009 12:41 PM (in response to pTy)
    Re: fping do not graph... please help...
    Are there any errors in your zencommand log?
  • barney34 Rank: White Belt 23 posts since
    Mar 4, 2009
    Currently Being Moderated
    2. Nov 19, 2009 1:46 PM (in response to pTy)
    Re: fping do not graph... please help...
    chown root:zenoss fping
    chmod +s fping
  • barney34 Rank: White Belt 23 posts since
    Mar 4, 2009
    Currently Being Moderated
    4. Nov 20, 2009 9:43 AM (in response to pTy)
    Re: fping do not graph... please help...

    so if you go int the /Device/Templates/b_fping/Data Source.  Test against device what do you get?  The device you test must be currently monitored.  Also the reason you have to run as root just like if you look at the binary ping its because the command opens sockets for the return echo reply and only root can do that.

     

    su - zenoss and rund the same command that you passed as root

  • barney34 Rank: White Belt 23 posts since
    Mar 4, 2009
    Currently Being Moderated
    7. Nov 20, 2009 9:49 AM (in response to pTy)
    Re: fping do not graph... please help...
    under the command template what does that look like and can you cut and past that and run it from su - zenoss?  Might be a path issue there
  • barney34 Rank: White Belt 23 posts since
    Mar 4, 2009
    Currently Being Moderated
    9. Nov 20, 2009 12:12 PM (in response to pTy)
    Re: fping do not graph... please help...

    here is all my notes from installing fping.  I am 100% not the author of the perl script or any of the tweeks.  Im meerly a follower in the world of zenoss.

     

    http://dag.wieers.com/rpm/packages/fping/

     

    chown root:zenoss convertfping.pl
    chmod +x convertfping.pl

     

    chown root:zenoss fping
    chmod +s fping

     

    /usr/local/sbin/convertfping.pl


    #!/usr/bin/perl

     

    # Convert fping output to Zenoss friendly format

     

    while (<>) {
      chomp;
      /\S+\s+:\s+xmt\/rcv\/%loss = (\d+)\/(\d+)\/(\d+)%$/ && &parseSummary("DOWN",$1,$2,$3);
      /\S+\s+:\s+xmt\/rcv\/%loss = (\d+)\/(\d+)\/(\d+)%,\s+min\/avg\/max\s+=\s+([0-9.]+)\/([0-9.]+)\/([0-9.]+)/
    && &parseSummary("UP",$1,$2,$3,$4,$5,$6);
    }

     

    sub parseSummary {
      my ($respType,$xmt,$rcv,$loss,$min,$avg,$max) = @_;
      print "PING $respType|xmt=$xmt rcv=$rcv loss=$loss min=$min avg=$avg max=$max\n";
    }

     

    /usr/sbin/fping -c 20 -sq ${dev/manageIp} 2>&1 | /usr/local/sbin/convertfping.pl

     

     

    Fixup stuff

     

    packet loss

     

    CDEF:LossAdj=Loss,UN,0,Loss,IF
    CDEF:loss0=LossAdj,0,GT,INF,UNKN,IF
    AREA:loss0#EEEEFF:0-10% Packet Loss
    CDEF:loss10=Loss,10,GE,INF,UNKN,IF
    AREA:loss10#CCCCCC:10-20% Packet Loss
    CDEF:loss20=Loss,20,GE,INF,UNKN,IF
    AREA:loss20#AAAAcc:20-30% Packet Loss
    CDEF:loss30=Loss,30,GE,INF,UNKN,IF
    AREA:loss30#9999cd:30-40% Packet Loss
    CDEF:loss40=Loss,40,GE,INF,UNKN,IF
    AREA:loss40#7777cc:40-50% Packet Loss
    CDEF:loss50=Loss,50,GE,INF,UNKN,IF
    AREA:loss50#6565bb:50-60% Packet Loss
    CDEF:loss60=Loss,60,GE,INF,UNKN,IF
    AREA:loss60#5858aa:60-70% Packet Loss
    CDEF:loss70=Loss,70,GE,INF,UNKN,IF
    AREA:loss70#444499:70-80% Packet Loss
    CDEF:loss80=Loss,80,GE,INF,UNKN,IF
    AREA:loss80#222277:80-90% Packet Loss
    CDEF:loss90=Loss,90,GE,INF,UNKN,IF
    AREA:loss90#000066:90-100% Packet Loss
    COMMENT:\n

     

    ping count graph custom definition to get right number count

     

    CDEF:pingloss=Pings_Sent-raw,Pings_Received-raw,-
    CDEF:pingtotal-fix=Pings_Sent-raw,60,/
    CDEF:rcvtotal-fix=Pings_Received-raw,60,/
    LINE1:pingloss#ff000099:Pings Lost  
    GPRINT:pingloss:LAST:cur\: %2.2lf
    GPRINT:pingloss:AVERAGE:avg\: %2.2lf
    GPRINT:pingloss:MAX:max\: %2.2lf\j
    VDEF:pingtotal=pingtotal-fix,TOTAL
    GPRINT:pingtotal:Total Sent      \:%10.0lf%s\j
    VDEF:rcvtotal=rcvtotal-fix,TOTAL
    GPRINT:rcvtotal:Total Received  \:%10.0lf%s

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    10. Nov 20, 2009 1:11 PM (in response to pTy)
    Re: fping do not graph... please help...
    I assume that your data points under your command based datasource are named exactly as the data is displayed?  They should be named as xmt, rcv, loss, min, avg and max (case sensitive).  If they are not then Zenoss will never collect the data from the script.
  • barney34 Rank: White Belt 23 posts since
    Mar 4, 2009
    Currently Being Moderated
    13. Dec 2, 2009 1:02 AM (in response to pTy)
    Re: fping do not graph... please help...
    did you figure this out?  do you have images without graph or just blanks?
1 2 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points