[CentOS] Nagios: Error: Service check command ... not defined anywhere!
Alexander Farber
alexander.farber at gmail.com
Fri Feb 13 13:40:28 UTC 2009
Hello,
On Fri, Feb 13, 2009 at 2:31 PM, John Doe <jdmls at yahoo.com> wrote:
> Still using 2.x here but, isn't there a commands.cfg file with some check_http definition?
> In doubt, take a working check_xyz and grep it in all the conf files and see if you missed any...
thanks - yes, I always "grep -ri" for commands.
That is what perplexes me - the file
# rpm -qf /etc/nagios/command-plugins.cfg
nagios-plugins-1.4.13-1.el5.rf
contains both check_http and (few lines below) check_squid:
# grep check_http /etc/nagios/command-plugins.cfg
command[check_http]=/usr/lib/nagios/plugins/check_http -H
$HOSTADDRESS$ -I $HOSTADDRESS$
command[check_http2]=/usr/lib/nagios/plugins/check_http -H $ARG1$ -I
$HOSTADDRESS$ -w $ARG2$ -c $ARG3$
command[check_squid]=/usr/lib/nagios/plugins/check_http -H
$HOSTADDRESS$ -p $ARG1$ -u $ARG2$ -e 'HTTP/1.0 200 OK'
And still I can use check_http, but can't use check_squid:
Error: Service check command 'check_squid' specified in service
'Proxy' for host 'ablprx01' not defined anywhere!
Regards
Alex
More information about the CentOS
mailing list