Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-08-2011, 05:42 PM
|
#1
|
Member
Registered: Mar 2003
Location: Greenville, NC
Distribution: Fedora core 4
Posts: 31
Rep:
|
snmptrapd not found
Hey guys I just installed FC14 64 bit system and I am looking to setup a snmp trap server so I can send up/down traps from my router to it which in turn will email me though sendmail. I have installed "net-snmp-utils-5.5-21.fc14.x86_64" and "net-snmp-libs-5.5-21.fc14.x86_64" packages and have downloaded snmptt_1.3 but I don't have the command "snmptrapd". Is there another package I need for this? Could it just be x64 doesn't support it? Thanks.
Here is some info off the box.
[root@scanserver ~]# uname -a
Linux scanserver 2.6.35.11-83.fc14.x86_64 #1 SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@scanserver init.d]# !rpm
rpm -qa | grep snmp
net-snmp-utils-5.5-21.fc14.x86_64
net-snmp-libs-5.5-21.fc14.x86_64
[root@scanserver init.d]# snmptrapd
bash: snmptrapd: command not found...
Similar command is: 'snmptrap'
[root@scanserver ~]# snmp
snmpbulkget snmpdelta snmpget snmpinform snmpset snmptable snmptranslate snmpusm snmpwalk
snmpbulkwalk snmpdf snmpgetnext snmpnetstat snmpstatus snmptest snmptrap snmpvacm
|
|
|
04-09-2011, 03:20 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
When you have the package net-snmp installed : /usr/sbin/snmptrapd
With 'su' you don't have /sbin/, /usr/sbin/ in the PATH
Then the command is not snmptrapd, but /usr/sbin/snmptrapd
If you want /sbin/, /usr/sbin/ in the PATH, do 'su -' ( su <space> <hyphen> )
..
|
|
|
04-09-2011, 09:52 PM
|
#3
|
Member
Registered: Mar 2003
Location: Greenville, NC
Distribution: Fedora core 4
Posts: 31
Original Poster
Rep:
|
Thanks for the tip knudfl I didn't know about that. I have always used the "su -" to login as root. I have pasted my printenv. I also checked the /usr/sbin for snmptrapd but its not there. I also ran a updatedb command and a locate command on the box but I still didn't find it. I attached all the locate command found which is libnetsnmptrapd.so.20.0.0. Could this be it on a 64 bit machine? I can make an alias if anyone thinks so. I will try to finish the snmptt install on Monday and let you guys know what I find. If it doesn't work I guess I will go back to 32 bit system.
[root@scanserver ~]# /usr/sbin/snmptrapd
-bash: /usr/sbin/snmptrapd: No such file or directory
[root@scanserver ~]#cd /usr/sbin
[root@scanserver sbin]# ./snmptrapd
-bash: ./snmptrapd: No such file or directory
[root@scanserver sbin]#
[root@scanserver sbin]# pwd
/usr/sbin
[root@scanserver sbin]# ls | grep snmp
arpsnmp
[root@scanserver sbin]#
[root@scanserver sbin]# printenv
HOSTNAME=scanserver
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
USER=root
LS_COLORS=*CLIP*
MAIL=/var/spool/mail/root
PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
PWD=/usr/sbin
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HISTCONTROL=ignoredups
SHLVL=1
HOME=/root
LOGNAME=root
QTLIB=/usr/lib64/qt-3.3/lib
LESSOPEN=||/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/usr/bin/printenv
OLDPWD=/etc
[root@scanserver sbin]# updatedb
[root@scanserver sbin]#
[root@scanserver sbin]#
[root@scanserver sbin]# locate snmptrapd
/usr/lib64/libnetsnmptrapd.so.20
/usr/lib64/libnetsnmptrapd.so.20.0.0
[root@scanserver sbin]#
[root@scanserver sbin]#cd /usr/lib64
[root@scanserver lib64]# ls -l | grep libnetsnmptrapd
lrwxrwxrwx. 1 root root 25 Apr 8 14:31 libnetsnmptrapd.so.20 -> libnetsnmptrapd.so.20.0.0
-rwxr-xr-x. 1 root root 41520 Oct 11 06:33 libnetsnmptrapd.so.20.0.0
[root@scanserver lib64]#
[root@scanserver lib64]#
[root@scanserver lib64]# ./libnetsnmptrapd.so.20.0.0
Segmentation fault (core dumped)
[root@scanserver lib64]#
|
|
|
04-10-2011, 07:09 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
See post # 2 : ""When you have the package net-snmp installed""
# yum install net-snmp
|
|
|
04-11-2011, 09:37 AM
|
#5
|
Member
Registered: Mar 2003
Location: Greenville, NC
Distribution: Fedora core 4
Posts: 31
Original Poster
Rep:
|
Thanks knudfl that worked. Sorry I misunderstood your previous post! /etc/snmp/snmptrapd.conf is now there.
|
|
|
04-11-2011, 11:16 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Forgot to to tell you about this very useful command :
# yum provides */snmptrapd
.. Then yum will display the package name.
|
|
|
All times are GMT -5. The time now is 10:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|