libwrap refused connection to nrpe (libwrap=nrpe) from

nagios 서버에서 호스트에 대한 체크가 정상적으로 이루어지지 않고, 시스템로그에 다음과 같은 메시지가 확인된다면,

xinetd[30023]: libwrap refused connection to nrpe (libwrap=nrpe) from AIX IP

다음 두가지 포함하여 보안 설정에서 nagios 서버에 대한 허용설정이 되어 있는지 확인.

  1. iptables 설정 확인
  2. /etc/hosts.allow,/etc/hosts.deny 설정 확인

리눅스 GPT 삭제 방법

  • 디스크에 GPT 설정이되어 있을 경우 fdisk에서 다음과 같이 GPT 지원이 안된다는 메시지가 출력된다.
    WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
  • GPT 파티션과 관련된 부분은 fdisk가 아닌 parted 유틸을 사용해야 제어가 가능한데,
  • GPT 파티션을 삭제하려고 한다면 다음과 같이 진행하면 된다.
# parted /dev/sdb
GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
parted: invalid token: msdos
Yes/No? y
New disk label type? [msdos]?
(parted) quit
Information: Don't forget to update /etc/fstab, if necessary.
  • fdisk로 디스크 리스트를 출력해보면 위의 WARNING 메시지가 사라진 것을 확인할 수 있다.
  • GPT 삭제 작업후에는 데이터는 물론 모든 파티션 설정이 삭제되므로 주의해서 작업을 진행하고, 작업 후 파티셔닝 부터 포맷 작업을 다시 해주어야 한다.