pcp
[Top] [All Lists]

Re: [PATCH] initial pass at fixing zbxpcp.so for Zabbix v3

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [PATCH] initial pass at fixing zbxpcp.so for Zabbix v3
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Fri, 04 Mar 2016 12:20:42 -0500
Cc: Marko Myllynen <myllynen@xxxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <675485289.27235420.1457066754101.JavaMail.zimbra@xxxxxxxxxx> (Nathan Scott's message of "Thu, 3 Mar 2016 23:45:54 -0500 (EST)")
References: <1240982544.27234304.1457065841902.JavaMail.zimbra@xxxxxxxxxx> <675485289.27235420.1457066754101.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
nathans wrote:

> [...]  This switches between using v2/v3 interface based on presence
> or lack of a named file.  [...]

This wouldn't be quite so bad if that file name (and others!) weren't
hard-compiled into the zbxpcp.so binary.  Instead zbxpcp.so could read
a config file from /etc/pcp with such site-specific installation path
names ... in which case that file could also spell out the v2 vs. v3
situation, and other useful stuff like zbxpcp pmNewContext parameters
(so it's not restricted to "localhost").

- FChE

<Prev in Thread] Current Thread [Next in Thread>