Nagios perl error while installing new plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
thanigaivel.a
Posts: 109
Joined: Mon Jan 22, 2018 3:38 pm

Nagios perl error while installing new plugin

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios perl error while installing new plugin

Post by lmiltchev »

Have you tried installing the User::Utmp perl module?

Code: Select all

cpan -i User::Utmp
Be sure to check out our Knowledgebase for helpful articles and solutions!
thanigaivel.a
Posts: 109
Joined: Mon Jan 22, 2018 3:38 pm

Re: Nagios perl error while installing new plugin

Post 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 ~]#
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios perl error while installing new plugin

Post by lmiltchev »

Install cpan first:

Code: Select all

yum install perl-CPAN -y
Be sure to check out our Knowledgebase for helpful articles and solutions!
thanigaivel.a
Posts: 109
Joined: Mon Jan 22, 2018 3:38 pm

Re: Nagios perl error while installing new plugin

Post by thanigaivel.a »

Thanks this helped to complete.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios perl error while installing new plugin

Post by lmiltchev »

I am glad I could help! :)

I am locking the thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked