Page 1 of 1

Status = Down, SSH = OK

Posted: Tue Aug 06, 2019 3:46 am
by crechet51
Hello everyone.

Faced with the problem that Nagios shows that part of my PCs receive the “Down” status, while “ssh” receives the status “OK”. More in the screenshot.

Maybe someone came across a similar one.

Thank you in advance.

ImageImage

Re: Status = Down, SSH = OK

Posted: Tue Aug 06, 2019 6:52 am
by scottwilkerson
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

Re: Status = Down, SSH = OK

Posted: Tue Aug 06, 2019 7:43 am
by crechet51
scottwilkerson 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
Hi scottwilkerson
Thanks for your reply.
When you go to the host detail page what is the output?
ImageImage

I use the command: check_ssh on these hosts, as in other hosts, where Service = SSH (1-st screenshot)

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!
}

Re: Status = Down, SSH = OK

Posted: Tue Aug 06, 2019 7:51 am
by scottwilkerson
You would need to look in the linux-server template to see what check_command is set to run for the host

Re: Status = Down, SSH = OK

Posted: Wed Aug 07, 2019 2:41 am
by crechet51
scottwilkerson wrote:You would need to look in the linux-server template to see what check_command is set to run for the host
Do you know where I can find this template? (I found it only in templates.cfg) :?

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!
}

Re: Status = Down, SSH = OK

Posted: Wed Aug 07, 2019 4:27 am
by crechet51
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 :D

Re: Status = Down, SSH = OK

Posted: Wed Aug 07, 2019 6:20 am
by scottwilkerson
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 :D
Great!

Locking thread