Page 1 of 2

monitoring websites from nagios & check_mk

Posted: Mon Apr 10, 2017 4:24 am
by agroknow
Hi,

i am new on using nagios. We have install check_mk 1.2.0p2 version so we can monitoring our virtual machines (hosts). Who can monitoring our websites? If we use Nagios XI is a different installation? How can i enable website monitoring in the installation of nagios i already have?

I have search in wato options with no results. As far as i can see nagios provides you with http service monitoring. Is that for websites monitoring?

My problem is that in a virtual machine (host) i have many websites. How can check each one and also check the host of the websites? Is there any plugin i can use?

Thank you in advance,
Jenny

Re: monitoring websites from nagios & check_mk

Posted: Mon Apr 10, 2017 12:22 pm
by tacolover101
i'm confused what your asking about check_mk - but, as a plugin check_http is probably what your looking for.

http://nagios-plugins.org/doc/man/check_http.html

Re: monitoring websites from nagios & check_mk

Posted: Mon Apr 10, 2017 1:57 pm
by cdienger
As tacolover101 pointed out, it sounds like check_http is what you need. Let us know if you have any questions after taking a look at documentation that was linked.

Re: monitoring websites from nagios & check_mk

Posted: Tue Apr 11, 2017 6:50 am
by agroknow
Hi,

thank you both for your answers . I add the plugin and add the http service in 2 hosts i wanted. Unfortunate i have another problem. How can i host showing down and all the services are ok and green? Also the specific host- virtual machine is running is not down because i checked it.

What i am doing wrong?

Thank you ;)

Re: monitoring websites from nagios & check_mk

Posted: Tue Apr 11, 2017 10:53 am
by mcapra
Can you show us your host definition as well as the command definition used in the host's check_command directive?

The meat of your question depends on how the host was configured.

Re: monitoring websites from nagios & check_mk

Posted: Tue Apr 11, 2017 11:06 am
by cdienger
The host checks uses ICMP pings to determine if they're up or not. The default host check in commands.cfg looks like:

Code: Select all

define command{
        command_name    check-host-alive
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
        }
It is possible that the web servers block pings but allow http access. If you have the access, make sure the servers hosting the sites allow ICMP traffic. Another option would be to configure a new command that uses a different method to determine if the host was up. A quick example would be:

Code: Select all

define command{
        command_name    check-port-80
        command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -p 80
        }
The above command would check to make sure a tcp connection can be made on port 80(default http port).

Re: monitoring websites from nagios & check_mk

Posted: Thu Apr 20, 2017 7:46 am
by agroknow
Hi,

sorry for the late answer. Although the virtual machine are running the host in nagios seem to be down. All services are running and i have only one critical notice .

CRIT fs_/ CRIT - 94.4% used (7.31 of 7.7 GB), (levels at 80.0/90.0%), trend: +7.13MB / 24 hours

The vm is in amazon and i have allowed ICMP traffic.

What else can i do?

thank you

Re: monitoring websites from nagios & check_mk

Posted: Thu Apr 20, 2017 3:10 pm
by tgriep
Can you verify that you have allowed inbound ICMP traffic to that host in the AWS security Group as well as the firewall if the OS is running one?
What OS and release is the AWS system running?

Re: monitoring websites from nagios & check_mk

Posted: Mon Apr 24, 2017 9:53 am
by agroknow
Hi ,
i have checked more closely the inbounce rules of ICMP and now it is working fine.

Thank you

Re: monitoring websites from nagios & check_mk

Posted: Mon Apr 24, 2017 11:47 am
by tgriep
That is good to hear that it is working now. If you don't have anymore questions, shall I mark the post as solved and lock it up?