How to install gnhastweb
- Run the normal gnhast build. This will substitute the @PERL@ with your real perl path.
- Edit cgi-bin/rrdjson.cgi. Change $path to the location of your generated rrd files. These would be wherever you told rrdcoll to put them.
- Copy all the
cgi-bin/*
scripts to the cgi-bin dir of your webserver. - Copy the "css", "scripts" and "fonts" directories to the docroot of your webserver. (ie, like /htdocs/css, etc)
- Copy favicon.png (if you want) and gnhast-icon-48.png to the docroot.
- Copy jsoncoll.cgi from your installed bin directory to your cgi-bin directory.
- Edit your jsoncgicoll.conf file in your etc directory. An example:
jsoncgicoll {
instance = 1
}
gnhastd {
hostname = "electra"
port = 2920
}
- Copy the example gnhastweb.conf file to the cgi-bin directory of your webserver. Edit it to your heart's content. The example activates most of the features, many can be disabled.
- Copy header.html to the cgi-bin directory of your webserver.
- Connect to your webserver, it should work?