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
Export "hourly_value" to "status.dat"
Export "hourly_value" to "status.dat"
- Attachments
-
export_importance.diff- Patch for the changes
- (1.51 KiB) Downloaded 288 times
Re: Export "hourly_value" to "status.dat"
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
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
Former Nagios Employee.
me.
me.
Re: Export "hourly_value" to "status.dat"
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.
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"
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.
Since there is a PR submitted I'll be closing this thread now.
Former Nagios employee