i just thought that the cgi meant some web presence...
It does, more or less. CGI stands for Common Gateway Interface, and it's a standard how webservers can use external executables. The webserver creates some environment, and then calls the cgi 'script', which outputs (dynamic) html code over it's stdout.
In most cases you can just execute the cgi executable and get html code.
I think the scripts won't care about their actual place on the disk, so you can copy them to one of the zypkg directories in /usr/local/zy-pkgs/gui/, and call them directly. At the moment I have no access to an NSA, but I think the url should be something like
I *think* you can also create a directory /usr/local/zy-pkgs/gui/apcupsd/ and put the scripts in it. Then the url will be
but you can also put a simple redirecting index.html inside that directory. Have a look at MetaRepository if you don't know how to write a redirecting index.html