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.
Can someone help me?
Tanks!
Missing Perl Modules - check imap receive
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Missing Perl Modules - check imap receive
It might be worth trying to disable the embedded perl interpreter:
That may or may not be it, but is worth a try.To tell Nagios to NOT use the embedded Perl interpreter for a particular script, add this line to the Perl script:
# nagios: -epn
Re: Missing Perl Modules - check imap receive
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
#!/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
Re: Missing Perl Modules - check imap receive
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
Thank you for providing the resolution. I'll mark this topic 'resolved' and close it out.
Former Nagios Employee.
me.
me.