nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

HTML variable

This is a discussion on HTML variable within the Linux software forums, part of the Linux Getting Started category; I'm meassuring the commited RAM on my server It gives perfect values but.... let's say you've got 6000 mb total ...


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-22-2005, 04:40 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Rep Power: 0
nathan86
Default HTML variable

I'm meassuring the commited RAM on my server
It gives perfect values but....

let's say you've got 6000 mb total and MRTG measures 1500 used
then there's 4500 avaiable I want to let this value get calculated automaticly in my HTML page
Any ideas on how this can be accomplished

A=total
B=commited
C= available

A - B = C

Is it possible to use these values as a variable one????????
and make it appear next to the graph in my html page
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-22-2005, 06:13 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Rep Power: 0
nathan86
Default

Some way to make calculations would be good as wel

for example that i can take my maxbytes value minus my target value so i got the available bytes but i don't have any idea how this could be done in the cfg file

for example :

i've got 6000 max bytes and the OID logs a value of 1200
is it possible to do : maxbytes - OID value = what I Need

and then place that value in an alternative place in my HTML file
Reply With Quote
  #3 (permalink)  
Old 03-23-2005, 11:58 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
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

HTML does not support calculation on fly as it is not a computer language like php or perl. However it is possible to modify the perl code (mrtg) to do this job
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #4 (permalink)  
Old 03-23-2005, 01:29 PM
Junior Member
User
 
Join Date: Mar 2005
Posts: 18
Rep Power: 0
nathan86
Default

I'm not formiliar with perl programming
but if anyone knows which variable's I shoud add or adapt it would be of a great help
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
Script to strip all slack from php, html, js meowing Shell scripting 4 05-03-2008 03:37 AM
environmental variable myfoot CentOS / RHEL / Fedora 1 02-01-2008 07:14 AM
Perl simple html mail chiku Coding in General 3 08-17-2007 08:59 PM
How to pass shell variable to awk program Shell scripting 4 06-23-2006 06:11 AM
HTML Program cannot open in cgi-bin folder sonaikar Linux software 5 02-04-2005 05:45 PM


All times are GMT +5.5. The time now is 03:33 AM.


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