Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-07-2005, 02:13 PM
|
#1
|
Member
Registered: Jul 2003
Posts: 153
Rep:
|
user auth for mrtg
Hi,
i have been installing MRTG for some time and have noticed some few occurances.i installed it on mostly RH 9 systems.
i runthe normal cfgmake like this:
/usr/bin/cfgmaker --global 'WorkDir: /var/www/html' --global 'Options[_]: bits,growright,nobanner' --ifref=ip --subdirs HOSTNAME --output /etc/mrtg/mrtg.cfg abcdkkon@198.17.74.6
this works great.
i then run the mrtg command:
[root@mrtg2 root]# env LANG=C mrtg /etc/mrtg/mrtg.cfg
this gives me an error saying that it cannot find the "ip: 2.0.0.2.0.x.x.x.x" or something like that
i then have to open the mrtg.cfg to change all occurences of "198.17.74.6_2.0.0.2.0.x.x.x.x" on the needed interface(s) to 198.17.74.6_198.17.74.6" before the mrtg command can work.
Pls what cud be wrong with this? cud it be the mrtg version, snmp version or my cfgmaker command.
The second is that i hav been given people open access to view the mrtg on the mrtg box, i wud like to implement a secured solution whereby clients will have to login with a given username and password before they can get their corresponding mrtg results. i feel this will have a bit of mysql and php. pls i will welcome ideas about this coz i have mrtg working already
Thanks
D.
|
|
|
10-10-2005, 12:09 AM
|
#2
|
Member
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219
Rep:
|
there are many ways to implement security.
simplest is to use password protection method of apache.apache sets password on your webfolder.
http://httpd.apache.org/docs/2.1/howto/auth.html
i think u should also try cacti it comes with many features and easy to manage.
why you run [root@mrtg2 root]# env LANG=C mrtg /etc/mrtg/mrtg.cfg
why not a simple #mrtg /etc/mrtg/mrtg.cfg ???
|
|
|
10-10-2005, 01:38 PM
|
#3
|
Member
Registered: Jul 2003
Posts: 153
Original Poster
Rep:
|
Thanks for ur concern,
i use env LANG=C to override the system character settings coz it messes up my cfgmaker always complaining of UTF-8 stuffs.
Well , i will check out apache for those tips but i am not sure whether i can get a basic CGI script fr the login page for the mrtg viewers?
Thanks
D
|
|
|
10-10-2005, 02:16 PM
|
#4
|
Member
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219
Rep:
|
well u can get many cgi scripts for simple user auth but u cant use it securely in mrtg environemnt.
because if any one just knows the exact url to graph image he can access any time bypassing cgi security.
u need to do some tricky scripting in this environment. like putting mrtg folders outside apache webfolders. then write a script so that on successful auth it copies relevant contents and displays to user.
try cacti may be it fitss ur scenerio.
|
|
|
All times are GMT -5. The time now is 05:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|