Hi Ashwin,
Thanks for the reply.
I think your additional instructions should be included in the 'INSTALL'
file that comes with Net-SNMP.
However, it's still not starting as a daemon. I tried adding a
soft-link to /etc/init.d/snmpd to /usr/local/sbin/snmpd and when I try
and execute /etc/init.d/snmpd start it returns the prompt and gives no
error but when running ps fax, I can see it's not running.
I also tried adding an snmpd file to /etc/default with the following
contents:
SNMPDRUN=yes
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'
And now in ps fax, I can see snmpd there, but it's still not responding.
I'm thinking it might have been easier to install the older version
through apt-get.
Thanks
Steve.
On 16/02/2011 1:46 PM, Ashwin Kumar wrote:
:-) Ok Steve,
If nothing works out make a fresh installation.
Follow these steps:
1. Log in as root (su - root)
2. Navigate to the home folder where the net-snmp tar.gz is kept
Issue this command at the prompt
tar -zxvf net-snmp-5.5.tar.gz
(I still happen to use v 5.5. Change this with your version)
3. Navigate to the un-tarred directory.
4. Run ./configure
5. make
6.make install
7. You now have netsnmp installed and ready to use.
Ha Ha .. not quite.. theres still a lot of stuff that needs to be done
before we can say...yup..thats working beautifully..
8. Navigate to /usr/local/bin to see if the folder has a bunch of snmp
stuff like *snmpconf snmptranslate* and so on...
9. Also see if the /usr/local/share/snmp/mibs folder and see if all
the MIB files are present..
10. If everything is fine until here try to some configurations
checking (else start-over).
Run,
net-snmp-config --default-mibdirs
and you must get the output
/root/.snmp/mibs:/usr/local/share/snmp/mibs
Run,
net-snmp-config --snmpconfpath
output should be like
/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp:/var/net-snmp
11. Run,
ldd /usr/local/bin/snmptranslate
output will be:
linux-gate.so.1 => (0x00110000)
libnetsnmpagent.so.15 => not found
libnetsnmphelpers.so.15 => not found
libnetsnmpmibs.so.15 => not found
libnetsnmp.so.15 => not found
This means that you might get snmp*: error while loading shared libraries:
like for example as mentioned above libnetsnmp.so.20: It cannot open
shared object file.
If no error comes like above , no need to do anything, but if error
comes, then, you have to do the steps below
Editld.so.conf in /etc and add the details of the lib path of
/usr/local/lib and then runldconfig
vi /etc/ld.so.conf
/usr/X11R6/lib/Xaw3d
/usr/X11R6/lib
/usr/lib/Xaw3d
/usr/i386-suse-linux/lib
/usr/local/lib
/opt/kde3/lib
include /etc/ld.so.conf.d/*.conf
(I happen to Use Suse a lot. But something is also very similar to Debian)
12. Run,
ldconfig
13. Now you have to tell netsnmp where to look for MIB files. You use
the snmpconf command to do this. Issue this command at the prompt.
snmpconf
This is what it will appear on your screen,
I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)
1: snmpd.conf
2: snmptrapd.conf
3: snmp.conf
Other options: quit
Select File: 3
The configuration information which can be put into snmp.conf is divided
into sections. Select a configuration section for snmp.conf
that you wish to create:
1: Debugging output options
2: Textual mib parsing
3: Output style options
4: Default Authentication Options
Other options: finished
Select section: finished
I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)
1: snmpd.conf
2: snmptrapd.conf
3: snmp.conf
Other options: quit
Select File: quit
The following files were created:
snmp.conf
These files should be moved to /usr/local/share/snmp if you
want them used by everyone on the system. In the future, if you add
the -i option to the command line I'll copy them there automatically
for you.
Or, if you want them for your personal use only, copy them to
/root/.snmp . In the future, if you add the -p option to the
command line I'll copy them there automatically for you.
14. Copy the snmp.conf file.
cp snmp.conf /usr/local/share/snmp/
15. Finally try this.
snmptranslate -Tp -IR ipMIB
You will observe a tree structure on your screen.
This means that everything that you have installed is working
So now the errors are not going to be there because of configuration..
whatever gets screwed up , its your responsibilty ;-) (a little joke)
Cheers,
On Wed, Feb 16, 2011 at 7:52 AM, Steve (Telsat Pacific)
<st...@telsat.vu> wrote:
Hi All,
Thanks for the replies.
I did try those commands, but there is no snmpd in init.d
I'm going to try that soft-linking that was suggested before; I'll
let you know the results.
It's strange that the install didn't create a softlink or if a
softlink is supposed to be created manually that it was missing
from the install documentation.
Thanks
Steve.
On 16/02/2011 12:59 PM, Ashwin Kumar wrote:
Hello,
Everything seems to be fine in your installation. You set-up
snmpd.conf file and
you re-started the server? I think you must start/re-start the
snmpd daemon.
Only then snmp commands work. :-)
On terminal, issue:
*/etc/init.d/snmpd start* or *service snmpd start*
or
*/etc/init.d/snmpd restart* or *service snmpd restart*
I guess you missed this. Please check.
Cheers,
On Wed, Feb 16, 2011 at 4:12 AM, Steve (Telsat Pacific)
<st...@telsat.vu> <mailto:st...@telsat.vu> wrote:
Hi All,
I've recently downloaded v5.6.1 and made then installed it on the
server. After setting up an snmpd.conf and re-booting the
server, I
don't see the daemon running and I can't get snmp queries
through.
Is there something I've missed in the configuration? I'm
running debian
5 net install and wanted to use the latest net-snmp available.
Thanks
Steve.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R)
Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the
development cycle.
Locate bottlenecks in serial and parallel code that limit
performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
<mailto:Net-snmp-users@lists.sourceforge.net>
Please see the following page to unsubscribe or change other
options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
-- Ashwin Kumar
+91-974-054-7793
--
-- Ashwin Kumar
+91-974-054-7793
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users