Using contributed check

Marc Powell marc at ena.com
Wed Aug 22 18:05:48 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Wheeler, JF (Jonathan)
> Sent: Wednesday, August 22, 2007 10:38 AM
> To: nagios-users at lists.sourceforge.net
> 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
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list