PROBLEMA COM SERVIDOR NAGIOS NSCLIENT++ [RESOLVIDO]

1. PROBLEMA COM SERVIDOR NAGIOS NSCLIENT++ [RESOLVIDO]

Jorge Augusto Rabello Pinto
jorgerabello

(usa Ubuntu)

Enviado em 11/09/2010 - 20:22h

Prezados tenho um monitoramento com o Nagios e o NSCLIENT++ em servidores windows.
Precisei refazer o servidor nagios e agora os "passive checks" nao funcionam.
NO syslog e no log do nagios nao tem nada e o nagios "starta" normalmente.

No cliente quando executo NSCLIENT++ /teste tenho a seguinte saida no log:


Launching test mode - client mode
d NSClient++.cpp(1178) Enabling debug mode...
d NSClient++.cpp(551) Attempting to start NSCLient++ - 0.3.8.75 2010-05-27
d NSClient++.cpp(969) Loading plugin: CheckDisk...
d NSClient++.cpp(969) Loading plugin: Event log Checker....
d NSClient++.cpp(969) Loading plugin: Check External Scripts...
d NSClient++.cpp(969) Loading plugin: Helper function...
d NSClient++.cpp(969) Loading plugin: CheckSystem...
d NSClient++.cpp(969) Loading plugin: CheckTaskSched...
d NSClient++.cpp(969) Loading plugin: File logger...
d \PDHCollector.cpp(73) Autodetected w2k or later, using w2k PDH counters.
d \PDHCollector.cpp(110) Using index to retrive counternames
l \FileLogger.cpp(93) Log path is: C:\NSClient++\\nsclient.log
d NSClient++.cpp(969) Loading plugin: LUAScript...
d NSClient++.cpp(969) Loading plugin: NRPE client (w/ SSL)...
d \NRPEClient.cpp(51) humm...
d NSClient++.cpp(969) Loading plugin: NRPE server (w/ SSL)...
d \NRPEListener.cpp(91) Loading all commands (from NRPE)
d \PDHCollector.cpp(130) Found countername: CPU: \Processador(_total)\% tempo de processador
d \PDHCollector.cpp(131) Found countername: UPTIME: \Sistema\Tempo de ativação do sistema
d \PDHCollector.cpp(132) Found countername: MCL: \Memória\Limite de confirmação
d \PDHCollector.cpp(133) Found countername: MCB: \Memória\Bytes confirmados
d \NRPEListener.cpp(121) Starting NRPE socket...
d NSClient++.cpp(969) Loading plugin: NSCAAgent (w/ encryption)...
d \NSCAThread.cpp(77) Time difference for NSCA server is: 0
e \Socket.h(677) bind failed: 10048: Normalmente é permitida apenas uma utilização de cada endereço de soquete (protocolo/endereço de rede/porta).
e \Socket.h(708) Socket did not start properly, we will now do nothing...
d \NSCAThread.cpp(86) Only reporting: ok,warning,critical,unknown
d NSClient++.cpp(969) Loading plugin: NSClient server...
d \NSCAThread.cpp(187) Drifting: 0
d NSClient++.cpp(969) Loading plugin: SystemTray...
e \Socket.h(677) bind failed: 10048: Normalmente é permitida apenas uma utilização de cada endereço de soquete (protocolo/endereço de rede/porta).
e \Socket.h(708) Socket did not start properly, we will now do nothing...
d NSClient++.cpp(671) NSCLient++ - 0.3.8.75 2010-05-27 Started!
l NSClient++.cpp(455) Using settings from: INI-file
l NSClient++.cpp(456) Enter command to inject or exit to terminate...
d \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are not on Vista...
d \NSCAThread.cpp(205) Executing (from NSCA): CPU Load
d NSClient++.cpp(1106) Injecting: alias_cpu: warn=0, crit=90, time=20m, time=10s, time=4
d NSClient++.cpp(1106) Injecting: checkCPU: warn=80, crit=90, time=5m, time=1m, time=30s
d NSClient++.cpp(1142) Injected Result: OK 'OK CPU Load ok.'
d NSClient++.cpp(1143) Injected Performance Result: ''5m'=0%;80;90; '1m'=2%;80;90; '30s'=4%;80;90; '
d NSClient++.cpp(1142) Injected Result: OK 'OK CPU Load ok.'
d NSClient++.cpp(1143) Injected Performance Result: ''5m'=0%;80;90; '1m'=2%;80;90; '30s'=4%;80;90; '
d \NSCAThread.cpp(205) Executing (from NSCA): Disk Space
d NSClient++.cpp(1106) Injecting: alias_disk:
d NSClient++.cpp(1106) Injecting: CheckDriveSize: MinWarn=10%, MinCrit=5%, CheckAll, FilterType=FIXED
d NSClient++.cpp(1142) Injected Result: OK 'OK: All drives within bounds.'
d NSClient++.cpp(1143) Injected Performance Result: ''C:\ %'=23%;10;5; 'C:\'=115.27G;14.90;7.45;0;149.0; 'E:\ %'=100%;10;5; 'E:\'=93.55M;95386.71;47693.35;0;953867.18; 'G:\ %'=41%;10;5; 'G:\'=28.84G;4.88;2.44;0;48.82; 'H:\ %'=67%;10;5; 'H:\'=49.60G;14.64;7.32;0;146.4; 'I:\ %'=20%;10;5; 'I:\'=79.01G;9.76;4.88;0;97.66; 'J:\ %'=88%;10;5; 'J:\'=3.16G;2.44;1.2;0;24.40; 'K:\ %'=24%;10;5; 'K:\'=76.39G;9.95;4.97;0;99.53; 'M:\ %'=41%;10;5; 'M:\'=28.87G;4.88;2.44;0;48.83; '
d NSClient++.cpp(1142) Injected Result: OK 'OK: All drives within bounds.'
d NSClient++.cpp(1143) Injected Performance Result: ''C:\ %'=23%;10;5; 'C:\'=115.27G;14.90;7.45;0;149.0; 'E:\ %'=100%;10;5; 'E:\'=93.55M;95386.71;47693.35;0;953867.18; 'G:\ %'=41%;10;5; 'G:\'=28.84G;4.88;2.44;0;48.82; 'H:\ %'=67%;10;5; 'H:\'=49.60G;14.64;7.32;0;146.4; 'I:\ %'=20%;10;5; 'I:\'=79.01G;9.76;4.88;0;97.66; 'J:\ %'=88%;10;5; 'J:\'=3.16G;2.44;1.2;0;24.40; 'K:\ %'=24%;10;5; 'K:\'=76.39G;9.95;4.97;0;99.53; 'M:\ %'=41%;10;5; 'M:\'=28.87G;4.88;2.44;0;48.83; '
d \NSCAThread.cpp(205) Executing (from NSCA): Ram
d NSClient++.cpp(1106) Injecting: checkMem: MaxWarn=80%, MaxCrit=90%, ShowAll, type=page
d NSClient++.cpp(1142) Injected Result: OK 'OK: page file: 290M'
d NSClient++.cpp(1143) Injected Performance Result: ''page file %'=11%;80;90; 'page file'=289.90M;1956.81;2201.42;0;2446.02; '
d \NSCAThread.cpp(205) Executing (from NSCA):
d NSClient++.cpp(1106) Injecting: check_ok:
d NSClient++.cpp(1106) Injecting: CheckOK: Everything, is, fine!
d NSClient++.cpp(1142) Injected Result: OK 'Everythingisfine!'
d NSClient++.cpp(1143) Injected Performance Result: ''
d NSClient++.cpp(1142) Injected Result: OK 'Everythingisfine!'
d NSClient++.cpp(1143) Injected Performance Result: ''
d \NSCAThread.cpp(261) Sending to server...
d \NSCAThread.cpp(268) Looked up tiffel.zapto.org to 187.22.223.86
l \NSCAThread.cpp(294) Could not read a full NSCA hdr packet from socket, only got: 0
d \NSCAThread.cpp(205) Executing (from NSCA): CPU Load
d NSClient++.cpp(1106) Injecting: alias_cpu: warn=0, crit=90, time=20m, time=10s, time=4
d NSClient++.cpp(1106) Injecting: checkCPU: warn=80, crit=90, time=5m, time=1m, time=30s
d NSClient++.cpp(1142) Injected Result: OK 'OK CPU Load ok.'
d NSClient++.cpp(1143) Injected Performance Result: ''5m'=0%;80;90; '1m'=2%;80;90; '30s'=4%;80;90; '
d NSClient++.cpp(1142) Injected Result: OK 'OK CPU Load ok.'
d NSClient++.cpp(1143) Injected Performance Result: ''5m'=0%;80;90; '1m'=2%;80;90; '30s'=4%;80;90; '
d \NSCAThread.cpp(205) Executing (from NSCA): Disk Space
d NSClient++.cpp(1106) Injecting: alias_disk:
d NSClient++.cpp(1106) Injecting: CheckDriveSize: MinWarn=10%, MinCrit=5%, CheckAll, FilterType=FIXED
d NSClient++.cpp(1142) Injected Result: OK 'OK: All drives within bounds.'
d NSClient++.cpp(1143) Injected Performance Result: ''C:\ %'=23%;10;5; 'C:\'=115.27G;14.90;7.45;0;149.0; 'E:\ %'=100%;10;5; 'E:\'=93.55M;95386.71;47693.35;0;953867.18; 'G:\ %'=41%;10;5; 'G:\'=28.84G;4.88;2.44;0;48.82; 'H:\ %'=67%;10;5; 'H:\'=49.60G;14.64;7.32;0;146.4; 'I:\ %'=20%;10;5; 'I:\'=79.01G;9.76;4.88;0;97.66; 'J:\ %'=88%;10;5; 'J:\'=3.16G;2.44;1.2;0;24.40; 'K:\ %'=24%;10;5; 'K:\'=76.39G;9.95;4.97;0;99.53; 'M:\ %'=41%;10;5; 'M:\'=28.87G;4.88;2.44;0;48.83; '
d NSClient++.cpp(1142) Injected Result: OK 'OK: All drives within bounds.'
d NSClient++.cpp(1143) Injected Performance Result: ''C:\ %'=23%;10;5; 'C:\'=115.27G;14.90;7.45;0;149.0; 'E:\ %'=100%;10;5; 'E:\'=93.55M;95386.71;47693.35;0;953867.18; 'G:\ %'=41%;10;5; 'G:\'=28.84G;4.88;2.44;0;48.82; 'H:\ %'=67%;10;5; 'H:\'=49.60G;14.64;7.32;0;146.4; 'I:\ %'=20%;10;5; 'I:\'=79.01G;9.76;4.88;0;97.66; 'J:\ %'=88%;10;5; 'J:\'=3.16G;2.44;1.2;0;24.40; 'K:\ %'=24%;10;5; 'K:\'=76.39G;9.95;4.97;0;99.53; 'M:\ %'=41%;10;5; 'M:\'=28.87G;4.88;2.44;0;48.83; '
d \NSCAThread.cpp(205) Executing (from NSCA): Ram
d NSClient++.cpp(1106) Injecting: checkMem: MaxWarn=80%, MaxCrit=90%, ShowAll, type=page
d NSClient++.cpp(1142) Injected Result: OK 'OK: page file: 290M'
d NSClient++.cpp(1143) Injected Performance Result: ''page file %'=11%;80;90; 'page file'=289.9M;1956.81;2201.42;0;2446.02; '
d \NSCAThread.cpp(205) Executing (from NSCA):
d NSClient++.cpp(1106) Injecting: check_ok:
d NSClient++.cpp(1106) Injecting: CheckOK: Everything, is, fine!
d NSClient++.cpp(1142) Injected Result: OK 'Everythingisfine!'
d NSClient++.cpp(1143) Injected Performance Result: ''
d NSClient++.cpp(1142) Injected Result: OK 'Everythingisfine!'
d NSClient++.cpp(1143) Injected Performance Result: ''
d \NSCAThread.cpp(261) Sending to server...
d \NSCAThread.cpp(268) Looked up tiffel.zapto.org to 187.22.223.86
l \NSCAThread.cpp(294) Could not read a full NSCA hdr packet from socket, only got: 0

Procurei na internet pela ultima linha
l \NSCAThread.cpp(294) Could not read a full NSCA hdr packet from socket, only got: 0

Mas nao achei nada.
Algue aqui saberia como resolver ?

Grato !



  


2. Re: PROBLEMA COM SERVIDOR NAGIOS NSCLIENT++ [RESOLVIDO]

Rafael Umbelino
tlaloc

(usa Gentoo)

Enviado em 11/09/2010 - 20:25h

Compilado na mão ou era binário?
Já tentou realizar um debug da função? Reinstalar o NSCLIENT?


3. Re: PROBLEMA COM SERVIDOR NAGIOS NSCLIENT++ [RESOLVIDO]

Rafael Umbelino
tlaloc

(usa Gentoo)

Enviado em 11/09/2010 - 20:27h

E pelo log, a princípio ele tá informando que não conseguiu iniciar os sockets corretamente.


4. Re: PROBLEMA COM SERVIDOR NAGIOS NSCLIENT++ [RESOLVIDO]

Rafael Umbelino
tlaloc

(usa Gentoo)

Enviado em 11/09/2010 - 20:33h

E só por curiosidade... você pode reiniciar algum dos servidores?


5. Re: PROBLEMA COM SERVIDOR NAGIOS NSCLIENT++ [RESOLVIDO]

Jorge Augusto Rabello Pinto
jorgerabello

(usa Ubuntu)

Enviado em 15/09/2010 - 15:06h

Ola tlaloc, obrigado pela ajuda, entao esse nagios é instalação compilada na mão.
Eu consegui hoje ter um tempo para desinstalar e reinstalar o NSCLient++ estou fazendo isso agora, e quando terminar vou pedir autorização para reiniciar um dos servers e ai posto aqui o que houve.

No syslog nao chegam as mensagens que o Nagios esta recebendo os pacotes como acontecia

Muito Obrigado !





6. Re: PROBLEMA COM SERVIDOR NAGIOS NSCLIENT++ [RESOLVIDO]

Rafael Umbelino
tlaloc

(usa Gentoo)

Enviado em 15/09/2010 - 21:02h

[*****] dessas coisas compiladas na mão é que SEMPRE da um pau muito louco na hora de atualizar ou refazer. O bom é sempre trabalhar com binários.

Qual distro você tá usando e como compilou?
Vou aguardar essa reinstalação aí. Tô de olho.



  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts