Monitoring web services with nagios
First, let us enable the crack directory from which Nagios fifa reads server configuration files.
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/g Output: Nagios Core.1.1 Copyright (c) 2009-present Nagios Core trial Development Team and Community Contributors Copyright (c) Ethan Galstad Last Modified: License: GPL Website: gios.
We will also set fifa up the Nagios Remote Plugin Executor (nrpe) on another host, so guide that we can monitor it from the Nagios server.In the above example, you can see that localhost (which refers to the system where Nagios is installed) has a host status.Then, download the nrpe ringtone source code, and run the steps in the Installing the check_nrpe plugin section, till configuring the Makefiles.First, Update your Yum Package Lists # yum update, then, Install crack the Required Packages # yum install office -y httpd php gcc glibc glibc-common gd gd-devel make net-snmp perl-rrd xinetd openssl-devel package perl-GD* ntp perl-rrd.We shall cover some basic configuration steps which might be useful to monitor a host of resources via the web interface.Gz #./configure -with-nagios-usernagios -with-nagios-groupnagios -with-openssl/usr/bin/openssl -enable-perl-modules -enable-libtap # make # make install Install nrpe Find the source code for the latest stable release of nrpe at the nrpe downloads page.In the example above, it is /dev/sda1.Moreover, there are plugins that can deliver alerts through SMS or other ringtone media.Conclusion Now that you know about Nagios and its features like monitoring your hosts and some of the services, you might want to spend some time to figure out which services are critical to you so you can start monitoring these servers.The Website Wizard is used to monitor the steady-state aspects of a website.The Nagios daemon relies upon plugins for its monitoring and alerting functionality.# netstat -at grep nrpe tcp 0 0 nrpe listen Verify the nrpe daemon is functioning properly.Finally, product the Web Transaction Wizard monitors transactions and other interactive activities image on your website.Monitor / Adding a new guide host with nrpe In this section, well show you how to add a new host to Nagios, so it will be monitored.Read object config files office okay.If you use Ubuntu, you have to install a few product dependencies first.Here, we will define a check_nrpe command that will be used later in this article. Install Build Dependencies, as we are building Nagios Core from source, we must install a few development libraries that will allow us to complete the build.