Hi,
I believe I’ve got nagiostat set up almost correctly, but I keep getting a 403 error (forbidden) when I click on the icon to display the graphs.
From what I can tell the rrd file is being generated, and I’m not seeing errors in the debug.log file, so I’ll assume this is just a permissions or path issue.
I’ve tried every combination I can think of, and I’m sure I’m just missing something so easy I completely missed it. I’ve pasted the sections of the files that I think are the culprit. I hope one of you has better eyes than I do! Don’t forget this is on FreeBSD 7.
– nagiostat.conf –
/usr/local/etc
-rwxr–r-- 1 root wheel 11396 Aug 7 01:15 nagiostat.conf
Pointer to where the rrd-tool binary is located
RRDToolPath /usr/local/bin/rrdtool
Pointer to where HTML-templates are stored
HTMLTemplatePath /usr/local/libexec/nagiostat/html-templates
Pointer to HTML-template for the index-page (relative to HTMLTemplatePath)
GraphIndexTemplate graphindex.html
Pointer to directory where the RRD-archive-files are stored
nagiostat automatically creates RRD-archives if they dont exist.
IMPORTANT: the whole directory RRDArchivePath must be writable by the nagios user (that calls the
nagiostat-script)
RRDArchivePath /var/spool/nagios/nagiostatrrd
– httpd.conf –
/usr/local/etc/apache22
-rw-r–r-- 1 root wheel 17144 Aug 7 21:37 httpd.conf
User www
Group www
<Directory /usr/local/libexec/nagiostat>
AllowOverride AuthConfig
AddHandler cgi-script cgi pl
Options +ExecCGI
Order allow,deny
Allow from all
ScriptAlias /nagiostat/ /usr/local/www/nagios/cgi-bin/
– RRDArvhivePath –
/var/spool/nagios/nagiostatrrd
drwxrw-r-- 2 nagios nagios 512 Aug 6 23:50 nagiostatrrd
– nagiostat –
/usr/local/libexec/nagiostat
drwxr-xr-x 2 root wheel 512 Jul 29 18:10 html-templates
-rwxrwxrwx 1 root wheel 19774 Aug 7 20:33 nagiostat
/usr/local/www/nagios/cgi-bin
lrwxr-xr-x 1 root wheel 38 Jul 29 18:10 nagiostat.cgi -> /usr/local/libexec/nagiostat/nagiostat
Any help would be much appreciated!
O.