Status = Down, SSH = OK

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
crechet51
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

Status = Down, SSH = OK

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Status = Down, SSH = OK

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
crechet51
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

Re: Status = Down, SSH = OK

Post 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!
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Status = Down, SSH = OK

Post by scottwilkerson »

You would need to look in the linux-server template to see what check_command is set to run for the host
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
crechet51
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

Re: Status = Down, SSH = OK

Post 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!
}
crechet51
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

Re: Status = Down, SSH = OK

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Status = Down, SSH = OK

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked