"service snmptrapd start" is failing with error "libnetsnmptrapd.so.31: undefined symbol: my_progname"
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
"service snmptrapd start" is failing with error "libnetsnmptrapd.so.31: undefined symbol: my_progname"
Hi there,
My query is when I try to start service "snmptrapd" it is getting failed with below error log.
# service snmptrapd status
Redirecting to /bin/systemctl status snmptrapd.service
â snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmptrapd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-11-21 07:26:59 UTC; 2h 32min ago
Main PID: 10982 (code=exited, status=127)
Nov 21 07:26:59 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Nov 21 07:26:59 snmptrapd[10982]: /usr/sbin/snmptrapd: symbol lookup error: /lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname
Nov 21 07:26:59 systemd[1]: snmptrapd.service: main process exited, code=exited, status=127/n/a
Nov 21 07:26:59 systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
Nov 21 07:26:59 systemd[1]: Unit snmptrapd.service entered failed state.
Nov 21 07:26:59 systemd[1]: snmptrapd.service failed.
I need the above service for my nagios to send mail. It was previously working fine with RHEL6 with snmp version 5.5. Now, I am using RHEL7 and snmp is 5.7.2
Hi there,
My query is when I try to start service "snmptrapd" it is getting failed with below error log.
# service snmptrapd status
Redirecting to /bin/systemctl status snmptrapd.service
â snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmptrapd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-11-21 07:26:59 UTC; 2h 32min ago
Main PID: 10982 (code=exited, status=127)
Nov 21 07:26:59 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Nov 21 07:26:59 snmptrapd[10982]: /usr/sbin/snmptrapd: symbol lookup error: /lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname
Nov 21 07:26:59 systemd[1]: snmptrapd.service: main process exited, code=exited, status=127/n/a
Nov 21 07:26:59 systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
Nov 21 07:26:59 systemd[1]: Unit snmptrapd.service entered failed state.
Nov 21 07:26:59 systemd[1]: snmptrapd.service failed.
I need the above service for my nagios to send mail. It was previously working fine with RHEL6 with snmp version 5.5. Now, I am using RHEL7 and snmp is 5.7.2 Please provide your suggestions.
Ok...the upgrade wasn't completed, and you're missing parts of SNMP. Re-install it. And the best suggestion, since you're using RHEL is to contact RHEL support, since you're PAYING FOR RHEL, RIGHT???? They can easily walk you through a removal/reinstallation of SNMP.
Did you ever resolve this issue???? Thanks for any feedback!
heres my test case
Code:
# subscription-manager repos --enable rhel-7-server-optional-rpms
# yum install net-snmp-perl
$ perl -e 'use NetSNMP::TrapReceiver';
Can't load '/usr/lib64/perl5/vendor_perl/auto/NetSNMP/TrapReceiver/TrapReceiver.so' for module
NetSNMP::TrapReceiver: /lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname at /usr/lib64
/perl5/DynaLoader.pm line 190.
at -e line 1.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Did you ever resolve this issue???? Thanks for any feedback! heres my test case
Code:
# subscription-manager repos --enable rhel-7-server-optional-rpms
# yum install net-snmp-perl
$ perl -e 'use NetSNMP::TrapReceiver';
Can't load '/usr/lib64/perl5/vendor_perl/auto/NetSNMP/TrapReceiver/TrapReceiver.so' for module
NetSNMP::TrapReceiver: /lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname at /usr/lib64
/perl5/DynaLoader.pm line 190.
at -e line 1.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Read the "Question Guidelines" and the LQ Rules please...you re-opened an old thread, and you hijacked it with your own question. Open your own threads for your own questions.
As told to the original poster, you appear to be missing part of your SNMP installation, and you hint at using RHEL7. So have you called the Red Hat support that you're paying for (RIGHT?), to ask for assistance? The NetSNMP module you're referencing requires the net-snmp-libs (along with the REST of the net-snmp packages)...did you install them?
I hijacked a thread w/a question related to the original post??? I need to post a new thread even though this one is an exact hit?? I need to go to Redhat support because you'd rather control the forum content rather than actually provide some constructive help????????
You have no idea what you are talking about regarding the status of the installation!
I hijacked a thread w/a question related to the original post??? I need to post a new thread even though this one is an exact hit?? I need to go to Redhat support because you'd rather control the forum content rather than actually provide some constructive help????????
Apparently you missed the part where you were GIVEN the constructive help, and the question you posted DID NOT match the original question, aside from the same missing library.
Quote:
You have no idea what you are talking about regarding the status of the installation!
Right...because you didn't provide them, and were asked to start your own thread where you could provide them. You didn't.
Quote:
Originally Posted by dblade
Since the thread is already hijacked (that must mean its mine now) I can go ahead and close it out. The issue was resolved by pulling the latest sources and compiling them. Thanks anyway for the chuckle.
Good luck getting help from people at forums when you talk to them like this, and after being registered here for TEN YEARS, you should be very familiar with the rules and "Question Guidelines". Should you have issues with them, contact a moderator.
And when I posted in this old thread originally, and also REPEATED to you:
"you appear to be missing part of your SNMP installation, and you hint at using RHEL7. So have you called the Red Hat support that you're paying for (RIGHT?), to ask for assistance? The NetSNMP module you're referencing requires the net-snmp-libs (along with the REST of the net-snmp packages)...did you install them?"
...and you then installed the missing software and things worked, you're welcome for the 'constructive help'. Again, if you are using RHEL7 you could have typed in "yum install net-snmp", or "yum provides libnetsnmptrapd.so.31", and it would have told you what to install.
I'll give you the benefit of the doubt here and say that the majority of your 18k posts are probably truly helpful. If you go back and read your initial response and still decide you don't sound like a complete pr**k then there is nothing left to achieve here.
I'll give you the benefit of the doubt here and say that the majority of your 18k posts are probably truly helpful. If you go back and read your initial response and still decide you don't sound like a complete prick then there is nothing left to achieve here.
You're exactly right; you didn't learn, can't acknowledge you got help when it was pointed out, and still want to be nasty. Good luck.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597
Rep:
A couple comments.
* Please note that personal attacks are not acceptable at LQ.
* To reiterate, the "you are using $paid distro, so use $paid_support" is not in the spirit of LQ and should be refrained from moving forward.
* Bold in many contexts will be interpreted as shouting and should be used judiciously.
Hi there,
My query is when I try to start service "snmptrapd" it is getting failed with below error log.
# service snmptrapd status
Redirecting to /bin/systemctl status snmptrapd.service
â snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmptrapd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-11-21 07:26:59 UTC; 2h 32min ago
Main PID: 10982 (code=exited, status=127)
Nov 21 07:26:59 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Nov 21 07:26:59 snmptrapd[10982]: /usr/sbin/snmptrapd: symbol lookup error: /lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname
Nov 21 07:26:59 systemd[1]: snmptrapd.service: main process exited, code=exited, status=127/n/a
Nov 21 07:26:59 systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
Nov 21 07:26:59 systemd[1]: Unit snmptrapd.service entered failed state.
Nov 21 07:26:59 systemd[1]: snmptrapd.service failed.
I need the above service for my nagios to send mail. It was previously working fine with RHEL6 with snmp version 5.5. Now, I am using RHEL7 and snmp is 5.7.2
Please provide your suggestions.
Thanks in advance
I get the same problem in Centos 7.4.
Are you fix the problem ?How to fix for your problem ?
thank you so much
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.