Apan, Bps bps.

Fredrik Wänglund fredrik.wanglund at mobeon.com
Tue Apr 6 11:10:24 CEST 2004


Adding a line in the function snmpget, after the line;
    COUNTER=`echo $VALUE|awk '{print $NF}'`
Like this:
    COUNTER=`echo "$COUNTER*8"|bc`
Should do the job.

/FredrikW



Rune Zimmermann wrote:

> Hi Frederik.
> 
> Thanks for your reply!
> 
> Fredrik Wänglund said:
> 
>>This issue has been discussed before. You can always change the plugin
>>to multiply the value with 8. But will this give you the bandwith
>>utlization on the link?
> 
> 
> Natualy it will not be "better" nor will it be more acurate.
> It wil only make it easier for me to read and compare with other tools.
> 
> I have looked in the snmp.sh to find a way to manualy multiply the counter
> with 8, but I must admit, I do not no where and how to put it.
> Can anyone give me a clue?
> There is a >RETSTR="${RETSTR}${DSNAME}:${COUNTER}, "< in line 159 and I am
> guessing it is the counter variable I need to alter, but again... I do not
> know how :-)
> 
> 
>>Usually you read the OID's IF-MIB::ifOutOctets.<if> and
>>IF-MIB::ifInOctets.<if>. These counters counts all all valid bytes that
>>passes the interface (includning the data and all packet-headers down to
>>the ethernet-header).
>>The counters does not count possible start- stop- or parity-bits (I dont
>>know how these are treated in ethernet) and they may not count badly
>>damaged data.
>>Maybe someone with more ethernet knowledge have some clues?
> 
> 
> Anyone? :-)
> 
> Thanks.
> Rune Zimmermann
> 
> 
>>Rune Zimmermann wrote:
>>
>>
>>>Hi Users.
>>>
>>>This may not be the right forum, but I have noticed a lot of trafic here
>>>regarding Apan.
>>>I am running Nagios v. 1.2 compiled from source and Apan-0.3.0-sql on a
>>>Debian server.
>>>Among other things I have set Apan up making stats on some
>>>network-interfaces, but unfortunately for me it makes the RRD-grafs in
>>>Bps (bytes per sec.)  and not in bps which I would have preferred.
>>>How do I change that? I have looked in the apanconf.defs but found
>>>nothing. Is it defined in the CGI? how do I change them?
>>>
>>>Regards, and thanks for a great list!
>>>Rune Zimmermann
>>>DK
>>>
>>>
>>>-------------------------------------------------------
>>>This SF.Net email is sponsored by: IBM Linux Tutorials
>>>Free Linux tutorial presented by Daniel Robbins, President and CEO of
>>>GenToo technologies. Learn everything from fundamentals to system
>>>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>>>_______________________________________________
>>>Nagios-users mailing list
>>>Nagios-users at lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/nagios-users
>>>::: Please include Nagios version, plugin version (-v) and OS when
>>>reporting any issue. ::: Messages without supporting info will risk
>>>being sent to /dev/null
>>
>>
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list