Re: Can't start net-snmp

Josef Moellers <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Changes ever so often!
Message-ID <[email protected]>
dan hennessey wrote:
> David,
> 
> The "service" command is Redhat specific, check "man chkconfig".
> 
> In order for the "service snmpd start" command to work, you need to have
> registered the snmpd init script by using "chkconfig --add". I don't
> think that building net-snmp from source provides you with such an init
> script but you can get one from the "official" Redhat net-snmp RPM
> package if needed. If you need any help with that let me know.

Not quite.

"service" scans /etc/init.d for the given service name. In essence:
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
...
else
    echo $"${SERVICE}: unrecognized service" >&2
    exit 1
fi

chkconfig (or the newer insserv) create appropriate symbolc links from 
the relevant /etc/rc.d/rc<n>.d directory to /etc/init.d/<service>, so 
that the service is started at the proper time when the system enters a 
new runlevel next time.

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?

Josef

>>Hi folks,
>>
>> 
>>
>>I’ve managed to install net-snmp successfully on RHEL4. I ran the
>>snmpconf program and created my snmpd.conf file. But when I type
>>“service snmpd start” I get the error…
>>
>> 
>>
>>snmpd: unrecognised service
>>
>> 
>>
>>thanks
>>
>> 
>>
>>David Hodgson
>>
>> 
>>
>>
>>
>> 
>>
>>Buchan House 
>>Carnegie Campus 
>>
>>Dunfermline 
>>
>>Fife
>>
>>KY11 8PL
>>
>> 
>>
>>Direct: +44 (0) 1383 748050
>>
>>Mobile: +44 (0) 774 500 7888
>>
>>Switchboard: +44 (0) 1383 748000
>>
>>Fax: +44 (0) 1383 748001
>>
>>Website: www.vianet.co.uk
>>
>> 
>>
>>
>>-------------------------------------------------------------------------
>>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
> 
> 
> ************************************************************************
> DISCLAIMER
> The information contained in this e-mail is confidential and is intended
> for the recipient only.
> If you have received it in error, please notify us immediately by reply 
> e-mail and then delete it from your system. Please do not copy it or
> use it for any other purposes, or disclose the content of the e-mail
> to any other person or store or copy the information in any medium. 
> The views contained in this e-mail are those of the author and not 
> necessarily those of Admenta UK Group.
> ************************************************************************
> 
> -------------------------------------------------------------------------
> 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


-- 
Josef Möllers (Pinguinpfleger bei FSC)
	If failure had no penalty success would not be a prize
						-- T.  Pratchett

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