Nagios Notifications Error

Scenario / Problem:

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
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
Fabio Milano has written 79 articles for us. Fabio Milano is a certified RHCE, MCP, and CFOI. He runs an IT consulting and services company called RDS Support inc. Website:http://www.rdssupport.com
The information provided is for educational purposes only. All content including links and comments is provided "as is" with no warranty, expressed or implied. Use is at your own risk and you are solely responsible for what you do with it.

2 Comments so far

  1. Alex on August 9th, 2011

    I have the same problem! I changeda time value but problem still exist. :( help!

  2. ztank on December 17th, 2011

    Hey, that solved my issue, thanks.
    My question is: why does it take so long to process requests?

Leave a reply