Menu

#7 Problems with same hostnames in apan.cfg

open
nobody
None
5
2003-06-02
2003-06-02
Alex Kuehne
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB