Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2009
    Messaggi
    11

    HTTP CRITICAL - Unable to open TCP socket

    salve!
    Sto usando nagios per monitorare i dispositivi in lan ma se voglio monitorare l'http ad esempio ottengo questa risposta:
    [root@localhost Clemente]# /usr/local/nagios/libexe/check_http -H
    ottengo:
    Connection refused
    HTTP CRITICAL - Unable to open TCP socket

    perchè?come faccio a aprire la tcp socket perchè funzioni!
    se lo faccio in locale o interrogo il router funziona:

    [root@localhost Clemente]# /usr/local/nagios/libexec/check_http -H localhost
    HTTP WARNING: HTTP/1.1 403 Forbidden
    [root@localhost Clemente]# /usr/local/nagios/libexec/check_http -H
    HTTP OK HTTP/1.1 200 Ok - 7618 bytes in 2.339 seconds |time=2.339204s;;;0.000000 size=7618B;;;0

    succede lo stesso con l'ftp e smtp.Io non credo sia il firewall perchè lo disabilito.


    Grazie

  2. #2
    ma apache e' in ascolto, e' avviato ?



    netstat -an

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2009
    Messaggi
    11
    Si apache è avviato.

    Ma mi è successa una cosa strana, prima per lavorare meglio ho disabilitato il firewall su entrambe le macchine.Ora l'ho abilitato e checK_http funziona ma risponde così:

    HTTP WARNING: HTTP/1.1 403 Forbidden

    mentre per ftp e smtp ricevo come risposta:

    Connection refused

  4. #4
    Utente di HTML.it
    Registrato dal
    Jan 2009
    Messaggi
    11
    Errore il problema rimane!

    Sarà un problema di apache?

  5. #5
    i log di apache che dicono ?

  6. #6
    Utente di HTML.it
    Registrato dal
    Jan 2009
    Messaggi
    11
    error_log

    [Sun Feb 08 18:24:05 2009] [notice] Digest: generating secret for digest authentication ...
    [Sun Feb 08 18:24:05 2009] [notice] Digest: done
    [Sun Feb 08 18:24:05 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
    [Sun Feb 08 18:24:05 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
    [Sun Feb 08 18:24:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 18:29:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 18:34:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 18:39:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 18:44:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 18:49:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 18:54:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 18:59:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:04:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:09:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:14:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:19:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:24:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:29:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:34:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:39:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 19:44:37 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Sun Feb 08 20:22:44 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 09:31:31 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Mon Feb 09 09:31:31 2009] [notice] Digest: generating secret for digest authentication ...
    [Mon Feb 09 09:31:31 2009] [notice] Digest: done
    [Mon Feb 09 09:31:32 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
    [Mon Feb 09 09:31:32 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
    [Mon Feb 09 09:35:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 09:40:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 09:45:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 09:49:33 2009] [notice] caught SIGTERM, shutting down
    [Mon Feb 09 09:49:34 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Mon Feb 09 09:49:34 2009] [notice] Digest: generating secret for digest authentication ...
    [Mon Feb 09 09:49:34 2009] [notice] Digest: done
    [Mon Feb 09 09:49:34 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
    [Mon Feb 09 09:49:34 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
    [Mon Feb 09 09:50:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 09:55:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 10:00:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 10:05:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 10:10:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 10:15:16 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:00:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:05:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:10:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:15:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:20:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:25:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:30:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:35:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:40:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:45:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:50:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 15:55:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 16:00:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 16:05:47 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:17:32 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:18:27 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:19:02 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:19:32 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:21:32 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:21:59 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:22:03 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
    [Mon Feb 09 17:23:14 2009] [error] [client 127.0.0.1] Invalid method in request \xff\xf4\xff\xfd\x06\xff\xf4\xff\xfd\x06\xff\xf4\x ff\xfd\x06
    [Mon Feb 09 17:24:28 2009] [error] [client 127.0.0.1] Invalid method in request \xff\xf4\xff\xfd\x06

  7. #7

  8. #8
    Utente di HTML.it
    Registrato dal
    Jul 2008
    Messaggi
    1,526
    scusa ma che distribuzione usi?hai installato nagios da sorgenti?

  9. #9
    Utente di HTML.it
    Registrato dal
    Jan 2009
    Messaggi
    11
    Si ho installato nagios che è il 3 dai sorgenti.

    La distribuzione è Centos 5.2.

  10. #10
    Utente di HTML.it
    Registrato dal
    Jul 2008
    Messaggi
    1,526
    Originariamente inviato da Saragat
    Si ho installato nagios che è il 3 dai sorgenti.

    La distribuzione è Centos 5.2.
    perdonami ma perchè mai installarlo da sorgenti quando hai i pacchetti a portata di mano?si che sarà una macchina casalinga ma a compilare i sorgenti su un server di produzione ci vuole sangue freddo.a me funziona tutto alla grande, il firewall come l'hai disattivato?system-config-security-level-tui?
    nagios su centos si installa con questi pacchetti

    # yum install nagios.i386 nagios-plugins.i386 nagios-devel.i386 nagios-plugins-nrpe.i386

    qua c'è tutta la procedura per configurare i file http://wiki.centos.org/HowTos/Nagios che nella maggior parte dei casi sono già a posto,guardati la parte relativi al file che lavora con apache,poi avvii nagios e via

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.