สร้างไฟล์ /root/bin/mrtg-nginx.pl ข้อมูลตามนี้
โค้ด PHP:
#!/usr/bin/perl
# $Revision: 2 $
# $Date: 2008-09-12 15:11:40 +0300 (Fri, 12 Sep 2008) $
my %opt = (
# http link to nginx stub_status, be sure turn on stub_status in nginx conf
nginx_status => 'http://localhost:80/status',
# path for program what may dump web page, normaly lynx -dump
# lynx => 'lynx -dump',
lynx => 'wget -q -Y off -O -',
);
...