hi ,
here are my config files :
in the services.cfg file:
# Service definition
define service{
use generic-service ; Name of service template to use
host_name xp2test
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
event_handler service-perf-data-handler
normal_check_interval 5
retry_check_interval 1
contact_groups xp-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_ping!100.0,20%!500.0,60%
}
in the hostexinfo.cfg file:
define serviceextinfo {
host_name xp2test
service_description PING
notes_url /nagiostat/nagiostat.cgi?graph_name=xp2test-ping
icon_image graph.gif
icon_image_alt voir les graphiques
}
int the misccommands.cfg file:
##
## PERF-DATA-HANDLER
## 'process-service-perf-data-handler'
define command {
command_name service-perf-data-handler
command_line /usr/local/nagios/nagiostat/nagiostat -p
"$LASTCHECK$|!!|$HOSTNAME$|!!|$SERVICEDESC$|!!|
$SERVICESTATE$|!!|$OUTPUT$|!!|$PERFDATA$"
}
in the nagios.cfg file:
enable_event_handlers=1
process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=service-perf-data-handler
I have also compiled nagios with :
--with-default-perfdata
I've also configured the httpd.conf file.....and it installation is ok (on
my point of vue)
I have done the example at
http://ed.zehome.com/index.cgi?page=rrdtool
and graphs were ok
My .rdd file is automaticly created at when nagios starts (in case
of I erase it...)
it is in .../nagios/nagiostat/archives/ and it is automaticly
implemented
664 on the file
My problem is that I ve graph but without data or line on.
if i try to do rrdtool dump myfile.rrd > myfile.xml , I have a file with
NanNanNan..............
I ve do all the README file and I don"t understand....
thanks