Cacti monitor the problem of importing Nginx monitoring template after installation is complete

Source: Internet
Author: User

Environment:

Ubuntu Server 12.04 x64

cacti-0.8.8a

Today, the installation of cacti monitoring, installation completed, import nginx monitoring template, found that monitoring, has not been out of the picture, is very depressed. Results The PL script of monitoring nginx state is called directly in the system, and the error is found.

cactiuser@00098:/var/tmp/cacti/cacti/rra$/usr/bin/perl/var/tmp/cacti/cacti-0.8.8a/scripts/get_nginx_clients_ status.pl Http://192.168.1.1:7039/status

No (lwp::useragent not found)

Look up the information on the Internet, is that the Perl component is not complete, using the command to install

# PERL-MCPAN-E Shell

Until the cpan[1]> prompt appears, and then enter install Lwp::useragent

It was a long process, and I didn't succeed in this way.

Solution:

Although the above method did not succeed, but saw the unexpected surprise, found that fewer bags are Libwww-perl

The result is direct apt-get installation, and it's really done.

# sudo apt-get install Libwww.perl

root@00098:/var/tmp/cacti/cacti-0.8.8a/scripts#./get_nginx_clients_status.pl Http://192.168.1.1:7039/status

Nginx_active:11 nginx_reading:0 Nginx_writing:4 Nginx_waiting:7

Little Remember!

Acridine "blog, please be sure to keep this source http://gm100861.blog.51cto.com/1930562/921908

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.