> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Wheeler, JF (Jonathan)
> Sent: Wednesday, August 22, 2007 10:38 AM
> To: [email protected]
> Subject: [Nagios-users] Using contributed check
> 


> However Nagios returns this text:
> 
> **ePN /usr/lib/nagios/plugins/contrib/check_snmp_process_monitor.pl:
> Reference found where even-sized list expected at (eval 1) line 194,.
> 
> Now I understand that the problem is that the code is not compatible
> with Embedded Perl Interpreter in Nagios, but an someone help me
further
> understand and solve this problem.
> 

You've got three options really --

1) Modify the plugin to be compatible with ePN by following the
guidelines at http://nagios.sourceforge.net/docs/2_0/embeddedperl.html.
Other people would likely value the contribution.

2) Modify how you call the plugin so that ePN isn't used. This can be
accomplished by prefacing the command{} command_line with
/your/path/to/perl i.e.

define command{
        command_name check_snmp_process
        command_line /usr/bin/perl $USER1$/check_snmp_process_monitor.pl
-w ... <other args>
}

3) recompile nagios without ePN and re-install. This is pretty
straightforward 

cd /path/to/nagios-src && ./configure --enable-embedded-perl=no <your
other args> && make && /etc/init.d/nagios stop && make install &&
/etc/init.d/nagios start

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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

Reply via email to