Re^2: SNMPTT error
by mvip (Acolyte) on Dec 03, 2013 at 16:52 UTC
|
I followed the installation process of SNMPTT The second part as "Embedded handler", before that i installed all the requirements that is needed. And still nothing also here is some of the output of what iv done after the installations.
[root@mpnagios snmptt_1.4]# snmptrapd -On
Can't open perl script "/usr/share/snmp/snmp_perl_trapd.pl": No such f
+ile or directory
[root@mpnagios snmptt_1.4]# ls /usr/share/snmp/
mibs snmpconf-data
[root@mpnagios snmptt_1.4]# locate snmp_perl_trapd.pl
[root@mpnagios snmptt_1.4]# find / -name snmp_perl_trapd.pl
[root@mpnagios snmptt_1.4]#
| [reply] [d/l] |
|
|
| [reply] |
Re^2: SNMPTT error
by mvip (Acolyte) on Dec 03, 2013 at 15:50 UTC
|
I add the path but still the same message. Is it the fact that the snmp_perl_trapd.pl missing is the key ? because i can't find this file any where in my system. Im using CentOS.
| [reply] |
|
|
ls -al /usr/share/snmp/snmp_perl_trapd.pl
results in nothing then read what I wrote here, consider back tracking through the installation instructions. If this file does exist ensure it has the correct permissions. If in doubt report back or speak to your system administrator. | [reply] [d/l] |
|
|
Well. If either the path "/usr/share/snmp/ and, or the file snmp_perl_trapd.pl don't exist. You might take marto's advise, and see if waht your looking for, isn't part of a larger package. Like the one he mentioned. As you indicate you're using a flavor of Linux. Did you attempt to install it through your system's package manager? That route generally takes care of any dependencies automatically. Either way. At this point it appears that you've either chosen something that wasn't intended to be installed singularly, or you didn't choose the best route to get it installed (eg; via your system's package manager).
Best wishes.
--Chris
#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;
| [reply] |
Re^2: SNMPTT error
by mvip (Acolyte) on Dec 03, 2013 at 17:31 UTC
|
| [reply] |
|
|
| [reply] |
|
|
marto's dead right on this. I've installed, and used SNMP in the past, and you're going to need to make adjustments regarding your kernel on this. I should also note; part of the reason for this, is that SNMP can be a bit of a security hazard, if not setup carefully. Which is why it doesn't simply work, right off the bat. Most kernels are configured to be as secure as possible. While still offering as much as possible.
Best wishes.
--Chris
#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;
| [reply] |
|
|
Resurrecting dead post to provide the solution in case anyone else made it here:
yum install net-snmp-perl
| [reply] [d/l] |
Re^2: SNMPTT error
by mvip (Acolyte) on Dec 03, 2013 at 15:04 UTC
|
Hi, im having difficulties to find this script. I can't locate and i try the way you say but nothing ....
[root@mpnagios snmptt_1.4]# which snmp_perl_trapd.pl
/usr/bin/which: no snmp_perl_trapd.pl in (/usr/lib64/qt-3.3/bin:/usr/l
+ocal/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@mpnagios snmptt_1.4]# whereis snmp_perl_trapd.pl
snmp_perl_trapd:
[root@mpnagios snmptt_1.4]#
Is there a way to download from or installed or something .... | [reply] [d/l] |
|
|
/usr/share/snmp/
isn't in your PATH ENV. So You can either add it. Or you can remove the current copy, and choose
make install PREFIX=/one/of/the/current/paths/in/your/$PATH
You might try the first suggestion. After adding /usr/share/snmp/ to your current list of paths. You may need to issue a rehash. To slurp it into your working ENV.
Best wishes
--Chris
#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;
| [reply] [d/l] [select] |
|
|
They reported the error as:
"Can't open perl script "/usr/share/snmp/snmp_perl_trapd.pl": No such file or directory"
The fact the directory isn't in their PATH simpy means that your suggestions for finding the file won't look there. If you're simply looking for a file ls -al /path/to/file.pl will tell you what you need to know about it. Since the full path is being used and the file does not exist, they get the error message displayed.
"You may need to issue a rehash. To slurp it into your working ENV."
Results in "Sorry, no data found for `rehash'."
| [reply] [d/l] |
|
|
|
|
|