nagios用check_snmp_storage.pl腳本的問題
我第一次配nagios 用腳本直接執行 。返回以下數據。
./check_snmp_storage.pl -H 172.20.10.13 -C public -m / -w 60% -c 90%
/var: 36%used(73880MB/204799MB) /sys/kernel/security: 0%used(0MB/0MB) /sys/kernel/debug: 0%used(0MB/0MB) /sys: 0%used(0MB/0MB) /: 45%used(31554MB/70086MB) /boot: 2%used(40MB/2055MB) (<60%) : OK
但配置到nagios裡面,返回值為null
nagios的配置為
define service{
host_name ebaimi_staitc;
service_description check_snmp_storage
check_command check_snmp_storage!"/"!92%!96%
is_volatile 0
max_check_attempts 4
retry_check_interval 2
normal_check_interval 3
notification_period 24x7
check_period 24x7
}
command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS
$ -C public -m $ARG1$ -w $ARG2$ -c $ARG3$ -S 0 -f
}
nagios報null
Current Status: CRITICAL (for 0d 17h 28m 39s)
Status Information: (null)
Performance Data:
Current Attempt: 4/4 (HARD state)
Last Check Time: 03-14-2013 11:12:22
Check Type: ACTIVE
Check Latency / Duration: 0.249 / 0.096 seconds
Next Scheduled Check: 03-14-2013 11:15:22
Last State Change: 03-13-2013 17:45:22
Last Notification: 03-14-2013 09:51:32 (notification 9)
Is This Service Flapping? NO (0.00% state change)
In Scheduled Downtime? NO
Last Update: 03-14-2013 11:13:56 ( 0d 0h 0m 5s ago)
用nagios -v ../etc/nagios.cfg 檢測無報錯
求教這是我配置有問題還是?
《解決方案》
......是不是我放錯類別了。。有人嗎嗎嗎?
《解決方案》
根據命令行的定義,感覺是應該4個參數.
check_command check_snmp_storage!"/"!92%!96%
少一個監控機器地址?
公休在家,要不可以看看單位的配置.