Machine statistics -Solved
Derrick Ryalls
ryallsd at datasphereweb.com
Tue May 27 16:32:35 PDT 2003
>
> put this minimal snmpd.conf in /usr/local/share/snmpd.conf:
>
> *******************************
> syslocation your localtion
> syscontact you at yourdomain.tld
> sysname your.system.name.tld
> rwcommunity password
> rocommunity otherpassword
> agentaddress udp:161 at 127.0.0.1,tcp:161 at 127.0.0.1
It worked with agentaddress 127.0.0.1 and putting the file in the
correct place. Thanks.
>
> # trap configuration
> authtrapenable 1
> trapcommunity otherotherpassword
> trapsink localhost
> trap2sink localhost
> *******************************
>
> then restart snmpd. try the following command:
>
> snmpget localhost otherpassword .1.3.6.1.2.1.25.1.5.0
>
> you should get:
>
> host.hrSystem.hrSystemNumUsers.0 = Gauge32: 2
>
> now run:
>
> cfgmaker otherpassword at localhost >> /usr/local/etc/mrtg/mrtg.cfg
>
> and
>
> indexmaker --title "MRTG at yourhost" --output
> /usr/local/www/data/mrtg/index.html /usr/local/etc/mrtg/mrtg.cfg
>
> then run "mrtg /usr/local/etc/mrtg/mrtg.cfg" three times,
> after the last run there should be no warnings.
>
> hopefully you have apache installed, then direct your browser
> to http://yourhost/mrtg/
>
> i would also recommend reading the excellent "Essential SNMP".
> (http://www.oreilly.com/catalog/esnmp/)
>
> hth,
> toni
> --
> Behandle die Menschen, als wären sie, was sie sein | toni at
> stderror dot at sollten, und du wirst ihnen helfen, zu
> werden, was | Toni Schmidbauer
> sie sein können. - Johann Wolfgang von Goethe |
>
More information about the freebsd-questions
mailing list