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

H Manohar rayker manohar.r at glowtouch.com
Tue Jul 21 06:29:54 CEST 2009


Hi Nigel,

 

I have tried the below specified definition for that plugin but still it
gives out the same error.

 

(Return code of 127 is out of bounds - plugin may be missing) 

 

Is that a bug in the script while displaying the results, where I doubt it
to be with the output formatting of the script. As in this version of Nagios
3.0.5

 

Thanks

Manohar

 

 

  _____  

From: Nigel Prentice [mailto:nigelpr at paradise.net.nz] 
Sent: Friday, July 17, 2009 2:43 PM
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] How do I use check_rbl.pl in Nagios?

 

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 <mailto:manohar.r at glowtouch.com>  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/20090721/df7033c7/attachment.html>


More information about the Help mailing list