Different services for different hosts?
Different services for different hosts?
I have made 3 .cfg files, windows-svrs.cfg, windows-wks.cfg & cctvvm.cfg. windows-svrs has a hostgroup with a few servers in it, windows-wks has a few workstations in a hostgroup & cctvvm has just one host. svrs & wks use the same services, but cctvvm only uses one (PING). However, on the nagios site it shows that cctvvm is monitoring all the services that are listed in the other files? Why and how can I change/seperate these? Thanks.
Re: Different services for different hosts?
Have you restarted the nagios service after making mods to your configs? Can you show us the "cctvvm.cfg" and a screenshot of what you see in the GUI?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Different services for different hosts?
###############################################################################
# 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: Different services for different hosts?
I'm a little confused here. You said that cctvvm has only ping, but I see a check_nt applied to it. Are you sure you are referencing the proper files?
It might help to see your whole config directory. Can you tar and gzip your .../nagios/etc directory and send it in a PM?
It might help to see your whole config directory. Can you tar and gzip your .../nagios/etc directory and send it in a PM?
Former Nagios employee