In previous thread I was able to communicate with databases using ODBC.ini
but I am still getting issues with perl
NagiosCore 3.5.1 is on gentoo
Command is /usr/bin/perl /usr/lib/nagios/plugins/check_haproxy.pl -u 'http://xxx.xxx.xx.xx.csv' -U aaaaaaa -P xxxxxxxxxless /proc/version
Linux version 4.1.12-gentoo (gcc version 4.9.3 (Gentoo 4.9.3 p1.4, pie-0.6.4) )
NagiosXI is on CentOS
Command is /usr/bin/perl /usr/local/nagios/libexec/check_haproxy.pl -u 'http://xxx.xxx.xx.xx.csv' -U aaaaaaa -P xxxxxxxxxless /proc/version
Linux version 2.6.32-358.2.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) )
Error:
Can't locate Locale/gettext.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_haproxy.pl line 26.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_haproxy.pl line 26
I tried to install gettext from yum it says it is installed
Line 26 of script, that is shown Erroneous output, contains use Locale::gettext;Package gettext-0.17-18.el6.x86_64 already installed and latest version
Nothing to do
can any one guide me through what needs to be installed or copied from older nagios in order to make this service working on new one. (This is working on the older nagios)
Thanks in advance
The plugin is 'check_haproxy.pl'