check_tcp plugin not working
Posted: Tue Jun 16, 2015 12:03 pm
All,
I am trying to monitor a tcp service (port 9100) on remote host but on nagios GUI host showing status pending. Any suggestion?
Below is the config I am using for same:
define hostgroup{
hostgroup_name Server
alias Server Check
members server5220
}
define host{
use generic-host
host_name server5220
alias Print Server
address 1.1.1.1
max_check_attempts 5
}
; monitoring tcp service
define service{
use generic-service ; Inherit values from a template
; hostgroup_name Server; The name of the host the service is associated with
service_description TCP Check ; The service description
check_command check_tcp!9100 ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
I am trying to monitor a tcp service (port 9100) on remote host but on nagios GUI host showing status pending. Any suggestion?
Below is the config I am using for same:
define hostgroup{
hostgroup_name Server
alias Server Check
members server5220
}
define host{
use generic-host
host_name server5220
alias Print Server
address 1.1.1.1
max_check_attempts 5
}
; monitoring tcp service
define service{
use generic-service ; Inherit values from a template
; hostgroup_name Server; The name of the host the service is associated with
service_description TCP Check ; The service description
check_command check_tcp!9100 ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}