Skip to main content

Hello,

i’m new here, i have this issue when i’m trying to run this command to check check_exchange_mailboxhealth: 

 /usr/lib/nagios/plugins/centreon_plugins.pl --plugin=apps::protocols::nrpe::plugin --mode=query --hostname=192.168.1.7 --custommode=nrpe --command=check_exchange_mailboxhealth --sanitize-message

 

i have this error : 

Can't locate centreon/plugins/script.pm in @INC (you may need to install the centreon::plugins::script module) (@INC contains: /usr/lib/nagios/plugins /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/lib/nagios/plugins/centreon_plugins.pl line 29.
BEGIN failed--compilation aborted at /usr/lib/nagios/plugins/centreon_plugins.pl line 29.

could you help me ??

👋 @m.lazar 

Are you following this?

https://github.com/centreon/centreon-plugins


Yes , i was a Bad repo in my Yum configuration.

With thé good repo, no problémo;-) 


@ponchoh  thank you for your reply 

I followed the link, but got a new error: 

UNKNOWN: Cannot load module --plugin.
Can't locate apps/protocols/nrpe/plugin.pm in @INC (you may need to install the apps::protocols::nrpe::plugin module) (@INC contains: /usr/lib/nagios/plugins/centreon-plugins /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/misc.pm line 221.
root@BOOS-CENTREON-01:/usr/lib/nagios/plugins# nano /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/misc.pm


Do you have all these?

Can't locate apps/protocols/nrpe/plugin.pm in @INC (you may need to install the apps::protocols::nrpe::plugin module) (@INC contains: /usr/lib/nagios/plugins/centreon-plugins /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) 

 

https://github.com/centreon/centreon-plugins/blob/develop/doc/en/user/guide.rst#can-i-have-one-standalone-perl-file-


Reply