1

I have an AWS EC2 project to be monitored by Nagios.

My Nagios runs on a server outside of AWS.

Service monitoring works, but host monitoring does not.

How can I fix it?

define host {
       use                             linux-server
       host_name                       myserver.com
       alias
       address                         44.211.111.211
       max_check_attempts              5
       check_period                    24x7
       notification_interval           30
       notification_period             24x7
}

define service{
    host_name               myserver.com
    service_description     myserver.com_web
    check_command           check_https_with_auth!myserver.com
    max_check_attempts      5
    check_period            24x7
    notification_interval   30
    notification_period     24x7
}

1 Answer 1

2

Nagios by default uses ICMP ("Ping") to test host reachability.

Update the EC2 Security Group to permit ICMP access from your Nagios address - that will fix your issue.

1
  • Thank you very much . it works for me.
    – whitebear
    Commented May 28, 2020 at 7:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .