Re: a problem about net-snmp 5-4

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 26/12/06, Clement Hsu <[email protected]> wrote:
> Thanks, and the full text of the file is as follow:
>
> !/bin/bash
> # ucd-snmp init file for snmpd
    [snip]
> OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a"

So that is where the OPTIONS variable is set.
If you need to change the startup options,
you should change things here,



> I don't really the exact meaning of /usr/sbin/snmpd $OPTIONS;

This tells the system to start the SNMP agent using the command
line options listed earlier.
i.e.
    /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a

The most important thing here is that it's running /usr/sbin/snmpd
(which is the vendor-supplied agent) rather than /usr/local/sbin/snmpd
(the version you have compiled).

Try running /etc/init.d/snmpd stop,
then edit this file and change the daemon line to read

    daemon /usr/local/sbin/snmpd $OPTIONS

and the kill line to read

    kill /usr/local/sbin/snmpd

Then run /etc/init.d/snmpd start

Can you see the HostRes information now?

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.