Missing Perl Modules - check imap receive

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
souzarod
Posts: 3
Joined: Tue Nov 05, 2013 7:14 am

Missing Perl Modules - check imap receive

Post 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!
Attachments
Output tests
Output tests
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Missing Perl Modules - check imap receive

Post 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.
souzarod
Posts: 3
Joined: Tue Nov 05, 2013 7:14 am

Re: Missing Perl Modules - check imap receive

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Missing Perl Modules - check imap receive

Post 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.
Former Nagios Employee.
me.
Locked