Herramientas de usuario

Herramientas del sitio


Download check_squid.pl.rar

  tar -zxvf check_squid.pl.rar

copy into the folder /usr/lib/nagios/plugins/

change the definition command for squid in /etc/nagios-plugins/config/http.cfg

  # 'check_squid' - tries to access an URL through proxy
  define command {
      command_name    check_squid
      command_line    $USER1$/check_squid.pl --proxy=$HOSTADDRESS$ --proxyport=$ARG1$ --proxyuser=$ARG2$ --proxypass=$ARG3$ --url=$ARG4$ --status=$ARG5$

Define the service into the icinga or nagios server config file

   define service {
      service_description             squid
      use                             generic-service
      host_name                       proxy
      check_command                   check_squid!3128!squid!squid!http://www.google.com!200
unattended_installations/check_squid.pl.txt · Última modificación: 2022/11/02 13:58 (editor externo)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki