Herramientas de usuario

Herramientas del sitio


unattended_installations:check_squid.pl

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
unattended_installations:check_squid.pl [2015/03/31 23:00] machounattended_installations:check_squid.pl [2022/11/02 17:58] (actual) – editor externo 127.0.0.1
Línea 4: Línea 4:
  
 copy into the folder /usr/lib/nagios/plugins/ copy into the folder /usr/lib/nagios/plugins/
 +
 change the definition command for squid in /etc/nagios-plugins/config/http.cfg change the definition command for squid in /etc/nagios-plugins/config/http.cfg
          
     # 'check_squid' - tries to access an URL through proxy     # 'check_squid' - tries to access an URL through proxy
-define command {+    define command {
         command_name    check_squid         command_name    check_squid
         command_line    $USER1$/check_squid.pl --proxy=$HOSTADDRESS$ --proxyport=$ARG1$ --proxyuser=$ARG2$ --proxypass=$ARG3$ --url=$ARG4$ --status=$ARG5$         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.1427842855.txt.gz · Última modificación: 2022/11/02 17:58 (editor externo)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki