[+]Nagios 404 not found

Konfiguracja serwerów, usług, itp.
jantar
Posty: 75
Rejestracja: 22 kwietnia 2014, 14:51

[+]Nagios 404 not found

Post autor: jantar » 30 września 2016, 20:08

Mam problem z odpaleniem nagiosa w przeglądarce. Z instalacją wersji 421 nie było żadnych problemów, wszystko poszło gładko, ale przez interfejs już nie mogę się wbić - 404 not found. Status nagiosa i apache jest na active(running), w logach jednego i drugiego nie widzę błędów, albo nie wiem w jakich logach szukać. Jakieś sugestie?

Korzystałem z poniższych poradników:
http://sites.box293.com/nagios/guides/i ... bian-7-7-0
https://www.linode.com/docs/uptime/moni ... u-debian-8
Ostatnio zmieniony 05 października 2016, 10:50 przez jantar, łącznie zmieniany 1 raz.

Awatar użytkownika
LordRuthwen
Moderator
Posty: 2166
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Re: Nagios 404 not found

Post autor: LordRuthwen » 03 października 2016, 06:53

Sprawdź netstatem na którym porcie i czy nagios słucha.

Awatar użytkownika
pawkrol
Moderator
Posty: 936
Rejestracja: 03 kwietnia 2011, 10:25

Re: Nagios 404 not found

Post autor: pawkrol » 03 października 2016, 14:20

Zobacz w /etc/apache2/conf-enabled/nagios.conf czy nie masz "" w aliasach. Jeśli tak to je usuń.

Kod: Zaznacz cały

ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
Alias /nagios /usr/local/nagios/share

jantar
Posty: 75
Rejestracja: 22 kwietnia 2014, 14:51

Re: Nagios 404 not found

Post autor: jantar » 03 października 2016, 19:58

W /etc/apache2/conf-enabled nie ma pliku nagios.conf, jest w /sites-enabled, usunięcie cudzysłowy niestety nie pomogło. Apache error.log jest pusty, przy próbie przeładowania pojawia się błąd.

//edit: nagiosa nie instalowałem z poziomu roota, mogło to przysporzyć problemów? Czy instalacja nagiosa 3.x z repo będzie lżejsza i mniej problematyczna?

Kod: Zaznacz cały

journalctl -xn

paź 03 19:40:36 debian sshd[23390]: Connection closed by 127.0.0.1 [preauth]
paź 03 19:41:40 debian sudo[23400]: bed : TTY=pts/1 ; PWD=/home/bed ; USER=root ; COMMAND=/bin/cat /var/log/apache2/error.log
paź 03 19:41:40 debian sudo[23400]: pam_unix(sudo:session): session opened for user root by bed(uid=0)
paź 03 19:41:40 debian sudo[23400]: pam_unix(sudo:session): session closed for user root
paź 03 19:42:00 debian sudo[23424]: bed : TTY=pts/1 ; PWD=/home/bed ; USER=root ; COMMAND=/bin/cat /usr/local/nagios/var/nagios.log
paź 03 19:42:00 debian sudo[23424]: pam_unix(sudo:session): session opened for user root by bed(uid=0)
paź 03 19:42:00 debian sudo[23424]: pam_unix(sudo:session): session closed for user root
paź 03 19:45:36 debian sshd[23442]: Connection closed by 127.0.0.1 [preauth]
paź 03 19:47:43 debian sudo[23454]: bed : TTY=pts/0 ; PWD=/home/bed/Pobrane/nagios-4.2.1/nagios-plugins-2.1.3 ; USER=root ; COMMAND=/bin/journalctl -xn
paź 03 19:47:43 debian sudo[23454]: pam_unix(sudo:session): session opened for user root by bed(uid=0)

Kod: Zaznacz cały

netstat -a

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 localhost:mysql         *:*                     LISTEN    
tcp        0      0 *:sunrpc                *:*                     LISTEN    
tcp        0      0 *:http                  *:*                     LISTEN    
tcp        0      0 *:ssh                   *:*                     LISTEN    
tcp        0      0 localhost:ipp           *:*                     LISTEN    
tcp        0      0 *:54775                 *:*                     LISTEN    
tcp6       0      0 [::]:45218              [::]:*                  LISTEN    
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN    
tcp6       0      0 [::]:http               [::]:*                  LISTEN    
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN    
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN    
tcp6       0      0 localhost:ipp           [::]:*                  LISTEN    
tcp6       1      0 localhost:53614         localhost:ipp           CLOSE_WAIT
udp        0      0 *:52755                 *:*                                
udp        0      0 *:bootpc                *:*                                
udp        0      0 *:43095                 *:*                                
udp        0      0 *:606                   *:*                                
udp        0      0 localhost:619           *:*                                
udp        0      0 *:sunrpc                *:*                                
udp        0      0 *:ipp                   *:*                                
udp        0      0 *:mdns                  *:*                                
udp        0      0 *:40726                 *:*                                
udp6       0      0 [::]:35374              [::]:*                            
udp6       0      0 [::]:41524              [::]:*                            
udp6       0      0 [::]:606                [::]:*                            
udp6       0      0 [::]:sunrpc             [::]:*                            
udp6       0      0 [::]:mdns               [::]:*                            
udp6       0      0 [::]:30167              [::]:*                            
raw6       0      0 [::]:ipv6-icmp          [::]:*                  7          
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ]         DGRAM                    8705     /run/systemd/shutdownd
unix  18     [ ]         DGRAM                    8710     /run/systemd/journal/dev-log
unix  2      [ ACC ]     STREAM     LISTENING     15109    /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     16702    /tmp/.ICE-unix/1318
unix  2      [ ACC ]     SEQPACKET  LISTENING     8714     /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     8717     /run/systemd/journal/stdout
unix  7      [ ]         DGRAM                    8719     /run/systemd/journal/socket
unix  2      [ ACC ]     STREAM     LISTENING     16649    /tmp/ssh-LsDSck8RZwma/agent.1278
unix  2      [ ACC ]     STREAM     LISTENING     16721    /tmp/gpg-3TZz35/S.gpg-agent
unix  2      [ ACC ]     STREAM     LISTENING     16701    @/tmp/.ICE-unix/1318
unix  2      [ ACC ]     STREAM     LISTENING     15108    @/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     15979    @/tmp/dbus-VUXGihT7QE
unix  2      [ ACC ]     STREAM     LISTENING     12079    /run/rpcbind.sock
unix  2      [ ]         DGRAM                    14598    /var/spool/postfix/dev/log
unix  2      [ ACC ]     STREAM     LISTENING     12608    /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     12611    /run/uuidd/request
unix  2      [ ACC ]     STREAM     LISTENING     12614    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     12617    /var/run/cups/cups.sock
unix  2      [ ACC ]     STREAM     LISTENING     15932    @/tmp/dbus-HC6dNkPGd2
unix  2      [ ACC ]     STREAM     LISTENING     18038    /run/user/1000/pulse/native
unix  2      [ ]         DGRAM                    15738    /run/user/118/systemd/notify
unix  2      [ ACC ]     STREAM     LISTENING     15740    /run/user/118/systemd/private
unix  2      [ ]         DGRAM                    9123     /run/systemd/journal/syslog
unix  2      [ ACC ]     STREAM     LISTENING     15040    /var/run/NetworkManager/private
unix  2      [ ACC ]     STREAM     LISTENING     15301    /var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     15046    /var/run/NetworkManager/private-dhcp
unix  2      [ ACC ]     STREAM     LISTENING     13731    /usr/local/nagios/var/rw/nagios.qh
unix  2      [ ]         DGRAM                    16595    /run/user/1000/systemd/notify
unix  2      [ ACC ]     STREAM     LISTENING     16597    /run/user/1000/systemd/private
unix  2      [ ]         DGRAM                    18392    /run/wpa_supplicant/eth1
unix  2      [ ACC ]     STREAM     LISTENING     16657    @/tmp/dbus-1BXVw4diBr
unix  2      [ ACC ]     STREAM     LISTENING     17459    @/tmp/dbus-AwGNdR3cyo
unix  2      [ ]         DGRAM                    8689     /run/systemd/notify
unix  2      [ ACC ]     STREAM     LISTENING     8691     /run/systemd/private
unix  3      [ ]         STREAM     CONNECTED     16496    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     15077    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     21772    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     16680    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     16803    
unix  3      [ ]         STREAM     CONNECTED     14614    
unix  3      [ ]         STREAM     CONNECTED     21748    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     16901    
unix  3      [ ]         STREAM     CONNECTED     13576    
unix  3      [ ]         STREAM     CONNECTED     17139    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     18111    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17780    
unix  2      [ ]         DGRAM                    42762    
unix  2      [ ]         DGRAM                    15722    
unix  3      [ ]         STREAM     CONNECTED     14167    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     13732    
unix  3      [ ]         STREAM     CONNECTED     16906    
unix  3      [ ]         STREAM     CONNECTED     16830    
unix  3      [ ]         STREAM     CONNECTED     18368    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17366    
unix  3      [ ]         STREAM     CONNECTED     17078    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     24820    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     13736    
unix  3      [ ]         STREAM     CONNECTED     13002    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    24811    
unix  3      [ ]         STREAM     CONNECTED     16673    
unix  3      [ ]         STREAM     CONNECTED     14577    
unix  2      [ ]         DGRAM                    12169    
unix  3      [ ]         STREAM     CONNECTED     16891    
unix  2      [ ]         DGRAM                    13768    
unix  3      [ ]         STREAM     CONNECTED     12958    
unix  3      [ ]         STREAM     CONNECTED     16453    /var/run/dbus/system_bus_socket
unix  2      [ ]         DGRAM                    18462    
unix  3      [ ]         STREAM     CONNECTED     18641    
unix  3      [ ]         STREAM     CONNECTED     17624    
unix  3      [ ]         STREAM     CONNECTED     15956    
unix  3      [ ]         STREAM     CONNECTED     17463    
unix  3      [ ]         STREAM     CONNECTED     15705    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17858    
unix  3      [ ]         STREAM     CONNECTED     17765    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     18645    @/tmp/.ICE-unix/1318
unix  3      [ ]         STREAM     CONNECTED     13268    /run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    13812    
unix  3      [ ]         STREAM     CONNECTED     17561    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17069    
unix  3      [ ]         STREAM     CONNECTED     17525    
unix  3      [ ]         STREAM     CONNECTED     16001    
unix  3      [ ]         STREAM     CONNECTED     17426    
unix  3      [ ]         STREAM     CONNECTED     14554    
unix  3      [ ]         STREAM     CONNECTED     13869    
unix  3      [ ]         STREAM     CONNECTED     18107    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     16924    
unix  3      [ ]         STREAM     CONNECTED     17620    
unix  3      [ ]         STREAM     CONNECTED     16693    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17761    
unix  2      [ ]         DGRAM                    13848    
unix  2      [ ]         DGRAM                    16443    
unix  3      [ ]         STREAM     CONNECTED     13689    
unix  2      [ ]         DGRAM                    17191    
unix  3      [ ]         STREAM     CONNECTED     13777    
unix  3      [ ]         STREAM     CONNECTED     13183    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     18081    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17536    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     60204    
unix  3      [ ]         STREAM     CONNECTED     60324    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         DGRAM                    17863    
unix  3      [ ]         STREAM     CONNECTED     17488    
unix  3      [ ]         STREAM     CONNECTED     15945    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17368    
unix  3      [ ]         STREAM     CONNECTED     12795    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17655    
unix  3      [ ]         STREAM     CONNECTED     16741    
unix  3      [ ]         STREAM     CONNECTED     17971    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17739    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17002    
unix  3      [ ]         STREAM     CONNECTED     16698    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     15076    
unix  3      [ ]         STREAM     CONNECTED     17467    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17422    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     17065    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17529    
unix  3      [ ]         STREAM     CONNECTED     16019    
unix  3      [ ]         STREAM     CONNECTED     24809    
unix  2      [ ]         DGRAM                    16583    
unix  3      [ ]         STREAM     CONNECTED     16017    
unix  3      [ ]         STREAM     CONNECTED     17199    
unix  3      [ ]         STREAM     CONNECTED     21784    
unix  3      [ ]         STREAM     CONNECTED     16902    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     16804    @/tmp/.ICE-unix/1318
unix  3      [ ]         STREAM     CONNECTED     14166    
unix  3      [ ]         STREAM     CONNECTED     18113    
unix  3      [ ]         STREAM     CONNECTED     16677    
unix  3      [ ]         STREAM     CONNECTED     17137    
unix  3      [ ]         STREAM     CONNECTED     16907    @/tmp/.ICE-unix/1318
unix  3      [ ]         STREAM     CONNECTED     60321    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     13733    /usr/local/nagios/var/rw/nagios.qh
unix  3      [ ]         STREAM     CONNECTED     13575    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     16831    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     13737    /usr/local/nagios/var/rw/nagios.qh
unix  3      [ ]         STREAM     CONNECTED     16557    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     18372    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     60212    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     15704    
unix  3      [ ]         STREAM     CONNECTED     17077    
unix  3      [ ]         STREAM     CONNECTED     21747    
unix  3      [ ]         STREAM     CONNECTED     17367    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     18642    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     16892    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     16662    
unix  3      [ ]         STREAM     CONNECTED     15933    
unix  3      [ ]         STREAM     CONNECTED     15934    
unix  2      [ ]         DGRAM                    14900    
unix  3      [ ]         STREAM     CONNECTED     14578    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     18644    
unix  3      [ ]         STREAM     CONNECTED     18106    
unix  3      [ ]         STREAM     CONNECTED     17437    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     16691    
unix  3      [ ]         STREAM     CONNECTED     14066    
unix  3      [ ]         STREAM     CONNECTED     13617    
unix  3      [ ]         STREAM     CONNECTED     17564    
unix  3      [ ]         STREAM     CONNECTED     17464    
unix  3      [ ]         STREAM     CONNECTED     17003    @/tmp/.ICE-unix/1318
unix  3      [ ]         DGRAM                    9182    
unix  3      [ ]         STREAM     CONNECTED     17627    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     16002    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     14214    
unix  3      [ ]         STREAM     CONNECTED     17859    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17764    
unix  3      [ ]         STREAM     CONNECTED     17526    @/tmp/dbus-AwGNdR3cyo
unix  3      [ ]         STREAM     CONNECTED     15947    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     18367    
unix  3      [ ]         STREAM     CONNECTED     13870    
unix  3      [ ]         STREAM     CONNECTED     12711    
unix  3      [ ]         DGRAM                    17862    
unix  3      [ ]         STREAM     CONNECTED     17070    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     15020    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     60208    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     17651    
unix  3      [ ]         STREAM     CONNECTED     17537    
unix  3      [ ]         STREAM     CONNECTED     16925    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17762    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17489    @/tmp/dbus-AwGNdR3cyo
unix  3      [ ]         STREAM     CONNECTED     15946    
unix  3      [ ]         STREAM     CONNECTED     60325    
unix  3      [ ]         STREAM     CONNECTED     17753    @/tmp/.ICE-unix/1318
unix  3      [ ]         STREAM     CONNECTED     16452    
unix  3      [ ]         STREAM     CONNECTED     17479    
unix  3      [ ]         STREAM     CONNECTED     16928    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     16742    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     18102    
unix  3      [ ]         STREAM     CONNECTED     18022    
unix  3      [ ]         STREAM     CONNECTED     16020    @/tmp/dbus-HC6dNkPGd2
unix  3      [ ]         STREAM     CONNECTED     17466    
unix  3      [ ]         STREAM     CONNECTED     17209    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     18080    
unix  3      [ ]         STREAM     CONNECTED     17530    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     24810    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17970    
unix  3      [ ]         STREAM     CONNECTED     17652    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17480    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     16018    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     15984    
unix  3      [ ]         STREAM     CONNECTED     13872    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     14073    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     13045    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17064    
unix  3      [ ]         STREAM     CONNECTED     18103    @/tmp/.ICE-unix/1318
unix  3      [ ]         STREAM     CONNECTED     17142    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     16904    
unix  3      [ ]         STREAM     CONNECTED     14613    
unix  3      [ ]         STREAM     CONNECTED     13574    
unix  3      [ ]         STREAM     CONNECTED     21771    
unix  3      [ ]         STREAM     CONNECTED     15937    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     14557    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     16827    
unix  3      [ ]         STREAM     CONNECTED     13734    
unix  3      [ ]         DGRAM                    9183    
unix  3      [ ]         STREAM     CONNECTED     16678    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     60323    
unix  3      [ ]         STREAM     CONNECTED     18114    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     17138    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17827    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     16663    
unix  3      [ ]         STREAM     CONNECTED     13044    
unix  3      [ ]         STREAM     CONNECTED     16833    
unix  3      [ ]         STREAM     CONNECTED     18640    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17075    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     15585    
unix  3      [ ]         STREAM     CONNECTED     18371    
unix  3      [ ]         STREAM     CONNECTED     14072    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     12597    
unix  3      [ ]         STREAM     CONNECTED     21785    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     15935    
unix  3      [ ]         STREAM     CONNECTED     13738    
unix  3      [ ]         STREAM     CONNECTED     13003    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17362    
unix  3      [ ]         STREAM     CONNECTED     16894    
unix  3      [ ]         STREAM     CONNECTED     16694    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     16008    
unix  3      [ ]         STREAM     CONNECTED     17565    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17067    
unix  3      [ ]         STREAM     CONNECTED     13819    
unix  3      [ ]         STREAM     CONNECTED     13618    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     15921    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17527    
unix  3      [ ]         STREAM     CONNECTED     14215    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17626    
unix  3      [ ]         STREAM     CONNECTED     16922    
unix  3      [ ]         STREAM     CONNECTED     17750    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     16927    
unix  3      [ ]         STREAM     CONNECTED     17538    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     17436    
unix  3      [ ]         STREAM     CONNECTED     17072    
unix  2      [ ]         DGRAM                    9171    
unix  3      [ ]         STREAM     CONNECTED     17427    
unix  3      [ ]         STREAM     CONNECTED     18674    
unix  3      [ ]         STREAM     CONNECTED     17499    
unix  3      [ ]         STREAM     CONNECTED     15983    
unix  3      [ ]         STREAM     CONNECTED     17854    
unix  3      [ ]         STREAM     CONNECTED     14606    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17865    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17743    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     60205    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17497    
unix  3      [ ]         STREAM     CONNECTED     16969    
unix  2      [ ]         DGRAM                    13673    
unix  2      [ ]         DGRAM                    17534    
unix  3      [ ]         STREAM     CONNECTED     17481    
unix  3      [ ]         STREAM     CONNECTED     17465    @/tmp/dbus-AwGNdR3cyo
unix  3      [ ]         STREAM     CONNECTED     17208    
unix  3      [ ]         STREAM     CONNECTED     16658    
unix  3      [ ]         STREAM     CONNECTED     15019    
unix  3      [ ]         STREAM     CONNECTED     16917    
unix  3      [ ]         STREAM     CONNECTED     13781    
unix  3      [ ]         STREAM     CONNECTED     17738    
unix  3      [ ]         STREAM     CONNECTED     16737    
unix  3      [ ]         STREAM     CONNECTED     60326    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     18069    @/tmp/dbus-1BXVw4diBr
unix  2      [ ]         DGRAM                    15710    
unix  3      [ ]         STREAM     CONNECTED     16495    
unix  2      [ ]         DGRAM                    14455    
unix  3      [ ]         STREAM     CONNECTED     15920    
unix  3      [ ]         STREAM     CONNECTED     24819    
unix  3      [ ]         STREAM     CONNECTED     18110    
unix  3      [ ]         STREAM     CONNECTED     17141    
unix  3      [ ]         STREAM     CONNECTED     16556    
unix  3      [ ]         STREAM     CONNECTED     21759    
unix  3      [ ]         STREAM     CONNECTED     16828    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     60320    
unix  3      [ ]         STREAM     CONNECTED     16905    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     13871    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     16679    
unix  3      [ ]         STREAM     CONNECTED     15043    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17136    
unix  2      [ ]         DGRAM                    18370    
unix  3      [ ]         STREAM     CONNECTED     17826    
unix  3      [ ]         STREAM     CONNECTED     12999    
unix  3      [ ]         STREAM     CONNECTED     16674    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     13735    /usr/local/nagios/var/rw/nagios.qh
unix  3      [ ]         STREAM     CONNECTED     16895    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     16834    @/tmp/.ICE-unix/1318
unix  3      [ ]         STREAM     CONNECTED     18639    
unix  3      [ ]         STREAM     CONNECTED     14020    
unix  3      [ ]         STREAM     CONNECTED     17363    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     15042    
unix  3      [ ]         STREAM     CONNECTED     13739    /usr/local/nagios/var/rw/nagios.qh
unix  3      [ ]         STREAM     CONNECTED     17074    
unix  3      [ ]         STREAM     CONNECTED     21760    
unix  3      [ ]         STREAM     CONNECTED     17528    @/tmp/.X11-unix/X0
unix  2      [ ]         DGRAM                    16572    
unix  3      [ ]         STREAM     CONNECTED     17781    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     16923    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17421    
unix  3      [ ]         STREAM     CONNECTED     16009    @/tmp/dbus-VUXGihT7QE
unix  3      [ ]         STREAM     CONNECTED     17462    
unix  3      [ ]         STREAM     CONNECTED     17068    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     16697    
unix  3      [ ]         STREAM     CONNECTED     16690    
unix  3      [ ]         STREAM     CONNECTED     16000    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17560    
unix  3      [ ]         STREAM     CONNECTED     17429    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     18023    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     17749    
unix  3      [ ]         STREAM     CONNECTED     18675    
unix  3      [ ]         STREAM     CONNECTED     17621    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     17855    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17500    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     15957    @/tmp/dbus-HC6dNkPGd2
unix  3      [ ]         STREAM     CONNECTED     14605    
unix  3      [ ]         STREAM     CONNECTED     14556    
unix  3      [ ]         STREAM     CONNECTED     17428    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     13874    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     17073    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     12598    
unix  3      [ ]         STREAM     CONNECTED     18068    
unix  3      [ ]         STREAM     CONNECTED     16738    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17498    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     14555    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     17535    
unix  3      [ ]         STREAM     CONNECTED     17200    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     13776    
unix  3      [ ]         STREAM     CONNECTED     17656    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     60211    
unix  3      [ ]         STREAM     CONNECTED     17482    /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     16659    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     17864    
unix  3      [ ]         STREAM     CONNECTED     17742    
unix  3      [ ]         STREAM     CONNECTED     15944    
unix  3      [ ]         STREAM     CONNECTED     13182    
unix  2      [ ]         DGRAM                    13710    
unix  3      [ ]         STREAM     CONNECTED     16970    @/tmp/dbus-1BXVw4diBr
unix  3      [ ]         STREAM     CONNECTED     15589    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     13873    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     13267    
unix  3      [ ]         STREAM     CONNECTED     15999    
unix  3      [ ]         STREAM     CONNECTED     60207    
unix  3      [ ]         STREAM     CONNECTED     17625    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     16918    @/tmp/dbus-1BXVw4diBr

Kod: Zaznacz cały

nagios log

[1475250990] Nagios 4.2.1 starting... (PID=4997)
[1475250990] Local time is Fri Sep 30 17:56:30 CEST 2016
[1475250990] LOG VERSION: 2.0
[1475250990] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1475250990] qh: core query handler registered
[1475250990] nerd: Channel hostchecks registered successfully
[1475250990] nerd: Channel servicechecks registered successfully
[1475250990] nerd: Channel opathchecks registered successfully
[1475250990] nerd: Fully initialized and ready to rock!
[1475250990] wproc: Successfully registered manager as @wproc with query handler
[1475250990] wproc: Registry request: name=Core Worker 5002;pid=5002
[1475250990] wproc: Registry request: name=Core Worker 5001;pid=5001
[1475250990] wproc: Registry request: name=Core Worker 5000;pid=5000
[1475250990] wproc: Registry request: name=Core Worker 4999;pid=4999
[1475250990] Successfully launched command file worker with pid 5003
[1475251072] Caught SIGTERM, shutting down...
[1475251072] Successfully shutdown... (PID=4997)
[1475251072] Event broker module 'NERD' deinitialized successfully.
[1475251073] Nagios 4.2.1 starting... (PID=5126)
[1475251073] Local time is Fri Sep 30 17:57:53 CEST 2016
[1475251073] LOG VERSION: 2.0
[1475251073] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1475251073] qh: core query handler registered
[1475251073] nerd: Channel hostchecks registered successfully
[1475251073] nerd: Channel servicechecks registered successfully
[1475251073] nerd: Channel opathchecks registered successfully
[1475251073] nerd: Fully initialized and ready to rock!
[1475251073] wproc: Successfully registered manager as @wproc with query handler
[1475251073] wproc: Registry request: name=Core Worker 5132;pid=5132
[1475251073] wproc: Registry request: name=Core Worker 5131;pid=5131
[1475251073] wproc: Registry request: name=Core Worker 5130;pid=5130
[1475251073] wproc: Registry request: name=Core Worker 5129;pid=5129
[1475251073] Successfully launched command file worker with pid 5149
[1475254673] Auto-save of retention data completed successfully.
[1475258273] Auto-save of retention data completed successfully.
[1475261873] Auto-save of retention data completed successfully.
[1475263455] Caught SIGTERM, shutting down...
[1475263455] Caught SIGTERM, shutting down...
[1475263456] Successfully shutdown... (PID=5126)
[1475263456] Event broker module 'NERD' deinitialized successfully.
[315792320] Nagios 4.2.1 starting... (PID=470)
[315792320] Local time is Fri Jan 04 01:05:20 CET 1980
[315792320] LOG VERSION: 2.0
[315792320] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[315792320] qh: core query handler registered
[315792320] nerd: Channel hostchecks registered successfully
[315792320] nerd: Channel servicechecks registered successfully
[315792320] nerd: Channel opathchecks registered successfully
[315792320] nerd: Fully initialized and ready to rock!
[315792320] wproc: Successfully registered manager as @wproc with query handler
[315792320] wproc: Registry request: name=Core Worker 508;pid=508
[315792320] wproc: Registry request: name=Core Worker 507;pid=507
[315792320] wproc: Registry request: name=Core Worker 509;pid=509
[315792320] wproc: Registry request: name=Core Worker 506;pid=506
[315792328] Successfully launched command file worker with pid 601
[1475510581] Warning: A system time change of 1159717589 seconds (13422d 15h 46m 29s forwards in time) has been detected.  Compensating...
[1475513511] Auto-save of retention data completed successfully.

Awatar użytkownika
pawkrol
Moderator
Posty: 936
Rejestracja: 03 kwietnia 2011, 10:25

Re: Nagios 404 not found

Post autor: pawkrol » 04 października 2016, 12:07

Jakim adresem url wchodzisz do nagiosa?
Pokaż konfig apacha dla nagiosa.

jantar
Posty: 75
Rejestracja: 22 kwietnia 2014, 14:51

Re: Nagios 404 not found

Post autor: jantar » 05 października 2016, 10:50

Problem sam się rozwiązał - wczoraj padł mi dysk w sprzęcie na którym się bawię. Po szybkiej wymianie, instalacji systemu i nagiosa z poziomu roota teraz wszystko działa. Nie wiem w czym był problem, podejrzewam, że albo przyczyną było instalowanie z poziomu zwykłego usera przez sudo, albo coś nagrzebałem w apachu, bo wcześniej się nim bawiłem, a jak wiadomo pierwszy raz zawsze rodzi się w bólach i nie zawsze jest poprawny.
Co do configa wygląda jak ten poprzedni z cudzysłowy przy aliasach, ale wiadomo, kropka w kropkę nie zapamiętałem. Do nagiosa próbowałem dostać się przez localhost, 127 i lokalne ip/nagios.

Jeszcze raz dzięki za zaangażowanie.

ODPOWIEDZ