Re: [Nagios-users] Problems with config-file, I think.
On 13 Jul, 2006, at 9:20, Alexander Davidsen wrote: If i comment out this I just get the same error on the next section. What can be wrong? I have attached my config file. Sounds like maybe you forgot a closing bracket somewhere... Check your syntax closely... - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problems with config-file, I think.
Thomas Sluyter wrote: On 13 Jul, 2006, at 9:20, Alexander Davidsen wrote: If i comment out this I just get the same error on the next section. What can be wrong? I have attached my config file. Sounds like maybe you forgot a closing bracket somewhere... Check your syntax closely... - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Dosent look like im missing any brackets either. Any other ideas? -- Med vennlig hilsen Alexander Davidsen - Webdeal AS Teknologiveien 22 - 2815 Gj?vik - NORWAY E-Post: [EMAIL PROTECTED] Webside: www.webdealhosting.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problems with config-file, I think.
On Thu, 13 Jul 2006, Alexander Davidsen wrote: Hi, I have installed nagios via ports in FreeBSD, and configured it to work with my network. But when i do nagios -v nagios.cfg i get a kind of wired error: Error in configuration file '/usr/local/etc/nagios/nagios.cfg' - Line 20 (NULL value) On line 20 I have: define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday00:00-24:00 friday 00:00-24:00 saturday00:00-24:00 } If i comment out this I just get the same error on the next section. What can be wrong? I have attached my config file. And just what do you have above? Is there an illegal character that slipped in there somewhow? I would slide in a space before the curly bracket like: define timeperiod { timeperiod_name 24x7 alias Always sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday00:00-24:00 friday 00:00-24:00 saturday00:00-24:00 } And just to humour me. Could you remove the comment line with an unmatched single quote sign ? And try without spaces in the alias definition. At least get rid of the comma as is is a common delimiter. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problems with config-file, I think.
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Hugo van der Kooij Sent: Thursday, July 13, 2006 3:53 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Problems with config-file, I think. On Thu, 13 Jul 2006, Alexander Davidsen wrote: Hi, I have installed nagios via ports in FreeBSD, and configured it to work with my network. But when i do nagios -v nagios.cfg i get a kind of wired error: Error in configuration file '/usr/local/etc/nagios/nagios.cfg' - Line 20 (NULL value) On line 20 I have: define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday00:00-24:00 friday 00:00-24:00 saturday00:00-24:00 } If i comment out this I just get the same error on the next section. What can be wrong? I have attached my config file. And just what do you have above? Is there an illegal character that slipped in there somewhow? Actually, it's the fact that he appears to have the timeperiod definition in nagios.cfg itself. Nagios.cfg is special in that it can only contain directives that control the overall operation of nagios. You'll need to move any template definitions such as the timeperiod definition above into a different file and reference that as a cfg_file within nagios.cfg. http://nagios.sourceforge.net/docs/2_0/configmain.html -- Marc - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null