Help in defining Service Groups

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.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Help in defining Service Groups

Post 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
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Help in defining Service Groups

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Help in defining Service Groups

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked