nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24-03-2005, 06:13 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 24-03-2005, 07:40 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 25-03-2005, 07:57 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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 26-03-2005, 04: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 27-03-2005, 05:55 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 09:11 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38