AW: Sending $HOSTADDRESS$ or other to NRPE

Thomas.Zimmer at oppenheim.de Thomas.Zimmer at oppenheim.de
Thu Dec 29 12:28:29 CET 2005


Check_printer is not a plugin, this is only a virtual name for your
"check_ping" over NRPE.
See the nagios help for the "out of bounds" error:
http://www.nagios.org/faqs/viewfaq.php?faq_id=17 It seems that either the
plugin "check_nrpe" does not exist on the nagiosserver, or the plugin
"check_ping" does not exist on the client. Perhaps the pathnames
(/usr/lib/nagios/plugin/check_nrpe,/usr/lib/nagios/plugins/check_ping) are
not correct?

The check_command to use for the service must be: 
[...]
         check_command                   check_printer
[...]
As this is the name of your checkcommand. No args needed, the Hostaddress is
set by Nagios, if you declared it within the host-definition. Did you?
Otherwise you should use the $HOSTNAME$ macro or amend the ip-address.

Greetz,
Thomas Zimmer
Produktservice & Betrieb
Betrieb & Support
Sal. Oppenheim jr. & Cie., Frankfurt a. Main
Telefon: +49 69 7134 5192
Internet: http://www.oppenheim.de
E-Mail: thomas.zimmer at oppenheim.de



-----Ursprüngliche Nachricht-----
Von: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Henrik
Morsing
Gesendet: Donnerstag, 29. Dezember 2005 12:13
An: Zimmer, Thomas (BB) Frankfurt/M.
Cc: nagios-users at lists.sourceforge.net
Betreff: Re: [Nagios-users] Sending $HOSTADDRESS$ or other to NRPE




On Thu, 29 Dec 2005, Thomas.Zimmer at oppenheim.de wrote:

> Has your printer host-def. An IP-address assigned?
> What is the output of the service-check?
> Did you try to write the output of the check_printer command to a 
> file? Is there an IP-address? You should set the passed args for the 
> nrpe-command into "", like this: define command {
>         command_name    check_printer
>         command_line    /usr/lib/nagios/plugin/check_nrpe -H kg -c
> check_printer -a "$HOSTADDRESS$ $ARG1$ $ARG2$"
>         }
> But this should not be the problem in your config, I think...
>

Thanks for this. Looking at it again this morning I realised that the
correct line in services.cfg should have been:

           check_command                   check_nrpe!check_printer

This has brought me a step forward. Also the hostname in the hosts.cfg
should be as seen by the server running NRPE at the other end. Now the
problem is this message from the log:

[1135854406] Warning: Return code of 127 for check of service 'KG-Printer'
on host 'printer' was out of bounds. Make sure the plugin you're trying to
run actually exists.

It doesn't exist!. check_printer is not a plugin but defined in
checkcommand.cfg. How do I get Nagios to understand this?

Thanks


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zimmer, Thomas (Produktservices und Betrieb).vcf
Type: application/octet-stream
Size: 254 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051229/6ea56279/attachment.obj>


More information about the Users mailing list