Add state duration in nagios notification

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tumenzul
Posts: 1
Joined: Tue Mar 11, 2014 3:44 am

Add state duration in nagios notification

Post by tumenzul »

Hi guys,

We're using Nagios core 3.4.1. Nagios is currently configured to alert via sms and email standard options. But we want add host and services state duration in notification. How add state duration in nagios notification.

Thanks in advance.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Add state duration in nagios notification

Post by scottwilkerson »

this is available using the $HOSTDURATION$ & $SERVICEDURATION$ Macros

You would need to modify your notification commands to include these macros

https://assets.nagios.com/downloads/nag ... olist.html
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked