Nagios configuration file for configuration notes of Nagios pnp

Source: Internet
Author: User

PNP is a small open-source software package. It is based on PHP and PERL and uses rrdtool to plot data collected by Nagios into charts. If you want to install Nagios pnp, the detailed Nagios pnp configuration is provided here for you to refer to the configuration of Nagios pnp after installing all the software.


1. Modify the pnp configuration file for Nagios PNP configuration and enable logging
The default path is/usr/local/nagios/var/process_perfdata.cfg.
LOG_FILE =/usr/local/nagios/var/perfdata. log
#
# Loglevel 0 = silent 1 = normal 2 = debug
#
LOG_LEVEL = 0 # Set this example to 2 and use the debug mode


2. Modify the Nagios configuration file in Nagios pnp Configuration
Reference Official Website: http://www.pnp4nagios.org/pnp/webfe
In this example, when the sun icon is added
Add the red part in the/usr/local/nagios/etc/objects/templates. cfg server option and local option.
Define service
{
Name generic-service
Action_url/nagios/pnp/index. php? Host = $ HOSTNAME $ & srv = $ SERVICEDESC $
Process_perf_data 1
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.