[Nagiosplug-help] How do I use check_rbl.pl in Nagios?

Nigel Prentice nigelpr at paradise.net.nz
Fri Jul 17 11:12:55 CEST 2009


The command_line directive for the actual plugin looks wrong to me (the return code could be saying Nagios can't find a file of this name). I would expect the directive line to be:

command_line $USER1$/check_rbl $HOSTADDRESS$

That is, no ! character, and a space between the path to the actual command and the hostname argument.
Good luck!
  ----- Original Message ----- 
  From: H Manohar rayker 
  To: nagiosplug-help at lists.sourceforge.net 
  Sent: Friday, 17 July 2009 3:27 p.m.
  Subject: [Nagiosplug-help] How do I use check_rbl.pl in Nagios?


  Hi,

   

  I am a newbie to Nagios.

   

   

  Could anyone please let me know how to configure check_rbl.pl in the commands,services and the hosts file? This when run in command line

   

  # perl check_rbl.pl xxx.yyyyyyyyy.zzz would end up giving the correct results, but when I configured it in the services it displays "Return code of 127 is out of bounds - plugin may be missing"

   

   

   

  Here is my code in the services.cfg file.

   

  # check Mail Server DNS for balcklisting

   

  define service{

          use                     generic-service

          host_name               XXXX

          service_description     DNS Blacklist check

          check_command           check_rbl

  }

   

   

  My commands.cfg file definition is here as follows:

   

  ################################################################################

  #       Mail Server - DNS Blacklist Check                                      #

  ################################################################################

   

  # 'Check_rbl' command definition.

  define command{

          command_name    check_rbl

          command_line    $USER1$/check_rbl.pl!$HOSTADDRESS$

  }

   

   

  Please help me out ASAP

   

  Thanks

  Manohar

   



------------------------------------------------------------------------------


  ------------------------------------------------------------------------------
  Enter the BlackBerry Developer Challenge  
  This is your chance to win up to $100,000 in prizes! For a limited time, 
  vendors submitting new applications to BlackBerry App World(TM) will have
  the opportunity to enter the BlackBerry Developer Challenge. See full prize  
  details at: http://p.sf.net/sfu/Challenge


------------------------------------------------------------------------------


  _______________________________________________
  Nagiosplug-help mailing list
  Nagiosplug-help at lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
  ::: Please include plugins version (-v) and OS when reporting any issue. 
  ::: Messages without supporting info will risk being sent to /dev/null



------------------------------------------------------------------------------



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 8.5.387 / Virus Database: 270.13.17/2242 - Release Date: 07/16/09 18:00:00
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090717/0178e960/attachment.html>


More information about the Help mailing list