I’m trying to create some performance graphs but when i look in the debug.log file from nagiostat I get the folowing.
**INCOMING PERFDATA:
LASTCHECK=$
HOSTNAME=FSLYL
SERVICEDESCR=“PING"
SERVICESTATE=“OK"
OUTPUT=”$“
PERFDATA=”$”
**WARNING: Hostname and description didn’t match any of the regexes in the config-file.
The correct data is now filled in and a file is created in nagiostat/archives.
But whenever I go from nagios and try to see the graph I get:
"You don’t have permission to access /nagiostat/nagiostat.cgi on this server. "
Looking in the apache log I get:
“Symbolic link not allowed”
Nagios runs under user nagios and is member of nagcmd.
Apache runs under user wwwrun and is member of nagcmd.
What are the permissions on the nagiostat directory?
the nagiostat.conf file is quite self explanatory. most diffiuclt part for me were the regexes which i had never done at that time… for the ping/RTA values you just ned to chenga ethe hostnames in the example file and you should get something usable.
Hereby my apache conf files.
Within nagios all cgi scripts are working.
cat nagios.conf
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory “/usr/local/nagios/sbin”>
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
Alias /nagios /usr/local/nagios/share
<Directory “/usr/local/nagios/share”>
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
cat nagiostat.conf
Alias /nagiostat/ /usr/local/nagios/nagiostat/
<Directory “/usr/local/nagios/nagiostat”>
Options +ExecCGI
Order allow,deny
Allow from all
Added the line:
"AddHandler cgi-script .cgi"
But the result is the same.
"You don’t have permission to access /nagiostat/nagiostat.cgi on this server. "
Looking in the apache log I get:
“Symbolic link not allowed”