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