나는 스크립트를 변경하는 컴파일러는 필요하지 않은 플러그인이 서비스의 정의를 사용하여 BASH. 필요에 추가 연락처 그룹의 이름을 줄만을 위해 특정 서비스를 정의 합니다. 그래서 내가 시작이다.
define service {
use sites-service
host_name my_host
service_description check_reboot_os_updates
check_command check_reboot_os_updates
contact_groups contactgroup1
servicegroups MyGroup
}
define service {
use linux-service
host_name my_host
service_description other_description
check_command other_command
contact_groups contactgroup1
servicegroups MyGroup
}
하고 싶만 추가 연락처 선택 그룹 라인입니다. 그렇게 말하고 싶었을 추가 연락처 그룹의 리눅스 서비스는 다음과 같다.
define service {
use sites-service
host_name my_host
service_description check_reboot_os_updates
check_command check_reboot_os_updates
contact_groups contactgroup1
servicegroups MyGroup
}
define service {
use linux-service
host_name my_host
service_description other_description
check_command other_command
contact_groups contactgroup1, contactgroup2
servicegroups MyGroup
}
은 거기에는 방법이 사용하여 이 작업을 수행할 수 있습 sed 또는 awk 또는 다른 뭔가?