Export "hourly_value" to "status.dat"

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
d.leib
Posts: 2
Joined: Tue Jan 12, 2016 11:14 am

Export "hourly_value" to "status.dat"

Post 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
Attachments
export_importance.diff
Patch for the changes
(1.51 KiB) Downloaded 288 times
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post 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 :)
Former Nagios Employee.
me.
d.leib
Posts: 2
Joined: Tue Jan 12, 2016 11:14 am

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

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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.
Former Nagios employee
Locked