• Hack the check_open_files.pl plugins for Nagios/NRPE

    by maxidea • 2010年12月01日 • UNIX\Linux, 网络技术 • 2 Comments

    I run the check_open_files.pl with NRPE but got error as below:

    “NRPE: Unable to read output”

    After check, user Nagios (this account will be called by NRPE) on object server was not able to run this plugin with error “Can’t locate utils.pm in @INC”

    So, I do a little change of it, add this line into check_open_files.pl to locate the utils.pm

    use lib “/usr/local/nagios/libexec”;

    The hack file can be download here:

    http://www.maxidea.com/project/rlm/nagios/check_open_files-hack.tar.gz

    2 Responses to Hack the check_open_files.pl plugins for Nagios/NRPE

    1. 2011年01月09日 at 6:21 上午

      I finally thought of a suggestion for working around the variable substitution issue with NRPE in response to a comment you left me here:

      http://blog.manjusri.org/2009/08/02/nrpe-check_file_age-is-a-filthy-liar/comment-page-1/#comment-723

    2. 2011年01月19日 at 7:38 上午

      A short Perl script that will test the specified host for the NRPE and NSClient agents and will inform the user if they are working as expected. This script is pure perl and will check first for the NRPE agent then for the NSClient agent. It will stop once an agent is found unless you specify the -a flag…..If you install an NRPE service version like this ….command version bin uname -a….then this output will be shown on a successful NRPE request the version command is the one used for testing so it should exist …..Under NRPE NT I define a similar version command that runs a batch file which outputs OK….Submitted by .Hits 448.Overall downloads 52.Added 2005-05-20 00 00 00.Last Modified 2009-12-14 02 56 36……….Filename…Preview…Size…Description…DL……..

    留下评论

    Your email address will not be published. Required fields are marked *