Getting /var file system service monitor by default
-
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Getting /var file system service monitor by default
So if i add the particular service to the host group, then will have the same service comes as default when adding new server along adding to the host group? Is that correct ?
Re: Getting /var file system service monitor by default
Correct, if you add a service to a host group every host in that group will obtain that service.
-
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Getting /var file system service monitor by default
so you want to remove hostgroup "Linux-servers" in the services and have hostgroup tagged only in the hosts? Is that correct ?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Getting /var file system service monitor by default
Yes, unless you are creating a service that you want to be added to EVERY member of the hostgroupganeshsambandam wrote:so you want to remove hostgroup "Linux-servers" in the services and have hostgroup tagged only in the hosts? Is that correct ?
-
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Getting /var file system service monitor by default
So we should not add host group in all the services including cpu, memory, swap, /var, /tmp and other file systems ?
we have the host group added to all the services, but why only /var service getting monitored by default though it doesn't exist in the server?
we have the host group added to all the services, but why only /var service getting monitored by default though it doesn't exist in the server?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Getting /var file system service monitor by default
Only if you want to add the service to every member of the hostgroup and you do not already have a separate service config for the host.ganeshsambandam wrote:So we should not add host group in all the services including cpu, memory, swap, /var, /tmp and other file systems ?
When I looked at the /var services described, ONLY the one service template I mentioned had the hostgroup added.ganeshsambandam wrote:we have the host group added to all the services, but why only /var service getting monitored by default though it doesn't exist in the server?
-
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Getting /var file system service monitor by default
why we are only getting /var service in all the hosts which are part of hostgroup ? How do we remove the /var stale service from all the servers which doesn't have /var mounted and they are showing as critical but not showing in CCM to delete.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Getting /var file system service monitor by default
I already answered this here, you need to remove the hostgroup from the serviceganeshsambandam wrote:why we are only getting /var service in all the hosts which are part of hostgroup ? How do we remove the /var stale service from all the servers which doesn't have /var mounted and they are showing as critical but not showing in CCM to delete.
https://support.nagios.com/forum/viewto ... 90#p262176
scottwilkerson wrote:Go to CCM -> Services
select ohcinxunix.gale.web from the template dropdown
Edit "/var Disk Usage"
Click the Hostgroups button
you have linux-servers added here, which means this will be added to every host in linux-servers
Remove that.
Close
Save
Apply Configuration
-
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Getting /var file system service monitor by default
Sorry i forgot to check next page.
I have removed host group from /var service in ohcinxunix, so if i add new server i will not get /var service gets added by default? Is correct ?
I have removed host group from /var service in ohcinxunix, so if i add new server i will not get /var service gets added by default? Is correct ?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Getting /var file system service monitor by default
Not unless you select it, that is correctganeshsambandam wrote:Sorry i forgot to check next page.
I have removed host group from /var service in ohcinxunix, so if i add new server i will not get /var service gets added by default? Is correct ?