Archive

Posts Tagged ‘mrtg’

External command with MRTG

March 26, 2010 Comments off

This is the format for mrtg config file with external script.
The script should return 4 lines:
– first value
– second value
– uptime
– target’s name

Target[NAME]: `/location/of/script`
MaxBytes[NAME]:
YLegend[NAME]: Read more…

Advertisements
Categories: Uncategorized Tags: , , ,

mrtg config options

March 12, 2010 Comments off

Here is the doc for all mrtg config options
http://mrtg.basemirror.de/doc/mrtg-reference.en.html

Categories: IT Tags: , ,

Password authenticate for webpage using apache

April 8, 2008 Comments off

Mới vừa build MTRG xong, ale..hup!

Sẵn có document chỉ setup password authenticate -> làm luôn.

Cách làm như sau:

1. touch /var/members/.htaccess

2. vi /etc/httpd/conf/httpd.conf

<Directory “/var/www/html/mrtg”>
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>

3. vi /var/www/html/mrtg/.htaccess

AuthName “MRTG Graphs/Html restricted access”
AuthType Basic
AuthUserFile /var/members/.htpasswd
Require user admin

4. htpasswd -c /var/members/.htaccess admin

5. restart apache.

Categories: Uncategorized Tags: , , , , ,