monitoring websites from nagios & check_mk
monitoring websites from nagios & check_mk
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
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
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: monitoring websites from nagios & check_mk
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
http://nagios-plugins.org/doc/man/check_http.html
Re: monitoring websites from nagios & check_mk
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: monitoring websites from nagios & check_mk
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
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
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.
The meat of your question depends on how the host was configured.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: monitoring websites from nagios & check_mk
The host checks uses ICMP pings to determine if they're up or not. The default host check in commands.cfg looks like:
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:
The above command would check to make sure a tcp connection can be made on port 80(default http port).
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
}
Code: Select all
define command{
command_name check-port-80
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 80
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: monitoring websites from nagios & check_mk
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
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
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?
What OS and release is the AWS system running?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: monitoring websites from nagios & check_mk
Hi ,
i have checked more closely the inbounce rules of ICMP and now it is working fine.
Thank you
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
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!