nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

MRTG database extention

This is a discussion on MRTG database extention within the Linux software forums, part of the Linux Getting Started category; I build this web based management tool for my MRTG configuration But in the HTML script I can only view ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 03-24-2005, 07:13 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Rep Power: 0
nathan86
Default MRTG database extention

I build this web based management tool for my MRTG configuration
But in the HTML script I can only view TXT files in my IEXPLORER
is there a way to make MRTG log its data to a TXT file instead of a LOG file.

(I can use txt instead of cfg and for my debug options it worked fine too)
but then you can tell mrtg to make it TXT in the start command
and for the DB log file you can't
how to solve this
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-24-2005, 08:40 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Log file is basically text file.. but i'm not getting you here ... what actually you are trying?
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 03-25-2005, 08:57 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Rep Power: 0
nathan86
Default

The file generated by mrtg (not using RRDtool)
has an extention DEVICE.LOG but i made a html page
so i can quick view al my log files so i can easy track errors and that stuff but my HTML page does not support a dot LOG extension
so i'd like MRTG to standard output a DEVICE.TXT file instead of a DEVICE.LOG file.

Is there a way to peform this action

or does it require editting the MRTG perl script
Reply With Quote
  #4 (permalink)  
Old 03-26-2005, 05:00 PM
Guest
 
Posts: n/a
Default

Two options
1) perl mrtg myrouter.cfg --logging c:\myrouter.txt

OR

2) Rename your file using ren command
ren DEVICE.LOG DEVICE.TXT
Reply With Quote
  #5 (permalink)  
Old 03-27-2005, 06:55 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Rep Power: 0
nathan86
Default

I don't mean the file generated when debugging some options
but i mean the database file where from MRTG generates it's graphs?

that extension should be TXT but is LOG
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
MRTG help Pili Getting started tutorials 0 12-17-2007 06:20 PM
Getting error when starting the database sbhupathireddy Linux software 1 07-06-2006 06:02 PM
rpm database is corrupted, how to fix it? hfcchennai Linux software 1 12-21-2005 02:05 PM
Will MRTG do this?? kartheekpn Linux software 3 05-10-2005 07:18 PM
MRTG sonaikar Linux software 1 05-07-2005 05:16 PM


All times are GMT +5.5. The time now is 09:20 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36