Status = Down, SSH = OK
Posted: Tue Aug 06, 2019 3:46 am
Support for Nagios products and services
https://support.nagios.com/forum/
Hi scottwilkersonscottwilkerson wrote:This is going to come down to what check_commands you have specifued for the hosts. When you go to the host detail page what is the output?
Off the top of my head if you have ping checks setup, this could happen if these host were setup to do ping checks but you had ICMP blocked on the hosts
When you go to the host detail page what is the output?


Code: Select all
define host {
use linux-server
host_name adm-cc-227
alias adm-cc-227
address some.one.host
}
define service {
use local-service
host_name adm-cc-227
service_description SSH
check_command check_ssh!-p 2227!
}
Do you know where I can find this template? (I found it only in templates.cfg)scottwilkerson wrote:You would need to look in the linux-server template to see what check_command is set to run for the host
Code: Select all
define host {
name linux-server ; The name of this host template
use generic-host ; This template inherits other values from the generic-host template
check_period 24x7 ; By default, Linux hosts are checked round the clock
check_interval 5 ; Actively check the host every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each Linux host 10 times (max)
check_command check-host-alive ; Default command to check Linux hosts
notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template!
notification_interval 120 ; Resend notifications every 2 hours
notification_options d,u,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ; DON'T REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
Great!crechet51 wrote:Found a problem.
You were right, the problem is in the router.
It was necessary to uncheck Linksys "Filter anonymous Internet requests"
Thank you for your advice