Page 1 of 1

Missing Perl Modules - check imap receive

Posted: Mon Aug 31, 2015 10:03 am
by souzarod
Hello guys,

I'm trying to use the check_imap_receive plugin ([url] http://buhacoff.net/software/check_emai ... ceive.html [/ url]) in my monitoring environment and am having trouble. I have already installed all the necessary dependencies perl as (IO :: Socket :: SSL Text :: Template :: Manip Date) successfully. But after I set up monitoring service I get error that these modules are missing.

I found that running the command as root and as nagios User in the console Nagios server executes successfully, but when active service checks in Nagios, the interface I got the error as print attached.

I found also that monitoring service is running as Nagios user.
The attachment check_imap.PNG is no longer available
Can someone help me?

Tanks!

Re: Missing Perl Modules - check imap receive

Posted: Mon Aug 31, 2015 11:36 am
by jdalrymple
It might be worth trying to disable the embedded perl interpreter:
To tell Nagios to NOT use the embedded Perl interpreter for a particular script, add this line to the Perl script:

# nagios: -epn
That may or may not be it, but is worth a try.

Re: Missing Perl Modules - check imap receive

Posted: Mon Aug 31, 2015 12:43 pm
by souzarod
hi jdalrymple, thanks for your response. But in others researchs that i did, the solution for this case is add this parameter -I in the file of script. See below:

#!/usr/bin/perl -I <my-path_libraries-perl>

Ex. #!/usr/bin/perl -I /root/perl5/lib/perl5

After i did this change, my service monitoring worked!!!

Resolved, thanks
:D :D :D

Re: Missing Perl Modules - check imap receive

Posted: Mon Aug 31, 2015 1:05 pm
by hsmith
souzarod wrote:hi jdalrymple, thanks for your response. But in others researchs that i did, the solution for this case is add this parameter -I in the file of script. See below:

#!/usr/bin/perl -I <my-path_libraries-perl>

Ex. #!/usr/bin/perl -I /root/perl5/lib/perl5

After i did this change, my service monitoring worked!!!

Resolved, thanks
:D :D :D

Thank you for providing the resolution. I'll mark this topic 'resolved' and close it out.