Not Running

1. Not Running

Vitor Roberto Vicentini
vitorvicentini

(usa Debian)

Enviado em 07/11/2016 - 15:42h

Boa tarde, executei a instalação conforme as dicas aqui do site, mas ao abrir a tela do nagios, exibe a mensagem not running, algué, poderia me ajudar com isso? Obrigado!

root@nagios:/home/vitor# sudo netstat -nltp
Conexões Internet Ativas (sem os servidores)
Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estado PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* OUÇA 580/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* OUÇA 966/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* OUÇA 951/exim4
tcp 0 0 0.0.0.0:60685 0.0.0.0:* OUÇA 553/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* OUÇA 544/rpcbind
tcp6 0 0 :::22 :::* OUÇA 580/sshd
tcp6 0 0 ::1:631 :::* OUÇA 966/cupsd
tcp6 0 0 ::1:25 :::* OUÇA 951/exim4
tcp6 0 0 :::45375 :::* OUÇA 553/rpc.statd
tcp6 0 0 :::111 :::* OUÇA 544/rpcbind
tcp6 0 0 :::80 :::* OUÇA 7067/apache2

===================================================================================

root@nagios:/home/vitor# ps faux|grep -iE "apache|http|nagio"
avahi 594 0.0 0.0 32224 3044 ? Ss 13:21 0:00 avahi-daemon: running [nagios.local]
root 1928 0.0 0.2 192232 23076 ? S 13:23 0:00 /usr/lib/kde4/libexec/kio_http_cache_cleaner
vitor 4741 0.0 0.2 193032 23900 ? S 13:31 0:00 \_ /usr/lib/kde4/libexec/kio_http_cache_cleaner
vitor 10701 0.0 0.2 302568 23044 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] http local:/tmp/ksocket-vito
vitor 10703 0.0 0.3 304536 26072 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10706 0.0 0.3 304544 26076 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10736 0.0 0.3 304516 25968 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10737 0.0 0.3 304524 26008 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10740 0.0 0.3 304532 25968 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10741 0.0 0.3 304532 25392 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10742 0.0 0.3 304548 25392 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10744 0.0 0.3 304548 26016 ? S 15:36 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10748 0.0 0.3 304532 25400 ? S 15:37 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10938 0.0 0.2 302580 23504 ? S 15:37 0:00 \_ kdeinit4: kio_http [kdeinit] http local:/tmp/ksocket-vito
vitor 10940 0.2 0.3 304524 26080 ? S 15:37 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10973 0.1 0.3 304516 26072 ? Sl 15:37 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10974 0.1 0.3 304516 26072 ? S 15:37 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10975 0.1 0.3 304512 26080 ? S 15:37 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10979 0.0 0.3 304536 25760 ? S 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 10980 0.0 0.3 304512 25760 ? S 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11187 0.2 0.3 304520 26076 ? S 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11188 0.1 0.3 304516 26072 ? Sl 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11189 0.1 0.3 304516 26072 ? S 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11195 0.1 0.3 304516 26076 ? S 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11197 0.1 0.3 304676 26088 ? S 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11199 0.1 0.3 304544 26080 ? Sl 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11200 0.1 0.3 304520 26080 ? S 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11201 0.1 0.3 304516 26076 ? Sl 15:38 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11486 0.2 0.3 304516 26060 ? Sl 15:40 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11487 0.3 0.3 304516 26072 ? S 15:40 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11488 0.2 0.3 304516 26072 ? S 15:40 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11490 0.2 0.3 304516 26076 ? S 15:40 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11492 0.2 0.3 304540 26072 ? S 15:40 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
vitor 11497 0.2 0.3 304556 26072 ? S 15:40 0:00 \_ kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-vit
nagios 6993 0.0 0.0 28204 2488 ? Ss 15:17 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 6995 0.0 0.0 12104 2260 ? S 15:17 0:00 \_ /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 6996 0.0 0.0 12104 2268 ? S 15:17 0:00 \_ /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 6997 0.0 0.0 12104 2264 ? S 15:17 0:00 \_ /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 6998 0.0 0.0 12104 2176 ? S 15:17 0:00 \_ /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 6999 0.0 0.0 12104 2272 ? S 15:17 0:00 \_ /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 7000 0.0 0.0 12104 2180 ? S 15:17 0:00 \_ /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 7017 0.0 0.0 27580 348 ? S 15:17 0:00 \_ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 7067 0.0 0.2 227784 21988 ? Ss 15:17 0:00 /usr/sbin/apache2 -k start
www-data 7070 0.0 0.0 227868 7744 ? S 15:17 0:00 \_ /usr/sbin/apache2 -k start
www-data 7071 0.0 0.1 228276 13068 ? S 15:17 0:00 \_ /usr/sbin/apache2 -k start
www-data 7072 0.0 0.1 228536 13236 ? S 15:17 0:00 \_ /usr/sbin/apache2 -k start
www-data 7073 0.0 0.1 228380 12796 ? S 15:17 0:00 \_ /usr/sbin/apache2 -k start
www-data 7074 0.0 0.1 228072 11748 ? S 15:17 0:00 \_ /usr/sbin/apache2 -k start
www-data 7140 0.0 0.1 228072 11976 ? S 15:17 0:00 \_ /usr/sbin/apache2 -k start
www-data 7146 0.0 0.1 227856 8652 ? S 15:17 0:00 \_ /usr/sbin/apache2 -k start
www-data 7154 0.0 0.1 228072 11752 ? S 15:18 0:00 \_ /usr/sbin/apache2 -k start
www-data 7155 0.0 0.1 228080 12084 ? S 15:18 0:00 \_ /usr/sbin/apache2 -k start
www-data 7156 0.0 0.1 228060 12120 ? S 15:18 0:00 \_ /usr/sbin/apache2 -k start
www-data 7157 0.0 0.1 227848 8644 ? S 15:18 0:00 \_ /usr/sbin/apache2 -k start
root 11625 0.0 0.0 12748 2124 pts/1 S+ 15:40 0:00 \_ grep -iE apache|http|nagio




  


2. Re: Not Running

thinomar
thinomar

(usa Linux Mint)

Enviado em 07/11/2016 - 16:01h

Dá um
service nagios status 

Se estiver stop, dá um
service nagios start 


(sei que parece coisa boba, mas as vezes acontece)


3. Not Running

Vitor Roberto Vicentini
vitorvicentini

(usa Debian)

Enviado em 07/11/2016 - 16:25h

Executei o procedimento mas agora me retornou que o serviço está inativo, poderia me ajudar a encontrar a causa?
root@nagios:/usr/src/nagios-4.1.1# service nagios status
● nagios.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
root@nagios:/usr/src/nagios-4.1.1# service nagios start
Failed to start nagios.service: Unit nagios.service failed to load: No such file or directory.



4. Re: Not Running

thinomar
thinomar

(usa Linux Mint)

Enviado em 08/11/2016 - 11:53h

Faz assim, cria o service do Nagios (como root):
vim /etc/systemd/system/nagios.service 

Cola isso nele:
[Unit]
Description=Nagios
BindTo=network.target

[Install]
WantedBy=multi-user.target

[Service]
User=nagios
Group=nagios
Type=simple
ExecStart=/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg

Pra salvar um arquivo no vim, basta pressionar ESC, digitar :wq e dar enter.

Depois tente isso:
systemctl enable /etc/systemd/system/nagios.service
systemctl start nagios
systemctl status nagios

Por fim, reinicie o Nagios:
/etc/init.d/nagios restart 







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts