问题1:
Traceback (most recent call last):
File "/usr/local/nagios/bin/send_mail.py", line 11, in ?
from email.header import Header
ImportError: No module named header
解决:升级python版本,centos默认自带的是2.4版本,升级到2.6即可解决;
问题2
Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** centreon Notification *****\n\nNotification Type: PROBLEM\n\nService: Disk-/var\nHost: mg-12\nAddress: 12.5.1.2\nState: CRITICAL\n\nDate/Time: 14-03-2013 Additional Info : Disk CRITICAL - no output (-p number expected... it doesnt exist, try another disk number)" | -s "** PROBLEM alert - mg-12/Disk-/var is CRITICAL **" " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
解决:报警设置有问题,手动执行报警命令排错。
阅读(3251) | 评论(0) | 转发(0) |