Xymon Mailing List Archive search

bbmrtg.sh Script help - solved

1 message in this thread

list Michael Lowery · Wed, 16 Feb 2005 03:54:24 -0600 ·
My fault, I had not stopped and restarted hobbit.  Once I did that, the
mrtg column showed up and all my graphs are there!

Thanks for your help! AGAIN!


Michael Lowery,

-----Original Message-----
From: Lowery, Michael 
Sent: Wednesday, February 16, 2005 3:46 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] bbmrtg.sh Script help

Ok, after doing that, I still get this in the bbmrtg.log file:

#####BEGIN#####
+ continue
+ IFS= 

+ cd /hobbit/server/tmp
++ echo 'BBMRTG_22728*status'
++ 's/\.status$//g'
/hobbit/server/ext/bbmrtg.sh: s/\.status$//g: No such file or directory
+ MRTGDATAFILE=
++ 'BBMRTG_22728*status'
/hobbit/server/ext/bbmrtg.sh: BBMRTG_22728*status: command not found
++ head -1
++ ' red '
/hobbit/server/ext/bbmrtg.sh:  red : command not found
+ STATUSLINE=
+ '[' '' = '' ']'
++ 'BBMRTG_22728*status'
/hobbit/server/ext/bbmrtg.sh: BBMRTG_22728*status: command not found
++ ' purple '
/hobbit/server/ext/bbmrtg.sh:  purple : command not found
++ head -1
+ STATUSLINE=
+ '[' '' = '' ']'
++ 'BBMRTG_22728*status'
/hobbit/server/ext/bbmrtg.sh: BBMRTG_22728*status: command not found
++ ' yellow '
/hobbit/server/ext/bbmrtg.sh:  yellow : command not found
++ head -1
+ STATUSLINE=
+ '[' '' = '' ']'
++ 'BBMRTG_22728*status'
/hobbit/server/ext/bbmrtg.sh: BBMRTG_22728*status: command not found
++ ' green '
/hobbit/server/ext/bbmrtg.sh:  green : command not found
++ head -1
+ STATUSLINE=
+ '[' '' = '' ']'
++ 'BBMRTG_22728*status'
/hobbit/server/ext/bbmrtg.sh: BBMRTG_22728*status: command not found
++ ' clear '
/hobbit/server/ext/bbmrtg.sh:  clear : command not found
++ head -1
+ STATUSLINE=
+ '[' '' = '' ']'
++ date
+ STATUSLINE=status .mrtg red Wed Feb 16 03:42:18 CST 2005 Undefined
color - Error in script
+ /hobbit/server/bin/bb 64.216.161.122 'status .mrtg red Wed Feb 16
03:42:18 CST 2005 Undefined color - Error in script
'
+ -f 'BBMRTG_22728*status'
/hobbit/server/ext/bbmrtg.sh: -f: command not found
#####END######

Michael Lowery

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Wednesday, February 16, 2005 1:25 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] bbmrtg.sh Script help

On Wed, Feb 16, 2005 at 12:37:52AM -0600, Lowery, Michael wrote:
Ok, I've added the [mrtg] stuff to hobbitlaunch, defined the variables
in hobbitserver, but I don't understand scripting enough to know what
is
happening here with bbmrtg.sh. 
#############BEGIN###################
++ echo 0%
++ s/%//
/hobbit/server/ext/bbmrtg.sh: s/%//: No such file or directory
This looks like some command that is undefined - probably $SED
by the look of the parameters.

Try running the attached script, and add the output to your
hobbitserver.cfg file.


Regards,
Henrik