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 –
-rwxr–r-- 1 root wheel 11396 Aug 7 01:15 nagiostat.conf
Pointer to where the rrd-tool binary is located
Pointer to where HTML-templates are stored
Pointer to HTML-template for the index-page (relative to HTMLTemplatePath)
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
– httpd.conf –
-rw-r–r-- 1 root wheel 17144 Aug 7 21:37 httpd.conf
AddHandler cgi-script cgi pl
Allow from all
ScriptAlias /nagiostat/ /usr/local/www/nagios/cgi-bin/
– RRDArvhivePath –
drwxrw-r-- 2 nagios nagios 512 Aug 6 23:50 nagiostatrrd
– nagiostat –
drwxr-xr-x 2 root wheel 512 Jul 29 18:10 html-templates
-rwxrwxrwx 1 root wheel 19774 Aug 7 20:33 nagiostat
lrwxr-xr-x 1 root wheel 38 Jul 29 18:10 nagiostat.cgi -> /usr/local/libexec/nagiostat/nagiostat
Any help would be much appreciated!