From 995625b917957ac8a1bf21c8a61de3be07c02543 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 6 Apr 2019 09:08:07 +0200 Subject: [PATCH] sadf: PCP: Save hostname in PCP archive Signed-off-by: Sebastien GODARD --- sadf_misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sadf_misc.c b/sadf_misc.c index 4ccb4ee..c98b03c 100644 --- a/sadf_misc.c +++ b/sadf_misc.c @@ -1254,6 +1254,9 @@ __printf_funct_t print_pcp_header(void *parm, int action, char *dfile, pmiSetTimezone("UTC"); } + /* Save hostname */ + pmiSetHostname(file_hdr->sa_nodename); + /* Save number of CPU in PCP archive */ pmiAddMetric("hinv.ncpu", PM_IN_NULL, PM_TYPE_U32, PM_INDOM_NULL, PM_SEM_DISCRETE, -- 2.40.0