Re: [Nagios-users] initial setups, hostgroup help requested
nagios -h -v, --verify-config Verify all configuration data Use: nagios -v /path/to/your/nagios.cfg > I don't know if that needs to be there as I am defining his as a member > in the hostgroups.cfg file. No, you do not need to mention it twice. The first snippet is enough. > Now if I comment out the hostgroup line in the main conf, things start, > but I would like to use hostgroups for the obvious reasons.� I am sure > these and the new ones will be pretty basic as the needs are simple, > and if I can debug where it stopping would be even easier, but again, > this will be a1 or 2 sentence reply I bet! Try nagios -v and paste here the output. -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com___ 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] initial setups, hostgroup help requested
On Apr 13, 2009, at 3:49 PM, lance raymond wrote: > still getting things in order, and having a problem with adding my > 1st hostgroup. Side note, is there any kind of logging, or > debugging to see where a failure occurs? run /path/to/nagios -v /path/to/nagios.cfg > Ex. I add a new config file with the following basic line in the > main conf; > cfg_file=/usr/local/nagios/etc/hostgroups.cfg > The file has the following; > define hostgroup{ >hostgroup_name webservers >aliaswebservers >contact_groupssysadmins >memberscs0 >} > > The alias I just made up, the contact group sysadmin's exists and > the member cs0 is one of my webservers. In the actual server.cfg > file for that server I have a line; > hostgroupswebservers > > I don't know if that needs to be there as I am defining his as a > member in the hostgroups.cfg file. It needs to be in one or the other, not both; either on the members line in the hostgroup definition or the hostgroup specified in the service definition (I think the latter is more maintainable, IMHO). -- Marc -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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] initial setups, hostgroup help requested
still getting things in order, and having a problem with adding my 1st hostgroup. Side note, is there any kind of logging, or debugging to see where a failure occurs? Ex. I add a new config file with the following basic line in the main conf; cfg_file=/usr/local/nagios/etc/hostgroups.cfg The file has the following; define hostgroup{ hostgroup_name webservers alias webservers contact_groups sysadmins members cs0 } The alias I just made up, the contact group sysadmin's exists and the member cs0 is one of my webservers. In the actual server.cfg file for that server I have a line; hostgroups webservers I don't know if that needs to be there as I am defining his as a member in the hostgroups.cfg file. Keeping things like this I start nagios and simply get; Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration. (which is why I am looking as the nagios.log says nothing helpful. Now if I comment out the hostgroup line in the main conf, things start, but I would like to use hostgroups for the obvious reasons. I am sure these and the new ones will be pretty basic as the needs are simple, and if I can debug where it stopping would be even easier, but again, this will be a1 or 2 sentence reply I bet! Tnx -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com___ 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