Problem with embedded perl on Nagios Core 3.2.3

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
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Problem with embedded perl on Nagios Core 3.2.3

Post by mon-team »

Hi ,

yesterday we had a problem in our environment with nagios
All the plugins using the perl embedded were in UNKNOWN state giving all the same output listed below :

**ePN /usr/lib64/nagios/plugins/check_state.pl: ""my" variable $Config::Tiny::VERSION can't be in a package at /usr/lib/perl5/site_perl/5.8.8/Config/Tiny.pm line 1, near "$Config::Tiny::VERSION "
BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Config/Tiny.pm line 10, <DATA> line 522.
Compilation failed in require at (eval 1037) line 3, <DATA> line 522.

After restarting nagios the problem was gone
Anyone have any idea what could be causing the problem??

regards
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with embedded perl on Nagios Core 3.2.3

Post by lmiltchev »

Did you change anything on the system prior to seeing this error? What is the output of the following command?

Code: Select all

grep "perl" /usr/local/nagios/etc/nagios.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Problem with embedded perl on Nagios Core 3.2.3

Post by mon-team »

Below the output of the command grep "perl" /etc/nagios/nagios.cfg

# This value determines where the p1.pl perl script (used by the
enable_embedded_perl=1
use_embedded_perl_implicitly=1
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with embedded perl on Nagios Core 3.2.3

Post by lmiltchev »

I know that there have been issues with using nagios with embedded perl. That why in Nagios XI, I believe, nagios is compiled with no support for an embedded Perl interpreter.
Is "check_state.pl" a custome plugin? Did you change anything on the system prior to seeing this error? Was the plugin developed for use with embedded perl?

http://nagios.sourceforge.net/docs/3_0/epnplugins.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Problem with embedded perl on Nagios Core 3.2.3

Post by mon-team »

Hi guys ,

we fix the problem. there was a problem with a perl script executed by an event handler. That's why the problem appeared suddendly
Thanks all for the reply
Locked