Page 1 of 1

variables from nagiosxi

Posted: Thu Nov 16, 2017 9:56 am
by saleemthupsee
hello,

does $serviceduration$ provide the duration of the downtime of a service (lapsed time between going to critical and OK). I need to insert this as part of a script to update info field and reporting in email.

regard,s
SAleem

Re: variables from nagiosxi

Posted: Thu Nov 16, 2017 11:51 am
by lmiltchev
No, it doesn't. "Downtime" is not a state. This macro gives you the amount of time that the service has spent in its current state. For more information, see our official Nagios Core documentation here:

https://assets.nagios.com/downloads/nag ... ceduration

Re: variables from nagiosxi

Posted: Fri Nov 17, 2017 3:25 am
by saleemthupsee
thank you and regards,

Saleem

Re: variables from nagiosxi

Posted: Fri Nov 17, 2017 10:04 am
by kyang
Sounds good!

Did you have any more questions or are we okay to close this thread?