查看文章 |
Plugins: Nagios Nagios is an open source host, service and network monitoring program. The openQRM plugin for nagios integrates the nagios functionality including the management interface into openQRM so that any nodes or Virtual Environments that are managed by openQRM can be monitored through Nagios as well. For more details on Nagios see http://www.nagios.org. Setup This can be carried out in one of the possible 2 ways: 1.RPM installation(binary) Install the rpms openqrm-plugin-apache-*.rpm and openqrm-plugin-nagios-*.rpm: rpm -Uvh openqrm-plugin-apache-*.rpm openqrm-plugin-nagios-*.rpm Run the openqrm installer /opt/qrm/qrm-installer -i -m apache -m nagios OR 2. Build it from source To build from the source, download the latest openQRM 3.0 source from the SourceForge, extract it. cd openqrm*/src/plugins Extract the apache plugin tar file openqrm-plugin-apache*.tar.gz tar xvzf openqrm-plugin-apache*.tar.gz Extract the nagios plugin tar file openqrm-plugin-nagios*.tar.gz tar xvzf openqrm-plugin-nagios*.tar.gz Build the apache plugin cd apache make clean make all make install Build the nagios plugin cd ../nagios make clean make all make install Copy the apache and nagios plugin cd ../../.. cp -a out/qrm/plugins/apache <openQRM-root-dir>/qrm/plugins/ cp -a out/qrm/plugins/nagios <openQRM-root-dir>/qrm/plugins/ Run the openqrm installer <openQRM-root-dir>/qrm/qrm-installer -i -m apache -m nagios Assumptions Listed below are assumptions of Nagios plugin for openQRM installation:
Pre-requisitesNeeds the packages listed below.
Versions of software componentssListed below are versions of nagios compnents being used.
Distro's tested
USAGELogin to the openQRM GUI.
Configure all VEs to monitor Nagios services by clicking Virtual Environments ->Individual VE ->Nagios Config
Default Nagios Config Screen
Nagios Config Screen when multiple NRPE images available Check the services that needs to be monitored and click “Save Selection”. Repeat the above step for all the VEs. Nagios plugin for openQRM installation and configuration is now complete.
Other ScreensScreenshot of openQRM after user login
Screenshot with Nagios menu items expanded
Screenshot when user clicks Resource->Selected Node->Nagios Report Nagios Report within openQRM
Nagios Report with local resource monitoring within openQRM
NRPE Image Creation for various DISTROSBy default, openQRM will have the NRPE image created for the distro it runs on. If you have nodes running a different distro than openQRM, you need to create NRPE image for this distro as per the steps outlined below.
Central Nagios ServerYou can now view the status of exisiting Nagios server by configuring nagios server within openQRM as Central nagios server. To monitor the distributed servers from nagios server in openQRM:
The existing Nagios server needs to be configured as distributed server. Refer to the section "Distributed Server Configuration" found at the web page: http://nagios.sourceforge.net/docs/1_0/distributed.html |




