I'm looking for a way to send the contents of the the trends page to an external user with information from the trends page and don't want to give them internal access.
Anyone know a way to dump the page to a file?
I've tried this ?<http://lists.xymon.com/oldarchive/2010/02/msg00188.html>so far with little success:
#!/bin/sh . /usr/lib/hobbit/server/etc/hobbitcgi.cfg HOST=$1 SERVICE=trends env REQUEST_URI=/hobbit-cgi/bb-hostsvc.sh?HOST=${HOST}\&SERVICE=$SERVICE SCRIPT_NAME=/hobbit-cgi/bb-hostsvc.sh QUERY_STRING=HOST=${HOST}\&SERVICE=$SERVICE REQUEST_METHOD=GET /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug
Then I run sh test.sh server?.name
The result is:
Content-type: text/html
<html><head><title>Invalid request</title></head> <body>Invalid request</body></html>
It acts as though it didn't find a host name to query.
Any other suggestions would be very helpful!
Thanks,
John Tullis