Marc Powell wrote: > >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:nagios-users- >> [EMAIL PROTECTED] On Behalf Of zack kenton >> Sent: Thursday, September 27, 2007 11:58 AM >> To: [email protected] >> Subject: Re: [Nagios-users] turn off epn >> >> Hi Marc >> >> So I've tried everyones methods. Putting perl directly into the > command >> line of commands.cfg, setting up a macros user with /usr/bin/perl, the >> environmental variables are fine...I just dont think there is a way > around >> embedded perl. > > I'm quite certain that using the /usr/bin/perl method bypasses embedded > perl. Search the archives, you'll find lots of evidence of that. >
Or just chuck one look at the code that runs the check. It opens the file, checks the first line for the handparsed equivalence of the regex "# *!.*perl" before even considering the command cacheable. The perl binary clearly doesn't match that, so it's never considered. Nagios doesn't cache arguments to commands. That would be utterly daft. It would actually make sense to never even open the file if it's bigger than a certain size. Say, oh, 100KiB or something. Perl programs rarely (if ever) grow that large (and if they do they almost certainly don't conform to the rather strict EPN guidelines), and it would save a few cycles for checks that bypass the embedded perl thing this way. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
