Nagios Notifications Error

本文介绍了解决Nagios发送邮件通知时出现30秒超时的问题。通过调整Nagios配置文件中的notification_timeout参数,将其从默认的30秒增加到120秒或更长,可以有效解决此问题。

Nagios is not sending notifications via email.

In the logs:

cat /var/log/messages |grep notification

nagios nagios: Warning: Contact ‘nagiosadmin’ service notification command ‘/usr/bin/printf “%b” “***** Nagios *****/n/nNotification Type: PROBLEM/n/nService: Total Processes/nHost: thehost/nAddress: ipaddress/nState: WARNING/n/nDate/Time: Tue Sept 29 16:06:54 PDT 2009/n/nAdditional Info:/n/nPROCS WARNING: 397 processes with STATE = RSZDT” | /bin/mail -s “** PROBLEM Service Alert: hostname/Total Processes is WARNING **” support@acme.com’ timed out after 30 seconds

Solution / Answer:

The default time-out setting of 30 seconds is too short, for MTA to process request. Change the default time to 120 seconds or more.

Change Nagios notification_timeout settings

Change the setting “notification_timeout” in nagios.cfg

# vi /usr/local/nagios/etc/nagios.cfg

Change the value of “notification_timeout=30″ to “notification_timeout=120″

notification_timeout=120
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值