You are here

opsview-agent 4.6.3.508 cannot find Nagios/Plugins.pm

6 posts / 0 new
Last post
dev_1
dev_1's picture
opsview-agent 4.6.3.508 cannot find Nagios/Plugins.pm

Hi,

having issues with check_ro_mounts (which is in default "OS - Unix Base" template) on CentOS 7:

# /usr/local/nagios/libexec/check_ro_mounts
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /opt/opsview/perl/lib/perl5 /usr/local/nagios/libexec /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_ro_mounts line 27.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_ro_mounts line 27.
#

installed is RPM opsview-agent from https://downloads.opsview.com/k/xxxxxxx/opsview-commercial/latest/yum/ce...$basearch

On opsview-master Plugin.pm can be found in /opt/opsview/..., but not on agent-only.

dev_1
dev_1's picture
Additional issue in /usr

Additional issue in /usr/local/nagios/libexec/check_cpu_stats, it seems to miss a dependency on perl-Digest-MD5:

 

Can't locate Digest/MD5.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_cpu_stats line 32.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_cpu_stats line 32.

 

tapan.thapa
tapan.thapa's picture
Suggestion

Try to run the same command via nagios user.

su - nagios

smarsh
smarsh's picture
What user are you running

What user are you running these checks as?

tapan.thapa
tapan.thapa's picture
Same issue

I am sorry but i am facing the same issue at my end too.

[nagios@mail ~]$ /usr/local/nagios/libexec/check_ro_mounts -p /
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /opt/opsview/perl/lib/perl5 /usr/local/nagios/libexec /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_ro_mounts line 27.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_ro_mounts line 27.

Please suggest.

tapan.thapa
tapan.thapa's picture
Solution

Hi Friends,

Here is the solution which worked for me.

yum install perl-Nagios-Plugin

Let me now if this is the right solution which i have applied on this issue.

BR

Tapan Thapa