Page 1 of 1

Export "hourly_value" to "status.dat"

Posted: Tue Jan 12, 2016 11:25 am
by d.leib
Hello together,

the "hourly_value" was introduced in one of the last Nagios releases. The configured "hourly_value" will be exported to the file objects.cache as attribute "importance" for hosts and services. But the file status.dat does not contain this attributes.

This patch adds the attribute "importance" to the status file.

I need this to sort the alarms with their importance.

Thanks,
Daniel

Re: Export "hourly_value" to "status.dat"

Posted: Tue Jan 12, 2016 12:24 pm
by hsmith
Hi @d.leib.

Thank you for the contribution! If it's not too much to ask, could you post this at https://github.com/NagiosEnterprises/nagioscore? It'll get attention from our main core developer there quicker than it will on the support forums.

We appreciate the community contributions :)

Re: Export "hourly_value" to "status.dat"

Posted: Wed Jan 13, 2016 3:26 am
by d.leib
Hi hsmith,

I created a pull request: https://github.com/NagiosEnterprises/na ... e/pull/106

I also wondered why I have to post a patch to a forum ;)
But the site https://www.nagios.org/contribute/ says: "Got a patch or idea for Nagios Core? Submit it to the Nagios Core Development Forum". Maybe this should be updated.

Thanks for your quick response.

Re: Export "hourly_value" to "status.dat"

Posted: Wed Jan 13, 2016 11:01 am
by tmcdonald
Thanks for catching that! I'll see about getting that page updated.

Since there is a PR submitted I'll be closing this thread now.