Re: Can't start net-snmp

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 27/10/06, Josef Moellers <[email protected]> wrote:
> "service" scans /etc/init.d for the given service name....
> So, either /etc/init.d/snmpd does not exist or it is not executable.
>
> Question to David: did you install RedHat's net-snmp-* rpm or did you
> build from scratch?

David Hodgson wrote:
> I downloaded the source files from net-snmp.org and installed them.

That would explain things, then.
An installation from the main Net-SNMP source tarball wouldn't tend to
include O/S-specific mechanisms for starting the agent.  So no - there
is no /etc/init.d/snmpd script installed by default.

David,
   your best options are probably to either:

    - use the RedHat-provided RPM (which will be configured for use
        in a RedHat environment, but may not be the most recent version)
    - use a project-supplied RPM (if available) - which ought to be reasonably
        tailored to a RedHat environment (though probably not as fully as
        the RedHat-provided binaries)
    - use the file 'dist/net-snmp.spec' to build the project into an RPM of
        your own.  This *should* include the necessary /etc/init.d/snmpd script.

For this third option, copy the 'net-snmp.spec' file to /etc/src/redhat/SPECS,
copy the tarball to /etc/src/redhat/SOURCES, and run the command

    rpmbuild -bb /etc/src/redhat/SPECS/net-snmp.spec

With a little bit of luck, that should give you a fully-working RPM.
But the simplest approach would be to use RedHat-supplied RPMs,
as Josef suggested.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.