Re: Nagios: Error: Service check command ... not defined anywhere!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

On Fri, Feb 13, 2009 at 2:31 PM, John Doe <jdmls@xxxxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux