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

Ian Rarity Ian.Rarity at espc.com
Fri Jul 17 10:04:49 CEST 2009


The "#" tells me you're running the plugin from the command line as root - what happens if you su to the Nagios user first, then try running it?

Ta,
IR.

=-=-=-=-=-=-=-=-=-=
Ian Rarity
Technical Engineer
ESPC (UK) Ltd.
(44)131 624 8000
ian.rarity at espc.com
=-=-=-=-=-=-=-=-=-=

From: H Manohar rayker [mailto:manohar.r at glowtouch.com]
Sent: 17 July 2009 04:28
To: nagiosplug-help at lists.sourceforge.net
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

________________________________

Private and Confidential: This e-mail transmission is strictly confidential and intended solely for the addressee. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, disclose, distribute or take any action in reliance on it. If you have received this e-mail in error, please delete it and notify our E-mail Systems Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any liability for any harm that may be caused to the recipient's system or data by this message or any attachment.

ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland (Registered Number SC203585), and having its registered office at 90A George Street, Edinburgh, Midlothian EH2 3DF.

ESPC (UK) Ltd is an Appointed Representative of Accord Consultancy which is authorised and regulated by the Financial Services Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090717/c197a48a/attachment.html>


More information about the Help mailing list