monitoring websites from nagios & check_mk

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

monitoring websites from nagios & check_mk

Postby agroknow » Mon Apr 10, 2017 4:24 am

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
agroknow
 
Posts: 9
Joined: Mon Apr 10, 2017 4:07 am

Re: monitoring websites from nagios & check_mk

Postby tacolover101 » Mon Apr 10, 2017 12:22 pm

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
User avatar
tacolover101
 
Posts: 148
Joined: Mon Apr 10, 2017 11:55 am

Re: monitoring websites from nagios & check_mk

Postby cdienger » Mon Apr 10, 2017 1:57 pm

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.
User avatar
cdienger
 
Posts: 491
Joined: Tue Feb 07, 2017 11:26 am

Re: monitoring websites from nagios & check_mk

Postby agroknow » Tue Apr 11, 2017 6:50 am

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 ;)
agroknow
 
Posts: 9
Joined: Mon Apr 10, 2017 4:07 am

Re: monitoring websites from nagios & check_mk

Postby mcapra » Tue Apr 11, 2017 10:53 am

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.
Former Nagios employee - https://github.com/mcapra/
User avatar
mcapra
 
Posts: 2579
Joined: Thu May 05, 2016 3:54 pm

Re: monitoring websites from nagios & check_mk

Postby cdienger » Tue Apr 11, 2017 11:06 am

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).
User avatar
cdienger
 
Posts: 491
Joined: Tue Feb 07, 2017 11:26 am

Re: monitoring websites from nagios & check_mk

Postby agroknow » Thu Apr 20, 2017 7:46 am

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
agroknow
 
Posts: 9
Joined: Mon Apr 10, 2017 4:07 am

Re: monitoring websites from nagios & check_mk

Postby tgriep » Thu Apr 20, 2017 3:10 pm

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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 5653
Joined: Thu Oct 30, 2014 9:02 am

Re: monitoring websites from nagios & check_mk

Postby agroknow » Mon Apr 24, 2017 9:53 am

Hi ,
i have checked more closely the inbounce rules of ICMP and now it is working fine.

Thank you
agroknow
 
Posts: 9
Joined: Mon Apr 10, 2017 4:07 am

Re: monitoring websites from nagios & check_mk

Postby tgriep » Mon Apr 24, 2017 11:47 am

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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 5653
Joined: Thu Oct 30, 2014 9:02 am

Next

Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot], mcapra, sartecat, tmattingly and 16 guests