summaryrefslogtreecommitdiffstats
path: root/src/rrd.h
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-05-13 23:47:04 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-05-13 23:47:04 +0300
commit793dcded1f97a5493375bb241c8903587426ce39 (patch)
treef5304693e39e39f1bc31789a3c528c9011e6f2f3 /src/rrd.h
parent3ed012abe719349db479956a9afbdb12ab032e81 (diff)
slaves propagate registry_hostname to master, which is now used for alarm notifications, so that clicking an alarm generated by the master can properly show the slave dashboard
Diffstat (limited to 'src/rrd.h')
-rw-r--r--src/rrd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rrd.h b/src/rrd.h
index 230e088862..6b605ceb18 100644
--- a/src/rrd.h
+++ b/src/rrd.h
@@ -368,6 +368,8 @@ struct rrdhost {
char *hostname; // the hostname of this host
uint32_t hash_hostname; // the hostname hash
+ char *registry_hostname; // the registry hostname for this host
+
char machine_guid[GUID_LEN + 1]; // the unique ID of this host
uint32_t hash_machine_guid; // the hash of the unique ID
@@ -488,6 +490,7 @@ extern RRDHOST *rrdhost_find_by_guid(const char *guid, uint32_t hash);
extern RRDHOST *rrdhost_find_or_create(
const char *hostname
+ , const char *registry_hostname
, const char *guid
, const char *os
, int update_every