Re: SNMPTT error
by marto (Cardinal) on Dec 03, 2013 at 15:10 UTC
|
| [reply] |
Re: SNMPTT error
by taint (Chaplain) on Dec 03, 2013 at 14:46 UTC
|
Couple of things. Have you had a look to see if the script snmp_perl_trapd.pl exists in /usr/share/snmp/. If it does, does it have the x bit set (is it executable, and by the user, you are on that box?). Otherwise, you might try a which snmp_perl_trapd.pl, or a whereis snmp_perl_trapd.pl. If the x bit is set, and it was installed in any of the paths listed in your ENV. It's location should show up, in either of those searches.
Best wishes.
--Chris
#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;
| [reply] |
|
|
[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] |
|
|
| [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] |
|
|
| [reply] |
|
|
| [reply] |
|
|
|
|
Resurrecting dead post to provide the solution in case anyone else made it here:
yum install net-snmp-perl
| [reply] [d/l] |
|
|
[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] |
|
|
|
|
|