Hello,
I'm trying to setup Nagios to monitor the status of some hosting boxes
and have come across an error that seems strange.
[root@localhost sample-config]# /usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios.cfg
Nagios 1.1
Copyright (c) 1999-2003 Ethan Galstad ((E-Mail Removed))
Last Modified: 06-02-2003
License: GPL
Reading configuration data...
Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line
34 (NULL value)
Here's the top of the configuration file. So you know, I'm using the
'minimal.cfg' file to try and get how this works, so it's pretty much
stock as supplied with the distro.
# '24x7' timeperiod definition
define timeperiod {
timeperiod_name 24x7
alias All Day Every Day
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
Line 34 is the "define timeperiod" line, which seems to match all the
lines in all the other sample config files. If I comment it out, then
it just goes onto the next define and says it's a Null Value.
Can anyone supply a basic minimal nagios.cfg that works?
Mike
|