RE: Installing net-snmp agent on RHEL4

"David Hodgson" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Daniel,

 

Firstly thanks for your help.

 

I've changed the following in the root path "/root/.bash_profile"

 

PATH=$PATH:$HOME/bin

To

PATH=$PATH:$HOME/bin:/usr/local/sbin

 

I've then rebooted the machine

I then ran "/sbin/service snmpd start"

And got the same error "snmpd: service unrecognised"

 

Within the directory /usr/local/sbin there are no files

 

Here's the output from "make test"

 

[root@testpc6 net-snmp-5.3.1]# make test

making all in /root/Desktop/net-snmp-5.3.1/snmplib

make[1]: Entering directory `/root/Desktop/net-snmp-5.3.1/snmplib'

make[1]: Leaving directory `/root/Desktop/net-snmp-5.3.1/snmplib'

making all in /root/Desktop/net-snmp-5.3.1/agent

make[1]: Entering directory `/root/Desktop/net-snmp-5.3.1/agent'

making all in /root/Desktop/net-snmp-5.3.1/agent/helpers

make[2]: Entering directory `/root/Desktop/net-snmp-5.3.1/agent/helpers'

make[2]: Leaving directory `/root/Desktop/net-snmp-5.3.1/agent/helpers'

making all in /root/Desktop/net-snmp-5.3.1/agent/mibgroup

make[2]: Entering directory
`/root/Desktop/net-snmp-5.3.1/agent/mibgroup'

make[2]: Leaving directory `/root/Desktop/net-snmp-5.3.1/agent/mibgroup'

/bin/sh ../libtool  --mode=link gcc -g -O2 -Dlinux -I/usr/include/rpm
-o snmpd snmpd.lo  libnetsnmpmibs.la libnetsnmpagent.la
helpers/libnetsnmphelpers.la  ../snmplib/libnetsnmp.la -ldl -lrpm
-lrpmio -lpopt  -lz -lcrypto -lm

libtool: link: cannot find the library `/usr/lib/libbeecrypt.la'
(librpmio.la: /usr/lib/libbeecrypt.la)

make[1]: *** [snmpd] Error 1

make[1]: Leaving directory `/root/Desktop/net-snmp-5.3.1/agent'

make: *** [subdirs] Error 1

[root@testpc6 net-snmp-5.3.1]#

 

Thanks

Dave

________________________________

From: Daniel Lacey [mailto:[email protected]] 
Sent: 19 October 2006 21:49
To: David Hodgson
Subject: Re: Installing net-snmp agent on RHEL4

 

David,

snmpd is part of net-snmp. It will be installed during "make install".

You should also perform a "make test", before the "make install". You
can of course run this at anytime after "make".
Do this now to make sure all tests pass.

Make sure /usr/local/sbin is in your shell PATH variable. This is where
snmpd will be. 
Service(1) is in "/sbin", and is not in the root path by default.
So, "/sbin/service snmpd start" should work.

go to www.net-snmp.org and read all the documentation!

Enjoy!

David Hodgson wrote: 

Hi folks,

 

I'm a total newbie with linux, my background is with Microsoft so yes I
can play a great game of patience :-).

 

I'm having trouble with installing net-snmp agent onto my RedHat
Enterprise Linux 4 server.

 

Here's what I've done...

 

Installed RHEL4 with defaults

Copied "net-snmp-5.3.1.tar.gz" onto the "Desktop" of "Root"

Tar -zxvf net-snmp-5.3.1.tar.gz

./configure

Make

make install (as root)

 

now when I try to configure the agent by typing "snmpconf" I get "bash:
snmpconf: command not found"

If I try to run "service snmpd start" I get "snmpd: unrecognised
service"

If I do "ps -ef | grep snmp" nothing is returned

In the services window within the gnome gui there is no snmpd service

 

I think snmpd isn't installed on the box. 

Does net-snmp rely on snmpd? 

If the answer is yes then how do I install snmpd?

 

I have searched the web for the answer to this for a while now, you
folks are my last hope.

 

Thanks a lot. 

 

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 <http://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

-------------------------------------------------------------------------
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
image001.jpg (image/jpeg, 1.4 KB) - not displayed
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.