Chinaunix首页 | 论坛 | 博客
  • 博客访问: 288083
  • 博文数量: 57
  • 博客积分: 965
  • 博客等级: 准尉
  • 技术积分: 736
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-24 10:22
文章分类

全部博文(57)

文章存档

2014年(2)

2013年(22)

2012年(25)

2011年(8)

分类: 系统运维

2013-03-14 19:22:42



问题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...

解决:报警设置有问题,手动执行报警命令排错。
阅读(3206) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~