Izz Abdullah wrote: > Hi Rick, > > In your windows.cfg file ensure you have the following: > > define hostgroup{ > hostgroup_name allhosts > alias All my Hosts #whatever you want (e.g. allhosts, All my > Hosts, Windows Servers) > members #put the hostname of the server you are monitoring here > } > > I've also found you need to put in the templates.cfg file the following (at > least, or maybe most :) ) > > define host{ > name All my Hosts #whatever you want to identify (as above) > use generic-host > check_period 24x7 > check_interval 5 > retry_interval 1 > max_check_attempts 10 > check_command check-host-alive > notification_period 24x7 > notification_interval 30 > notification_options d,r > contact_groups admins > hostgroups allhosts > register 0 > } > > Most of the templates.cfg portion is particular to my setup, change as > necessary. > > Hope this helps. > > Regards, > Izz > > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> Sent: Wed, 01 Oct 2008 12:12:14 -0700 >> To: nagios-users@lists.sourceforge.net >> Subject: [Nagios-users] Help with Monitoring Windows Machines >> >> I've installed Nagios and have it working to monitor my linux localhost >> without problems, so I tried to add a Windows server to monitor. I >> followed the instructions in Nagios Documentation, Monitoring Windows >> Machines. After installing and starting NSClient++ on the Windows >> machine and making the changes to /usr/local/nagios/etc/nagios.cfg and >> /usr/local/nagios/etc/objects/windows.cfg I tried verifying the >> configuration with /usr/local/nagios/bin/nagios -v >> /usr/local/nagios/etc/nagios.cfg. I get this error... >> >> Nagios 3.0b3 >> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) >> Last Modified: 08-30-2007 >> License: GPL >> >> Reading configuration data... >> >> Error: Could not find any hostgroup matching 'allhosts' (config file >> '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) >> Error: Hostgroup has no members (config file >> '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47) >> >> ***> One or more problems was encountered while processing the config >> files... >> >> Check your configuration file(s) to ensure that they contain valid >> directives and data defintions. If you are upgrading from a >> previous >> version of Nagios, you should be aware that some >> variables/definitions >> may have been removed or modified in this version. Make sure to >> read >> the HTML documentation regarding the config files, as well as the >> 'Whats New' section to find out what has changed. >> >> I get this on 2 linux PCs configured similarly. I've re-read the >> instructions and I've got everything correct. >> >> Why am I getting this error? >> >> Thanks, >> Rick >> >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 >> Thanks Izz & Andreas,
Your suggestions helped me find my problem. The default windows.cfg has a hostgroup windows_servers. That group does not have a members option. I added members and the member server name to hostgroup windows_servers and now things are working. Thanks to both of yoy. Izz, I'm going to look at your template.cfg to see if there's anything that looks like I want. Thanks again, Rick ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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