0
나는 내 컴퓨터가 센서 출력을 읽고 nagios의 C 플러그인 (Reading from a serial port after writing on it)에서 테스트하는 arduino 보드와 통신하는 프로젝트를 진행하고 있습니다. 내 문제는 상태 정보가 항상 null입니다. 내 플러그인은 lib 디렉토리에 "/ usr/지방/Nagios는/libexec 디렉토리"commands.cfg에서 내가 추가 한 다음Nagios 상태 정보
define service{
use generic-service
host_name localhost
service_description Temp
check_command arduino_temp_sensor
}
:
define command{
command_name arduino_temp_sensor
command_line /usr/local/nagios/libexec/essai.c
}
그리고 localhost.cfg에서
나는 다음과 같은 추가printf의 출력이 상태 정보에 나타나야하는지 혼란 스럽습니다. 미리 감사드립니다.
는 표준 형식의 여부를 감정하여'/ libexec' 출력 따라 달라집니다. '/ var /'파일을 확인하십시오 –
/usr/local/nagios/var/status.dat를 검사했고 내 자신의 플러그인에는 다음과 같은 것들이 있습니다 : plugin_output = (null) –
그런 다음 정보를 제공 할 수 없습니다. –