Page 1 of 1

Help in defining Service Groups

Posted: Fri Aug 12, 2016 8:33 pm
by kwhogster
I have setup Host Groups with no problems
Cant seem to get service groups right

Error: Service description missing from list 'NSClient++ Version' (config file '/usr/local/nagios/etc/objects/servgrps.cfg', starting at line 12)
Error: Could not expand members specified in servicegroup 'nsclients' (config file '/usr/local/nagios/etc/objects/servgrps.cfg', starting at line 12)
Error processing object config files!

Then commented out the above


Error: Could not find a service matching host name 'SQLServerAgent' and description 'SQLAgent Sharepoint' (config file '/usr/local/nagios/etc/objects/servgrps.cfg', starting on line 7)
Error: Could not expand members specified in servicegroup 'dbservices' (config file '/usr/local/nagios/etc/objects/servgrps.cfg', starting at line 7)
Error processing object config files!

Code: Select all

###############################################################################################################
#
#            Define Service Groups
#
##############################################################################################################

#define servicegroup{
#        servicegroup_name       dbservices
#        alias                   Database Services
#        members                 SQLServerAgent, SQLAgent Sharepoint, SQLAgent Wrestling
#        }
#define servicegroup{
#        servicegroup_name       nsclients
#        alias                   NSClient ++
#        members                 NSClient++ Version
#        }
I would like to create other service groups like

CPU Load
Memory Usage
Drive Space
Web Services
Explorer
DHCP

Etc.

Any ideas

Thanks Tom

Re: Help in defining Service Groups

Posted: Fri Aug 12, 2016 10:30 pm
by kwhogster
I solved this

removed members from the define service group

added servicegroups service groupname to all my services

Now working


Close this please

Re: Help in defining Service Groups

Posted: Mon Aug 15, 2016 9:32 am
by bwallace
Thanks for that update and glad to hear you got it resolved. My apologies that we did not respond sooner, but our weekend had begun just hours prior to your 1st post.