[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33549] [PATCH 6/6] services: monitoring: Add 'zabbix-front-end'.
From: |
Ludovic Courtès |
Subject: |
[bug#33549] [PATCH 6/6] services: monitoring: Add 'zabbix-front-end'. |
Date: |
Thu, 20 Dec 2018 12:06:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hi Oleg,
Oleg Pykhalov <address@hidden> skribis:
> Ludovic Courtès <address@hidden> writes:
>
> […]
>
>>> +$DB['PASSWORD'] = '" (if (string-null? db-password)
>>> + (if (string-null? db-secret-file)
>>> + (display "Provide a `db-secret-file' \
>>> +or `db-password' field.
>>> +"
>>> + (current-error-port))
>>> + (string-trim-both
>>> + (with-input-from-file db-secret-file
>>> + read-string)))
>>> + (begin
>>> + (display "
>>> +Hint: Consider use `db-secret-file' instead of `db-password' and unset
>>> +`db-password' in `zabbix-front-end-configuration' for security.
>>> +")
>>> + db-password)) "';
>>> +
>>> +// Schema name. Used for IBM DB2 and PostgreSQL.
>>> +$DB['SCHEMA'] = '';
>>> +
>>> +$ZBX_SERVER = '" zabbix-host "';
>>> +$ZBX_SERVER_PORT = '" (number->string zabbix-port) "';
>>> +$ZBX_SERVER_NAME = '';
>>> +
>>> +$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
>>> +"))))
>>
>> I saw these “hints” in the build log of Cuirass and that got me curious.
>> :-)
>
> Do you mean “hints” during ‘zabbix’ tests?
Yes, in the output of the “evaluation” of the ‘guix-master’ jobset.
>> Third, it would be nice to report source location info along with hints
>> and errors. To do that, you could add an innate ‘location’ field to
>> <zabbix-front-end-configuration> as done for <package>. Then, along
>> with the &message condition above, you could raise an &error-location as
>> is done in a few places.
>>
>> Does that make sense?
>
> Sure. I see innate location field in <package>, but unfortunately I'm
> not sure how to implement it, because we use define-configuration for
> <zabbix-front-end-configuration>. So the implementation of that feature
> may take a time. ;-)
We could probably change ‘define-configuration’ to add a ‘location’
field unconditionally. But yeah, we’ll see!
Thanks,
Ludo’.