自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Nagios報(bào)錯(cuò)notify-by-email解決

運(yùn)維 系統(tǒng)運(yùn)維
Nagios報(bào)錯(cuò)notify-by-email解決:Nagios是一個(gè)監(jiān)視系統(tǒng)。Nagios能監(jiān)視所指定的本地、遠(yuǎn)程主機(jī)服務(wù),而且具備異常通知的功能。但是報(bào)錯(cuò)notify-by-email該如何解決呢?

  nagios報(bào)錯(cuò)notify-by-email解決

  報(bào)錯(cuò):

  1.   Error: Service notification command ‘notify-by-email’ specified for contact ‘zhuzhu’ is not defined anywhere!  
  2.  
  3.   Error: Host notification command ‘host-notify-by-email’ specified for contact ‘zhuzhu’ is not defined anywhere!  
  4.  

  這兩條報(bào)錯(cuò)證明在commands.cfg里沒有定義這兩條

  在commands.cfg里添加以下內(nèi)容:

  1.   # ‘notify-host-by-email’ command definition  
  2.  
  3.   define command{  
  4.  
  5.   command_name host-notify-by-email  
  6.  
  7.   command_line /usr/bin/printf “%b” “***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:  
  8.  
  9.   $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n” | /bin/mail -s “** $NOTIFICATIONTYPE$ Host A  
  10.  
  11.   lert: $HOSTNAME$ is $HOSTSTATE$ **” $CONTACTEMAIL$  
  12.  
  13.   }  
  14.  
  15.   # ’service_notification_commands’ command definition  
  16.  
  17.   define command{  
  18.  
  19.   command_name notify-by-email  
  20.  
  21.   command_line /usr/bin/printf “%b” “***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\  
  22.  
  23.   nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT  
  24.  
  25.   $” | /bin/mail -s “** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$  
  26.  
  27.   }  
  28.  

  Nagios報(bào)錯(cuò)notify-by-email就解決了,不會(huì)報(bào)錯(cuò)啦!

【編輯推薦】

Nagios飛信linux短信報(bào)警腳本配置

Nagios安裝記錄

如何用Nagios監(jiān)控遠(yuǎn)程系統(tǒng)

責(zé)任編輯:zhaolei 來源: nagiostutorial
相關(guān)推薦

2011-03-31 16:45:39

Redhat配置nagios

2011-08-22 12:24:56

nagios

2011-03-23 12:55:55

Nagios郵件

2011-03-22 16:31:27

Nagios

2010-05-31 12:38:48

Nagios中文

2011-08-24 17:06:42

NOTIFY中文man

2011-03-29 11:13:15

Zabbix配置Email

2011-10-10 09:21:28

Email

2013-04-11 13:32:06

CentOS 6.3Nagios

2011-03-21 15:35:01

Nagiosnagios-plug安裝

2011-03-31 16:05:18

Redhat配置nagios

2011-08-22 12:25:02

nagios

2011-01-21 16:40:58

NagiosSendmail

2010-05-31 12:53:56

Nagios apac

2011-03-28 15:37:53

nagios作用

2016-12-27 15:47:19

臨時(shí)表空間數(shù)據(jù)

2011-03-21 11:14:22

LinuxNagios

2011-03-23 13:44:23

配置Nagios系統(tǒng)

2011-03-23 14:43:10

Nagiosnagios.cfg

2011-03-23 13:32:14

配置Nagios系統(tǒng)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)