centreon 설치 사용 프로 세 스 로그 오류 처리
1.service ndo2db start 를 사용 하여 nod2db 를 시작 할 때 오류 보고:
Starting ndo2db:Could not bind socket: Address already in usedone.
service ndo2db status 를 사용 하여 상 태 를 볼 때 오류 보고:
ndo2db is not running but subsystem locked .
해결 방법:
#vim /usr/local/nagios/etc/ndo2db.cfg
socket_name=/var/run/ndo.sock
lock_file=/usr/local/nagios/var/ndo2db.lock
#killall ndo2db
#service ndo2db restart
2.nagios 로그
SERVER ndo2db: Warning: queue send error, retrying...
해결 방법:
#vim /etc/sysctl.conf
kernel.msgmax = 131072000
kernel.msgmnb = 131072000
kernel.msgmni = 65536000
3、/usr/local/centreon/log/nagiosPerfTrace.log
Error: Can't locate /etc/centreon/conf.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/vendor_perl/centreon/script.pm line 140.
해결 방법:
#vim /usr/share/perl5/vendor_perl/centreon/script.pm
config_file => "/usr/local/centreon/etc/conf.pm"
4、/usr/local/centreon/log/centreontrapd.log
couldn't do /etc/centreon/centreontrapd.pm: No such file or directory
couldn't run /etc/centreon/centreontrapd.pm
해결 방법:
#find / -name centreontrapd.fp
/usr/share/perl5/vendor_perl/centreon/script/centreontrapd.pm
#vim /usr/share/perl5/vendor_perl/centreon/scripte/centreontrapd.pm
/etc/centreon/centreontrapd.pm
/usr/share/perl5/vendor_perl/centreon/script/centreontrapd.pm(교체)
5.nagios 의 bug
nagios 로그 오류 wproc: Unknown job type: 10
패 치 는 아래 와 같다.
diff --git a/base/workers.c b/base/workers.c
index 881e434..d1e1f8d 100644
--- a/base/workers.c
+++ b/base/workers.c
@@ -285,6 +285,8 @@ static void destroy_job(struct wproc_job *job)
case WPJOB_SVC_EVTHANDLER:
case WPJOB_GLOBAL_HOST_EVTHANDLER:
case WPJOB_HOST_EVTHANDLER:
+ case WPJOB_HOST_PERFDATA:
+ case WPJOB_SVC_PERFDATA:
/* these require nothing special */
break;
case WPJOB_CALLBACK:
@@ -763,6 +765,11 @@ static int handle_worker_result(int sd, int events, void *arg)
run_job_callback(job, &wpres, 0);
break;
+ case WPJOB_HOST_PERFDATA:
+ case WPJOB_SVC_PERFDATA:
+ /* these require nothing special */
+ break;
+
default:
logit(NSLOG_RUNTIME_WARNING, TRUE, "Worker %d: Unknown jobtype: %d
", wp->pid, job->type);
break;
6./var/log/message 에 데이터베이스 오류 가 많 습 니 다.
ndo2db: Error: mysql_query() failed for 'INSERT INTO nagios_programstatus SET instance_id='1', status_update_time=FROM_UNIXTIME(1397007698), program_start_time=FROM_UNIXTIME(1397007639), is_currently_running='1', process_id='4841', daemon_mode='1', last_command_check=FROM_UNIXTIME(0), last_log_rotation=FROM_UNIXTIME(0), notifications_enabled='1', active_service_checks_enabled='1', passive_service_checks_enabled='1', active_host_checks_enabled='1', passive_host_checks_enabled='1', event_handlers_enabled='1', flap_detection_enabled='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_hosts='0', obsess_over_services='0', modified_host_attributes='0', modified_service_attributes='0', global_host_event_handler='', global_service_event_handler='' ON DUPLICATE KEY UPDATE instance_id='1', status_update_time=FROM_UNIXTIME(1397007698), program_start_time=FROM_UNIXTIME(1397007639), is_currently_running='1', process_id='4841', daemon_mode='1', last_command_check=FROM_UNIXTIME(0), last_log_rotation=FROM_UNIXTIME(0), notifications_enabled='1', active_service_checks_enabled='1', passive_service_checks_enabled='1', active_host_checks_enabled='1', passive_host_checks_enabled='1', event_handlers_enabled='1', flap_detection_enabled='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_hosts='0', obsess_over_services='0', modified_host_attributes='0', modified_service_attributes='0', global_host_event_handler='', global_service_event_handler='''
해결 방법:
데이터베이스 에 연결
INSERT INTO nagios_programstatus SET status_update_time=FROM_UNIXTIME(1397007698), program_start_time=FROM_UNIXTIME(1397007639), is_currently_running='1', process_id='4841', daemon_mode='1', last_command_check=FROM_UNIXTIME(0), last_log_rotation=FROM_UNIXTIME(0), notifications_enabled='1', active_service_checks_enabled='1', passive_service_checks_enabled='1', active_host_checks_enabled='1', passive_host_checks_enabled='1', event_handlers_enabled='1', flap_detection_enabled='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_hosts='0', obsess_over_services='0', mo dified_host_attributes='0', modified_service_attributes='0', global_host_event_handler='', global_service_event_handler=''
7./var/log/messages 에서 오 류 를 보고 합 니 다.
ndo2db: Error: mysql_query() failed for 'DELETE FROM nagios_service_parentservices WHERE instance_id='1''
ndo2db: mysql_error: 'Table 'centreon_status.nagios_service_parentservices' doesn't exist'
해결 방법:
데이터베이스 연결
use centreon_status;
create table nagios_service_parentservices( instance_id int(11) default 1);
8./var/log/messages 에서 오 류 를 보고 합 니 다.
ndo2db: Error: mysql_query() failed for 'INSERT INTO nagios_contacts SET instance_id='1', config_type='1', contact_object_id='60', alias='admin', email_address='danhanwen@sinoicity\.com', pager_address='', host_timeperiod_object_id='55', service_timeperiod_object_id='55', host_notifications_enabled='1', service_notifications_enabled='1', can_submit_commands='1', notify_service_recovery='0', notify_service_warning='0', notify_service_unknown='0', notify_service_critical='0', notify_service_flapping='0', notify_service_downtime='0', notify_host_recovery='0', notify_host_down='0', notify_host_unreachable='0', notify_host_flapping='0', notify_host_downtime='0', minimum_importance='0' ON DUPLICATE KEY UPDATE instance_id='1', config_type='1', contact_object_id='60', alias='admin', email_address='danhanwen@sinoicity\.com', pager_address='', host_timeperiod_object_id='55', service_timeperiod_object_id='55', host_notifications_enabled='1', service_notifications_enabled='1', can_submit_commands='1', notify_service_recovery='0', notify_service_warning='0', notify_service_unknown='0', notify_service_critical='0', notify_service_flapping='0', notify_service_downtime='0', notify_host_recovery='0', notify_host_down='0', notify_host_unreachable='0', notify_host_flapping='0', notify_host_downtime='0', minimum_importance='0''
Apr 9 09:29:17 localhost ndo2db: mysql_error: 'Unknown column 'minimum_importance' in 'field list''
해결 방법:
데이터베이스 에 연결
use centreon_status;
alter table nagios_contacts add minimum_importance int(11) not Null Default 0;
INSERT INTO nagios_contacts SET instance_id='1', config_type='1', contact_object_id='60', alias='admin', email_address='danhanwen@sinoicity\.com', pager_address='', host_timeperiod_object_id='55', service_timeperiod_object_id='55', host_notifications_enabled='1', service_notifications_enabled='1', can_submit_commands='1', notify_service_recovery='0', notify_service_warning='0', notify_service_unknown='0', notify_service_critical='0', notify_service_flapping='0', notify_service_downtime='0', notify_host_recovery='0', notify_host_down='0', notify_host_unreachable='0', notify_host_flapping='0', notify_host_downtime='0', minimum_importance='0'
데이터베이스 오 류 를 제거 한 후 정확 한 데이터베이스 파일 을 내 보 내 고 다시 설치 할 때 mysqldump 를 통 해 데이터 베 이 스 를 초기 화 하 는 것 을 권장 합 니 다.
이 글 은'플 레 메 밴드'블 로그 에서 나 온 것 으로 전 재 를 사절 합 니 다!
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
centreon 설치 사용 프로 세 스 로그 오류 처리이전 centreon 배치 문서 에 따라 centreon 서버 를 설치 하고 사용 할 때 centreon,nagios,시스템 로그 에 많은 오류 가 발생 한 것 을 발 견 했 습 니 다.또한 centreon 웹 페이...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.