I’ve installed NagiosGraph. Everything seemed to work fine. Graphs were updated correctly, representing correct values. So I went home, but when I returned the next morning I only saw those values that were processed before 17:00 the previous day (the time I left work) en 08:00 that morning (the time that I arrived).
When I check nagiosgraph.log it appears that it has been processing performance data all night, but when I view the graphs I see a blank period between 17:00 and 08:00.
My NagiosGraph configuration is as follows: #nagiosgraph.conf
debug = 5
logfile = /usr/local/nagios/nagiosgraph/nagiosgraph.log
rrddir = /usr/local/nagios/nagiosgraph/rrd
mapfile = /usr/local/nagios/nagiosgraph/map
colorscheme = 1
heartbeat = 600
Does anyone know this problem and its sollution???
Jakkedup:
Free disk space isn’t the problem. I’ve installed Nagios on a brand new server which I formatted. It has about 50 gb of free disk space left. Besides, if the disk would be full, it wouldn’t start logging again after 08:00 the next morning.
mh720:
I’ve checked for every occurence of a time zone in the nagios config files, but nothing seemed to be wrong there.
I’ve selected one host which has this problem and copied all configuration information of that host into this post. The only thing I’ve changed is the E-mail adres, for the obvious reasons.
I don’t think that the problem lies here, because all hosts are created using the same templates and the same data. We just copy-pasted them into the files. But perhaps someone sees an error…?
hosts.cfg:
define host {
host_name host_pc1117
alias pc1117
address pc1117
use host_tpl_geen_notificatie
contact_groups cont_grp_geen_notificaties
}
time_periods.cfg:
define timeperiod {
timeperiod_name time_nooit
alias Deze tijdsperiode is blanco
}
contactgroups.cfg:
define contactgroup {
contactgroup_name cont_grp_geen_notificaties
alias De contacts in deze contact-group krijgen nooit notificaties
members cont_geen_notificaties
}
contacts.cfg:
define contact {
contact_name cont_geen_notificaties
use cont_tpl_geen_notificaties
alias Deze contact krijgt nooit notificaties
email [email protected]
}
contact_templates.cfg:
define contact {
name cont_tpl_geen_notificaties
host_notification_period time_nooit
service_notification_period time_nooit
host_notification_options n
service_notification_options n
host_notification_commands cmdn_geen_notificatie
service_notification_commands cmdn_geen_notificatie
register 0
}
I’ve narrowed the problem down to it’s cause (I think at least). The problem is with RRDTool. According to its log the NagiosGraph plugin gives correct input throughout the night. No errors were logged for writing to the database. Only when we read the data out of the RRD database, a lot of entries say ‘nan’ (not a number). So the problem lies with RRDTool I think.
Are you using the default ‘map’ file for nagiosgraph? This could be that the default map file entry for pings doesn’t like your system’s ping output much.
sounds to me, that you may want to look at the output from nagios at night, as it is not giving you the same output during the day. Your regex sounds like it not grabbing the data you want therefor, and so you get nan. It could just be, that the device is powered off at night, and so it is not able to ping, so you get nan. Is the device off at night?