[mrtg] Re: hrSystemUptime

Antoine Jacoutot ajacoutot at lphp.org
Wed Feb 19 00:21:53 MET 2003


On Tuesday 18 February 2003 22:05, McDonald, Dan wrote:
> In an mrtg config file do something like:
> loadmibs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.my

Thanks, but all I can find under /usr/local/share/snmp/mibs/ (I run 
FreeBSD-4.7) and that maches the most HOST-RESOURCES-MIB.my is 
HOST-RESOURCES-MIB.txt.
Is it the same ?
Anyway, I'll try.

> target[uptime]: hrSystemUptime.0&hrSystemUptime.0:public at localhost:::::2
> and all of the other entries that you need for a good looking entry...

Unfortunately, I can't get it working...
Here is a part of my mrtg.cfg:

loadmibs: /usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt
Target[uptime]: hrSystemUptime.0&hrSystemUptime.0:public at localhost:::::2
Suppress[uptime]: d
Options[uptime]: gauge,noinfo, nopercent, growright, nobanner, noi
Title[uptime]: Uptime
MaxBytes[uptime]: 1000000
YLegend[uptime]: jours

And the error I get:
WARNING: Expected a number but got '12 days, 9:04:32'
WARNING: Expected a number but got '12 days, 9:04:32'
ERROR: Target[uptime][_IN_] ' $$target[1]{$mode} ' did not eval into defined 
data
ERROR: Target[uptime][_OUT_] ' $$target[1]{$mode} ' did not eval into defined 
data
WARNING: Skipping Update of uptime, inlast is not defined
WARNING: Skipping Update of uptime, outlast is not defined

Thanks a lot for helping...

Antoine

--
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