set up instructions for nagios core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
bbahn
Posts: 112
Joined: Thu Jan 12, 2023 5:42 pm

Re: set up instructions for nagios core

Post by bbahn »

Hello @vinmansbrew,

If you need help setting up a host group, you can use the following documentation:
https://assets.nagios.com/downloads/nag ... #hostgroup
Host Group Definition
Description:

A host group definition is used to group one or more hosts together for simplifying configuration with object tricks or display purposes in the CGIs.

Definition Format:

Note: Directives in red are required, while those in black are optional.

Code: Select all

define hostgroup{
	hostgroup_name		hostgroup_name
	alias			alias
	members			hosts
	hostgroup_members  	hostgroups
	notes			note_string
	notes_url		url
	action_url		url
   	}
Example Definition:

Code: Select all

define hostgroup{
	hostgroup_name		novell-servers
	alias			Novell Servers
	members			netware1,netware2,netware3,netware4
	}
Directive Descriptions:

hostgroup_name: This directive is used to define a short name used to identify the host group.
alias: This directive is used to define is a longer name or description used to identify the host group. It is provided in order to allow you to more easily identify a particular host group.
members: This is a list of the short names of hosts that should be included in this group. Multiple host names should be separated by commas. This directive may be used as an alternative to (or in addition to) the hostgroups directive in host definitions.
hostgroup_members: This optional directive can be used to include hosts from other "sub" host groups in this host group. Specify a comma-delimited list of short names of other host groups whose members should be included in this group.
notes: This directive is used to define an optional string of notes pertaining to the host. If you specify a note here, you will see the it in the extended information CGI (when you are viewing information about the specified host).
notes_url: This variable is used to define an optional URL that can be used to provide more information about the host group. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing hostgroup information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host group, emergency contact methods, etc. available to other support staff.
action_url: This directive is used to define an optional URL that can be used to provide more actions to be performed on the host group. If you specify an URL, you will see a red "splat" icon in the CGIs (when you are viewing hostgroup information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/).
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
ppear
Posts: 9
Joined: Tue Nov 14, 2023 7:17 am

Re: set up instructions for nagios core

Post by ppear »

If the previous post didn't help, can you post your sanitized nagios.cfg and linux.cfg? Most importantly the section the OBJECT CONFIGURATION FILES section on nagios.cfg and the hostgroup section of your linux.cfg.
bbahn
Posts: 112
Joined: Thu Jan 12, 2023 5:42 pm

Re: set up instructions for nagios core

Post by bbahn »

@vinmansbrew

If you need more assistance to set up hostgroups, you can reference the following for an example:
https://bobcares.com/blog/nagios-create-host-group/
or
https://subscription.packtpub.com/book/ ... -hostgroup
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
vinmansbrew
Posts: 26
Joined: Wed Jan 22, 2020 5:26 pm

Re: set up instructions for nagios core

Post by vinmansbrew »

Thanks, I will take a loot at that documentation. I would have responded sooner, but when you live up north, this is a good time of year for vacation!
Post Reply