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
Nagios perl error while installing new plugin
-
thanigaivel.a
- Posts: 109
- Joined: Mon Jan 22, 2018 3:38 pm
Re: Nagios perl error while installing new plugin
Have you tried installing the User::Utmp perl module?
Code: Select all
cpan -i User::UtmpBe 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
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 ~]#
[root@frezza-v ~]# cpan -i User::Utmp
bash: cpan: command not found...
[root@frezza-v ~]#
Re: Nagios perl error while installing new plugin
Install cpan first:
Code: Select all
yum install perl-CPAN -yBe 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
Thanks this helped to complete.
Re: Nagios perl error while installing new plugin
I am glad I could help!
I am locking the thread.
I am locking the thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!