How to monitor system with VPN connect to another network?
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: How to monitor system with VPN connect to another networ
Can you show the "windows-server" template?
Re: How to monitor system with VPN connect to another networ
I have made no changes to the templates.cfg, but here is the windows-servers template from the file:
define host{
name windows-server ; The name of this host template
use generic-host ; Inherit default values from the generic-host template
check_period 24x7 ; By default, Windows servers are monitored round the clock
check_interval 5 ; Actively check the server every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each server 10 times (max)
check_command check-host-alive ; Default command to check if servers are "alive"
notification_period 24x7 ; Send notification out at any time - day or night
notification_interval 30 ; Resend notifications every 30 minutes
notification_options d,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
hostgroups windows-servers ; Host groups that Windows servers should be a member of
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
}
define host{
name windows-server ; The name of this host template
use generic-host ; Inherit default values from the generic-host template
check_period 24x7 ; By default, Windows servers are monitored round the clock
check_interval 5 ; Actively check the server every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each server 10 times (max)
check_command check-host-alive ; Default command to check if servers are "alive"
notification_period 24x7 ; Send notification out at any time - day or night
notification_interval 30 ; Resend notifications every 30 minutes
notification_options d,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
hostgroups windows-servers ; Host groups that Windows servers should be a member of
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
}
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: How to monitor system with VPN connect to another networ
Could these be inherited from the windows-server template? Could you show us that just to verify.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: How to monitor system with VPN connect to another networ
If that's not it in my last post then where is it?
Re: How to monitor system with VPN connect to another networ
I just took that 1 system out and put it in it's own file with one service but all the services are still listed? So the new file has just 1 'define host' section and 1 'define service' section, but I still see all the services I see from the other hosts that in a separate file. How is that possible?
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: How to monitor system with VPN connect to another networ
Sorry I missed the second page yesterday, had it open before there was a second page. As for this last comment, please post the config again, its extremely hard to help with flat configs without actually seeing them. Thanks!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: How to monitor system with VPN connect to another networ
Here is the cctvvm.cfg file where only one host and one service are defined, yet all the services from my windows-wks.cfg are showing for the cctvvm host. I have rechecked and cctvvm is not listed in window-wks.cfg anywhere.
###############################################################################
# CCTVVM.CFG - CONFIG FILE FOR MONITORING CCTVVM
###############################################################################
###############################################################################
# HOST DEFINITIONS
###############################################################################
# Define a host for the Windows machine we'll be monitoring
# Change the host_name, alias, and address to fit your situation
define host{
use WinCCTVVM ; Inherit default values from a template
host_name S_CCTVVM ; The name we're giving to this host
alias S_CCTVVM ; A longer name associated with the host
address 10.0.0.142 ; IP address of the host
}
###############################################################################
# SERVICE DEFINITIONS
###############################################################################
#####
#####...... Service Definitions for host_name windows-workstations .......
#####
define service{
use generic-service
host_name S_CCTVVM
service_description NegateExplorer
check_command negate!/usr/local/nagios/libexec/check_nt -H $HOSTNAME$ -v PROCSTATE -d SHOWALL -l explorer.exe
notification_interval 0
normal_check_interval 1
}
###############################################################################
# CCTVVM.CFG - CONFIG FILE FOR MONITORING CCTVVM
###############################################################################
###############################################################################
# HOST DEFINITIONS
###############################################################################
# Define a host for the Windows machine we'll be monitoring
# Change the host_name, alias, and address to fit your situation
define host{
use WinCCTVVM ; Inherit default values from a template
host_name S_CCTVVM ; The name we're giving to this host
alias S_CCTVVM ; A longer name associated with the host
address 10.0.0.142 ; IP address of the host
}
###############################################################################
# SERVICE DEFINITIONS
###############################################################################
#####
#####...... Service Definitions for host_name windows-workstations .......
#####
define service{
use generic-service
host_name S_CCTVVM
service_description NegateExplorer
check_command negate!/usr/local/nagios/libexec/check_nt -H $HOSTNAME$ -v PROCSTATE -d SHOWALL -l explorer.exe
notification_interval 0
normal_check_interval 1
}
Re: How to monitor system with VPN connect to another networ
It looks like we are dealing with the same issue here: http://support.nagios.com/forum/viewtop ... 583#p97583
Can we keep the VPN issue in this thread, and the hostgroup inheritance issue in the other? Having two threads open for the same problem just makes more work and complicates things.
Can we keep the VPN issue in this thread, and the hostgroup inheritance issue in the other? Having two threads open for the same problem just makes more work and complicates things.
Former Nagios employee