Cacti the no such file or directory error when installing Nginx State monitoring

Source: Internet
Author: User
Tags rrd

Everyone is discussing how to use cacti to monitor the server working status, read a lot of articles, feel cacti is really a good server state monitoring software, look at the online introduction, it seems that anything can use cacti to monitor, although it feels a bit exaggerated, But cacti's function is really powerful. So also in a local idle server installed a cacti, first practice practicing. Just the company has a FreeBSD server running the Nginx service, and look at the Internet that can be used cacti very easy to monitor the flow of nginx information, and then follow the steps on the Internet also made a nginx monitoring.

The steps on the Internet are very simple and clear, according to the online statement, I spent five minutes, the server's nginx monitoring done. However, the monitoring program is done, is not access to data. Very depressed, the first attempt will fail.

So you start to troubleshoot your settings again. No problem at all. Suddenly I see a debug mode on it, so I click on it and see what happens. After debug, it comes out with a bunch of program execution process information. An error occurred in the last step with the following error message:

RRDTool Says:
Error:opening '/usr/local/share/cacti/rra/203_171_225_200_nginx_waiting_49.rrd ': No such file or directory

It seems that there is no correct generation of RRD statistical files. Then manually executed the scripts in the PL file, found the following error message:

No (lwp::useragent not found)

Looking up the Internet, this problem is missing components in Perl, the solution is as follows:

# PERL-MCPAN-E Shell
# cpan> Install Lwp::useragent

After n long time installation (server configuration is worse, eliminated the classic machine), and then manually execute PL script, you can correctly obtain Nginx data, feel this should not be a problem.

Sure enough, after a while, came my first cacti monitoring chart. Oh. It finally worked. Send a picture to celebrate.

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.