Can someone help me ?
I have a mistake it seems to be typical, but I cannot resolve.
ERROR:Hostname and description didn’t match any of the regexes in the config-file.
I show you my configuration.
I don´t have files rrd in Archive folder.
File **nagiostat
**
my $BASE_DIR = “/usr/local/nagiostat_dir”;
File nagiostat.conf
RRDToolPath /usr/local/rrdtool-1.2.13/bin/rrdtool
HTMLTemplatePath /usr/local/nagiostat_dir/html-templates
RRDArchivePath /usr/local/nagiostat_dir/archives
File checkcomands.conf
define command {
command_name service-perf-data-handler
command_line /usr/local/nagiostat_dir/nagiostat -p “$LASTCHECK$|!!|$HOSTNAME$|!!|$SERVICEDESC$|!!|$SERVICESTATE$|!!|$OUTPUT$|!!|$PERFDATA$”
}
File nagios.conf
service_perfdata_command=service-perf-data-handler
host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=0
process_performance_data=1
File httpd.conf
Alias /nagiostat /usr/local/nagiostat_dir
<Directory /usr/local/nagiostat_dir>
Options +ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
And file serviceextinfo.conf
define serviceextinfo {
host_name My_Server
service_description PING
notes_url /nagiostat/nagiostat.cgi?graph_name=My_Server-Ping
icon_image graph.gif
icon_image_alt View graphs
}
The permissions in these files are correct for the user nagios and apache.
Thank you