nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

monitoring http://bash.cyberciti.biz/monitoring/get-system-information-in-html-format

This is a discussion on monitoring http://bash.cyberciti.biz/monitoring/get-system-information-in-html-format within the Shell scripting forums, part of the Development/Scripting category; Hi i try to use monitoring scripts that scripts is title... i got some errors Code: rfs= "$($_CMD df -hT ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-11-2009, 05:24 PM
Junior Member
User
 
Join Date: Nov 2009
OS: Debian
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pikkuveli is on a distinguished road
Default monitoring http://bash.cyberciti.biz/monitoring/get-system-information-in-html-format

Hi

i try to use monitoring scripts that scripts is title...

i got some errors

Code:
 rfs="$($_CMD df -hT | grep -vE "^Filesystem|shm" \
  | awk 'BEGIN{print "
<ul>"}{w=sprintf("%d",$6);print "
<li>" $7 \
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" $6 \
  "(" $2 ")<BR> <img src=\"indicator.gif\" height=\"4\" width=\"" w "\"> \
  <BR><img src=\"graph.gif\"> \
  <BR>" $4"/"$3 "</li>
 
"}END{ print "</ul>
 

"}')"
this is in scripts not work..
errors is

awk: BEGIN{print "
awk: ^ unterminated string

can some help me what is wrong ?
Reply With Quote
  #2 (permalink)  
Old 26-11-2009, 09:00 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 604
Thanks: 61
Thanked 80 Times in 72 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

Hello,

Please try to copy the appropriate .gif files into the output directory. You can obtain those files from Vivek's comment on the source post.

Try that at let us know. Not sure if that is the fix.


Jaysunn
__________________
Have a look at what I have been working on
http://www.shellasaurus.com
Reply With Quote
  #3 (permalink)  
Old 26-11-2009, 09:08 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 604
Thanks: 61
Thanked 80 Times in 72 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

Hmm,
I tested this and came up with one of the same errors that a commenter made on the Blog Entry. I will ask the site admin for assistance.


Code:
c-76-19-15-133:test jasonralph$ ./109.sh > /Users/jasonralph/Desktop/test/jason.html
./109.sh: line 110: syntax error near unexpected token `newline'
./109.sh: line 110: `  echo '</td>'
c-76-19-15-133:test jasonralph$
__________________
Have a look at what I have been working on
http://www.shellasaurus.com
Reply With Quote
  #4 (permalink)  
Old 27-11-2009, 03: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

Okay, I've flushed cache and deleted row from database. Download zip file again. It should work now.
Attached Images
File Type: png Screenshot-Network Status - Opera.png (53.6 KB, 4 views)
__________________
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

Last edited by nixcraft; 27-11-2009 at 03:48 PM.
Reply With Quote
  #5 (permalink)  
Old 27-11-2009, 08:29 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 604
Thanks: 61
Thanked 80 Times in 72 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

Sweet,

Thanks as always, this is a really neat script that I learned from.

@pikkuveli,

How are you making out with the new zip file?


Regards,

Jaysunn
__________________
Have a look at what I have been working on
http://www.shellasaurus.com
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
Shell Script To Format File Output in HTML Format zerbitated Shell scripting 1 22-07-2009 01:31 AM
Internet Monitoring myfoot Networking, Firewalls and Security 3 06-06-2009 02:37 AM
apcupsd (UPS monitoring) maniannam CentOS / RHEL / Fedora 0 31-12-2008 04:23 PM
Network Monitoring puppen Linux software 2 10-05-2006 11:01 PM
Monitoring a NIC nathan86 Linux software 2 10-03-2005 03:41 PM


All times are GMT +5.5. The time now is 01:18 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