Hi Mario
I imagine that you can still do the same thing. The only difference is that
findhost.sh is now a binary rather than a script, and instead of it calling
findhost.cgi, it implements the findhost.cgi functionality itself.
So, in the same way that findhost.sh was a wrapper around findhost.cgi, you
can write findhost-nwgroupview.sh as a wrapper around the new findhost.sh.
Simply adjust your script to call findhost.sh instead of findhost.cgi.
Although findhost.sh is in the cgi-bin directory now, so something like:
exec /home/xymon/server/cgi-bin/findhost.sh $CGI_FINDHOST_OPTS
Cheers
Jeremy
On Sat, 18 May 2024 at 01:05, Mario <user-82c7780661a4@xymon.invalid> wrote:
Hello all,
In old xymon/hobbit 4.3.0 version I used to generate different views using
bbcmd and modifieds hobbitserver.cfg and bb-hosts files.
Also for these different views I was able to create independent findhosts
and enable/disable views for these specific env and bb-hosts files.
For example:
$cat bb-findhost-nwgroupview.sh
#!/bin/sh
# This is the Hobbit CGI script interface to bb-findhost.CGI
. /home/xymon/server/etc/hobbitcginwgroupview.cfg
exec /home/xymon/server/bin/bb-findhost.cgi $CGI_FINDHOST_OPTS
How can we do this kind of modified findhost cgi calls on Xymon version
4.3.30? How can I use and call findhost.sh to use a modified/renamed
cgioptions.cgi ?
Thanks in advance.
Best regards,
Mario