LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2005, 02:13 PM   #1
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Rep: Reputation: 30
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.
 
Old 10-10-2005, 12:09 AM   #2
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
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 ???
 
Old 10-10-2005, 01:38 PM   #3
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Original Poster
Rep: Reputation: 30
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
 
Old 10-10-2005, 02:16 PM   #4
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user auth for mrtg debloxie Linux - Networking 0 10-05-2005 11:13 AM
User Auth For Mrtg debloxie Linux - Networking 0 09-29-2005 10:26 AM
Imap - Pop3 Auth with user@domain instead username using virtusertable gakullak Linux - General 1 09-04-2004 04:34 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
Rsync Auth user problem Chris3084 Linux - Software 3 08-17-2003 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration