Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

mvanle

Reviews(1)
bymvanle, January 20, 2016
This script does work.

The tricky part is finding the correct offset to use when parsing the "retention.dat" file, which is the count of the number of lines (exclusive) from the beginning of a host or service definition to the "problem_has_been_acknowledged=" line. (I use "$hostAcknowledgementThreshold = 39" and "$serviceAcknowledgementThreshold = 45").

Also the script does not properly acquire the service name because it is searching for "display_name", but the "retention.dat" file only provides "service_description" (in later versions of Nagios). So the regex in the script source needs to be updated.