custom zabbix alert scripts are expected to be found in /gnu/store

OpenSubmitted by Ricardo Wurmus.
Details
One participant
  • Ricardo Wurmus
Owner
unassigned
Severity
normal
R
R
Ricardo Wurmus wrote on 16 Mar 2020 10:20
(address . bug-guix@gnu.org)
87d09cmz9u.fsf@elephly.net
I added a new script “media type” in Zabbix and specified that the
script to be run should be /srv/my-script.

When testing an action for this media type, Zabbix attempts to find the
script in the /share/zabbix/alertscripts directory of the zabbix-server
package:

Cannot execute command "/gnu/store/vic3bhg8jjws4gv9ivzrn8i4vnxd5nf3-zabbix-server-4.4.1/share/zabbix/alertscripts//srv/my-script": [2] No such file or directory

This means that custom Zabbix alert scripts don’t work.

--
Ricardo
R
R
Ricardo Wurmus wrote on 16 Mar 2020 10:34
(address . 40087@debbugs.gnu.org)
87blowmym9.fsf@elephly.net
The location can be overridden with the AlertScriptsPath configuration
option in the server settings.

The default is a sub-directory in the pkgdatadir, which doesn’t make
sense for Guix.

--
Ricardo
?