Page 1 of 1

Nagios perl error while installing new plugin

Posted: Tue Jul 31, 2018 10:31 am
by thanigaivel.a
I'm trying to install new plugin to check kernel modules, but getting below perl error. when I checked it on forum, it says to install perl-Nagios-Plugin package, but still getting so many dependency issues.

so kindly let us know how to fix the below perl issue or provide some plugins to monitor kernel modules.


#./check_modules
Can't locate User/Utmp.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 ./check_modules line 24.
BEGIN failed--compilation aborted at ./check_modules line 24

Re: Nagios perl error while installing new plugin

Posted: Tue Jul 31, 2018 2:11 pm
by lmiltchev
Have you tried installing the User::Utmp perl module?

Code: Select all

cpan -i User::Utmp

Re: Nagios perl error while installing new plugin

Posted: Tue Jul 31, 2018 2:57 pm
by thanigaivel.a
I'm getting error while trying to install user::utmp.

[root@frezza-v ~]# cpan -i User::Utmp
bash: cpan: command not found...
[root@frezza-v ~]#

Re: Nagios perl error while installing new plugin

Posted: Tue Jul 31, 2018 4:38 pm
by lmiltchev
Install cpan first:

Code: Select all

yum install perl-CPAN -y

Re: Nagios perl error while installing new plugin

Posted: Fri Aug 03, 2018 3:04 pm
by thanigaivel.a
Thanks this helped to complete.

Re: Nagios perl error while installing new plugin

Posted: Fri Aug 03, 2018 3:30 pm
by lmiltchev
I am glad I could help! :)

I am locking the thread.