Problems with same hostnames in apan.cfg
Status: Beta
Brought to you by:
useless
Imagine the following setup in apan.cfg
webserver;HTTP;webserver-http.rrd;http;http:LINE2;Average
HTTP response time;Seconds;
webserver;HTTPS;webserver-https.rrd;https;https:LINE2;Average
HTTPS response time;Seconds;
apan.cgi and generate.cgi can't handle that, so I get
no graph, althought the setup is correct.
Solution:
in apan.cgi line 20 must read:
CONF=`grep "^$HOST;$CHECK;" $CFGFILE`
in generate.cgi line 38 must read:
CONF=`grep "^$HOST;$CHECK;" $CFGFILE`
Notice the ";" after $CHECK. This makes a line in
apan.cfg unique.