LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-08-2011, 05:42 PM   #1
plythgam
Member
 
Registered: Mar 2003
Location: Greenville, NC
Distribution: Fedora core 4
Posts: 31

Rep: Reputation: 15
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
 
Old 04-09-2011, 03:20 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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> )

..
 
Old 04-09-2011, 09:52 PM   #3
plythgam
Member
 
Registered: Mar 2003
Location: Greenville, NC
Distribution: Fedora core 4
Posts: 31

Original Poster
Rep: Reputation: 15
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]#
 
Old 04-10-2011, 07:09 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
See post # 2 : ""When you have the package net-snmp installed""


# yum install net-snmp
 
Old 04-11-2011, 09:37 AM   #5
plythgam
Member
 
Registered: Mar 2003
Location: Greenville, NC
Distribution: Fedora core 4
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks knudfl that worked. Sorry I misunderstood your previous post! /etc/snmp/snmptrapd.conf is now there.
 
Old 04-11-2011, 11:16 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Forgot to to tell you about this very useful command :

# yum provides */snmptrapd

.. Then yum will display the package name.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios with snmptrapd nagiosnmp Linux - Networking 0 03-05-2008 10:18 AM
snmptrapd problems JoeDuncan Linux - Networking 0 05-29-2006 09:20 PM
mynetwatchman and snmptrapd deadite66 Linux - Security 0 12-30-2004 07:47 AM
snmptrapd FIFO eccsamba Linux - Networking 2 11-24-2004 09:52 AM
I don't have an snmptrapd.conf jon3k Linux - Software 0 09-10-2004 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration