check_dns with check_nrpe issue
Tom Gwilt
tgwilt at suite224.net
Wed Jan 21 15:18:06 CET 2009
Hello,
Obligatory preface - I have searched the FAQ and other sources for the
answer with little success:
OS - server --> Ubuntu 8.1
OS - client --> FBSD6.1
nrpe (server & client) --> 2.8.1
nagios version 3.0.2
I am trying to check the dns process on our secondary dns server using
the following from the monitoring host:
/usr/local/nagios/libexec/check_nrpe -H 72.2.95.6 -c check_dns -H
mail.suite224.net -s 72.2.95.6
The response is: NRPE: Command 'check_dns' not defined
The check_dns command is defined on the secondary server in the
commands.cfg file as:
define command{
command_name check_dns
command_line $USER1$/check_dns -H www.suite224.net -s localhost
}
I can execute the check_dns command locally on gypsy:
gypsy# /usr/local/nagios/libexec/check_dns -H mail.suite224.net -s localhost
DNS OK: 1.014 seconds response time. mail.suite224.net returns
72.2.95.2|time=1.013970s;;;0.000000
BUT - it seems to not work with nrpe:
gypsy# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_dns
NRPE: Command 'check_dns' not defined
What is annoying is that I am able to use the check_nrpe/check_dns
combination with success on our primary dns server.
What am I doing wrong?
Thanks,
Tom Gwilt
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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
More information about the Users
mailing list