Re: [Nagios-users] FW: Nagios3 switch.cfg
On 2013-05-15 23:25, Joel Roberts wrote: Typo in the email post, I do have host_name in the .cfg file, not host-name. Still returning error. You also have Define instead of define. Copy-typing is pretty much frowned upon for reasons like that. While at it, you may want to make sure you're not using windowsy line-endings. I know some versions of Nagios complains about that, but since you haven't specified the exact version of Nagios you're using it's impossible to say if that affects you. One thing strikes me as odd though; Nagios has never had an error message that goes Could not add property. Are you sure you're using Nagios and not some bastard version of it? Or perhaps you just manually copied it by re-typing the error message from memory. Please don't do that. It takes longer for you and makes those who can answer your questions doubt your competence. Now; If you attach your switch_nagios2.cfg file, I'm sure we can solve the issue quite quickly. If you insist on copy-typing and keep getting things wrong, you'll be on your own. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ 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] FW: Nagios3 switch.cfg
Attached is the .cfg file. The Define was done by the email client, as you can see in the .cfg file, define host is entered correctly, as is host-name. The Nagios installation is on Debian Linux 6.0.7 Squeeze. It was installed from the packages included with the distro. The version of Nagios is 3.2.1 All editing of the .cfg files was done via vi in Linux console, no Windows involved. Thank you, Joel -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Thursday, May 16, 2013 1:53 AM To: Nagios Users List Cc: Joel Roberts Subject: Re: [Nagios-users] FW: Nagios3 switch.cfg On 2013-05-15 23:25, Joel Roberts wrote: Typo in the email post, I do have host_name in the .cfg file, not host-name. Still returning error. You also have Define instead of define. Copy-typing is pretty much frowned upon for reasons like that. While at it, you may want to make sure you're not using windowsy line-endings. I know some versions of Nagios complains about that, but since you haven't specified the exact version of Nagios you're using it's impossible to say if that affects you. One thing strikes me as odd though; Nagios has never had an error message that goes Could not add property. Are you sure you're using Nagios and not some bastard version of it? Or perhaps you just manually copied it by re-typing the error message from memory. Please don't do that. It takes longer for you and makes those who can answer your questions doubt your competence. Now; If you attach your switch_nagios2.cfg file, I'm sure we can solve the issue quite quickly. If you insist on copy-typing and keep getting things wrong, you'll be on your own. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. switch_nagios2.cfg Description: switch_nagios2.cfg -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d___ 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] FW: Nagios3 switch.cfg
On 05/16/2013 04:30 PM, Joel Roberts wrote: Attached is the .cfg file. The Define was done by the email client, as you can see in the .cfg file, define host is entered correctly, as is host-name. The Nagios installation is on Debian Linux 6.0.7 Squeeze. It was installed from the packages included with the distro. The version of Nagios is 3.2.1 Well, that particular config file should work just fine. Try upgrading from sources and see if that works better. It passes with Nagios 4 at least. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ 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] FW: Nagios3 switch.cfg
I think I found the issue, it looks like the templates.cfg.gz didn't unzip and put out all the default templates. After extracting it and slicing it up into the standard .cfg files, I'm able to add hosts now, will try switches next. Thank you, Joel -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Thursday, May 16, 2013 1:11 PM To: Nagios Users List Cc: Joel Roberts Subject: Re: [Nagios-users] FW: Nagios3 switch.cfg On 05/16/2013 04:30 PM, Joel Roberts wrote: Attached is the .cfg file. The Define was done by the email client, as you can see in the .cfg file, define host is entered correctly, as is host-name. The Nagios installation is on Debian Linux 6.0.7 Squeeze. It was installed from the packages included with the distro. The version of Nagios is 3.2.1 Well, that particular config file should work just fine. Try upgrading from sources and see if that works better. It passes with Nagios 4 at least. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ 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
[Nagios-users] FW: Nagios3 switch.cfg
Typo in the email post, I do have host_name in the .cfg file, not host-name. Still returning error. Thank you, Joel -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Wednesday, May 15, 2013 3:21 PM To: Nagios Users List Cc: Joel Roberts Subject: Re: [Nagios-users] Nagios3 switch.cfg On 05/15/2013 10:24 PM, Joel Roberts wrote: I'm deploying a new Nagios server on Debian Linux 6. Have installed the Nagios3 packages, am able to log into the web interface. I'm trying to monitor our network switches and routers, the nagios3.cfg file points to /etc/nagios3/objects/switch.cfg. That folder doesn't exist, the .cfg files are all under /etc/nagios3/conf.d/, but there is no switch.cfg file. So I've created one from scratch, just trying to get the first switch in, but when I try to verify the config files I get the following error: Error: Could not add property in file '/etc/nagios3/conf.d/switch_nagios2.cfg on line 3. Error processing object config files. I've created the file from scratch, but pretty basic stuff, line 3 is just the host_name entry: Define host{ use generic-host host-name cisco2811 alias Cisco 2811 Router addressxxx.xxx.xxx.xxx hostgroups allhosts,network-switches } The documentation I've found still lists host-name as a valid entry, not sure what's going on, any help would be appreciated. host_name, not host-name. Programs tend to be picky about that sort of thing... -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ 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