Windows 서비스 (예 : CPU로드, 메모리 사용량 등)를 모니터링해야하므로 Nagios 모니터링 도구가 설치되었습니다. 설치가 완료되고 'check_nt'플러그인도 설치됩니다. 이 오류가 발생하지 않았지만 NSClient ++ 에이전트에서 스크립트를 실행하는 동안 'Connection refused by host'오류가 계속 발생합니다.Nagios - Connection refused & Socket timeout
./check_nt -H 10.112.32.78 -p 1248 -v MEMUSE -w 80 -c 90
Connection refused by host
./check_nt -H 10.112.32.78 -p 1248 -v MEMUSE -w 80 -c 90
Socket timeout after 10 seconds
나는 Nagios는이 아래로, 제대로 작동하는지 확인했습니다.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 8 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Nagios의 새로운 M은, 사전에 감사합니다 :)
당신이 제공됩니다 시도 SELinux를
에 대해을 이야기하고 있지 않다 NSClient ++의 설정과 실행중인 Windows 버전에 대한 세부 정보. 종종 방화벽 규칙이 이러한 문제의 주요 원인이되었으므로 방화벽 규칙을 확인해 볼 가치가 있습니다. – lik
예 hv chked 방화벽이 이것을 차단하지 않지만 어떻게 설정에 접근합니까? – Manroop