[mrtg] Graphing sysUptime and other timeticks variables

Alistair.McGlinchy at marks-and-spencer.com Alistair.McGlinchy at marks-and-spencer.com
Thu Jun 6 22:48:57 MEST 2002


Hi All,

I've searched the archives pretty heavily and I can't find the answer to
what I thought would be a simple problem. Can anyone tell me how to draw a
graph of sysUpTime or any other timeticks value. I want to be able to
compute MTBF values and this seams a great way to do it.

I'm using the following target to get SysUptime and last OS Upgrade time of
a Proteon router 
	Target[Proteon_BSB008_UpTime]:
1.3.6.1.2.1.1.3.0&1.3.6.1.4.1.1.1.2.1.0:public at 1.2.3.4

But I get the following 
	WARNING: Expected a number but got '101 days, 9:26:49'

Tracing the collection I see that the returned frame does not contain this
text string. The frame contains the number of 100ths of a second since last
reboot. So I had presumed that MRTG itself was converting the number into
the pretty text string. What I cannot work out is how to specify the correct
Target string to force MRTG not to do the conversion. I know I can write my
own external script to do this for me, but is this really the only way?


[Here's the return frame as seen by Ethereal]
Frame 2 (163 on wire, 163 captured)
<SNIP>
User Datagram Protocol, Src Port: 161 (161), Dst Port: 1590 (1590)
Simple Network Management Protocol
    Version: 1
    Community: public
    PDU type: RESPONSE
    Request Id: 0x49be1c07
    Error Status: NO ERROR
    Error Index: 0
    Object identifier 1: 1.3.6.1.4.1.1.6.1.1.1.4.0
    Value: INTEGER: 186276 (0x2d7a4)
    Object identifier 2: 1.3.6.1.4.1.1.6.1.1.1.5.0
    Value: INTEGER: 47448 (0xb958)
    Object identifier 3: 1.3.6.1.2.1.1.3.0
    Value: TIMETICKS: 876388571 (0x343ca0db)
    Object identifier 4: 1.3.6.1.2.1.1.5.0
    Value: OCTET STRING: RTR BSB008

Any ideas gratefully appreciated.

Alistair
> ----------------------------------------------------------------------
> Alistair McGlinchy,           alistair.mcglinchy at marks-and-spencer.com
> Sizing and Performance, Central IT,   ext. 5012,   ph +44 20 7268-5012
> Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK 
> 


-----------------------------------------------------------------------


Registered Office:
Marks & Spencer p.l.c
Michael House, Baker Street,
London, W1U 8EP
Registered No. 214436 in England and Wales.

Telephone (020) 7935 4422 
Facsimile (020) 7487 2670

www.marksandspencer.com

Please note that electronic mail may be monitored.

This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful.

The registered office of Marks and Spencer Financial Services Limited, Marks and Spencer Unit Trust Management Limited, Marks and Spencer Life Assurance Limited and Marks and Spencer Savings and Investments Limited is Kings Meadow, Chester, CH99 9FB.

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list