Here is my bb-roracle.ksh v2.20 that I modified to work with HP-UX's KSH88 (/bin/ksh) shell.
Robert Herron robert.herron at gmail.com
On Fri, Sep 10, 2010 at 9:14 AM, <xymon-digest-help at xymon.com> wrote:
From: Vernon Everett <everett.vernon at gmail.com> To: xymon at xymon.com Date: Fri, 10 Sep 2010 21:14:34 +0800 Subject: Re: [xymon] bb-roracle.ksh See attached. I don't recall what version of ksh I was using for this one, but I do recall it worked on the Sol8 and Sol10 default ksh. (The default version doesn't support most of the string manipulation commands, which makes me think it's the older version)
It did require two additional config files. One, defined the tests to perform, and the other defined your list of databases. Then you also had to make sure your tnsnames was available. Instead of trying to set the path, I used to symbolically link it into the ~/client/etc/ directory.
Give it a whirl, and see how you go. Sorry I can't be more specific, but it's been some time since I last did database monitoring.
Regards Vernon
On Fri, Sep 10, 2010 at 8:48 PM, Gore, David W <david.gore at verizonbusiness.com> wrote:
Has anybody ported this script to ksh93? I made some changes to get it half running but perhaps someone has done a more thorough and complete job who knows the differences between the older and newer Korn shells?
~David Gore
Hi David
Did you come right with Robert's attachemnt?
Regards Vernon
On Fri, Sep 10, 2010 at 11:12 PM, Robert Herron <robert.herron at gmail.com>wrote:
Here is my bb-roracle.ksh v2.20 that I modified to work with HP-UX's KSH88 (/bin/ksh) shell.
Robert Herron robert.herron at gmail.com
On Fri, Sep 10, 2010 at 9:14 AM, <xymon-digest-help at xymon.com> wrote:
From: Vernon Everett <everett.vernon at gmail.com> To: xymon at xymon.com Date: Fri, 10 Sep 2010 21:14:34 +0800 Subject: Re: [xymon] bb-roracle.ksh See attached. I don't recall what version of ksh I was using for this one, but I do
recall it worked on the Sol8 and Sol10 default ksh.
(The default version doesn't support most of the string manipulation commands, which makes me think it's the older version)
It did require two additional config files. One, defined the tests to perform, and the other defined your list of databases. Then you also had to make sure your tnsnames was available. Instead of trying to set the path, I used to symbolically link it into the ~/client/etc/ directory.
Give it a whirl, and see how you go. Sorry I can't be more specific, but it's been some time since I last did database monitoring.
Regards Vernon
On Fri, Sep 10, 2010 at 8:48 PM, Gore, David W < david.gore at verizonbusiness.com> wrote:
Has anybody ported this script to ksh93? I made some changes to get it
half running but perhaps someone has done a more thorough and complete job who knows the differences between the older and newer Korn shells?
~David Gore
To unsubscribe from the xymon list, send an e-mail to xymon-unsubscribe at xymon.com
Hi,
Having a small problem with this... For some reason, it's not processing the LISTENER check and on the log files I get:
/bin/sort: open failed: /usr/local/hobbit/client/tmp/LISTENER.23226: No such file or directory cat: /usr/local/hobbit/client/tmp/LISTENER.verbose.23226: No such file or directory
Seems the files don't get created for some reason or another. But then also the temporary files are not being deleted either:
-rw-r--r-- 1 root root 1588 Oct 13 13:23 bb-roracle.ksh.22538.nnnn,YYYY,XXX-stat -rw-r--r-- 1 root root 6336 Oct 13 13:23 bb-roracle.ksh.22538.nnnn,YYYY,XXX-stat2 -rw-r--r-- 1 root root 1588 Oct 13 13:28 bb-roracle.ksh.22883.nnnn,YYYY,XXX-stat -rw-r--r-- 1 root root 6336 Oct 13 13:28 bb-roracle.ksh.22883.nnnn,YYYY,XXX-stat2 -rw-r--r-- 1 root root 1588 Oct 13 13:33 bb-roracle.ksh.23226.nnnn,YYYY,XXX-stat -rw-r--r-- 1 root root 6336 Oct 13 13:33 bb-roracle.ksh.23226.nnnn,YYYY,XXX-stat2
I can reproduce what the scripts does by hand without a problem - no permissions or anything, but seems like the file is not being created - similarly, the others are not being deleted.
Any clues?
TIA.
°((( = (( ===°°° ((( ================================================
On 9/10/2010 11:12 AM, Robert Herron wrote:
Here is my bb-roracle.ksh v2.20 that I modified to work with HP-UX's KSH88 (/bin/ksh) shell.
Robert Herron robert.herron at gmail.com
On Fri, Sep 10, 2010 at 9:14 AM, <xymon-digest-help at xymon.com> wrote:
From: Vernon Everett <everett.vernon at gmail.com> To: xymon at xymon.com Date: Fri, 10 Sep 2010 21:14:34 +0800 Subject: Re: [xymon] bb-roracle.ksh See attached. I don't recall what version of ksh I was using for this one, but I do recall it worked on the Sol8 and Sol10 default ksh. (The default version doesn't support most of the string manipulation commands, which makes me think it's the older version)
It did require two additional config files. One, defined the tests to perform, and the other defined your list of databases. Then you also had to make sure your tnsnames was available. Instead of trying to set the path, I used to symbolically link it into the ~/client/etc/ directory.
Give it a whirl, and see how you go. Sorry I can't be more specific, but it's been some time since I last did database monitoring.
Regards Vernon
On Fri, Sep 10, 2010 at 8:48 PM, Gore, David W <david.gore at verizonbusiness.com> wrote:
Has anybody ported this script to ksh93? I made some changes to get it half running but perhaps someone has done a more thorough and complete job who knows the differences between the older and newer Korn shells?
~David Gore
To unsubscribe from the xymon list, send an e-mail to xymon-unsubscribe at xymon.com
Sure you sure this is not a basic file permissions issue? What user is Xymon running as? What user are you working as? Files are owned by root. Xymon probably can't delete them. Check the write permissions on the tmp directory too.
Regards Vernon
On 14 October 2011 01:48, Ricardo Stella <stella at rider.edu> wrote:
Hi,
Having a small problem with this... For some reason, it's not processing the LISTENER check and on the log files I get:
/bin/sort: open failed: /usr/local/hobbit/client/tmp/LISTENER.23226: No such file or directory cat: /usr/local/hobbit/client/tmp/LISTENER.verbose.23226: No such file or directory
Seems the files don't get created for some reason or another. But then also the temporary files are not being deleted either:
-rw-r--r-- 1 root root 1588 Oct 13 13:23 bb-roracle.ksh.22538.nnnn,YYYY,XXX-stat -rw-r--r-- 1 root root 6336 Oct 13 13:23 bb-roracle.ksh.22538.nnnn,YYYY,XXX-stat2 -rw-r--r-- 1 root root 1588 Oct 13 13:28 bb-roracle.ksh.22883.nnnn,YYYY,XXX-stat -rw-r--r-- 1 root root 6336 Oct 13 13:28 bb-roracle.ksh.22883.nnnn,YYYY,XXX-stat2 -rw-r--r-- 1 root root 1588 Oct 13 13:33 bb-roracle.ksh.23226.nnnn,YYYY,XXX-stat -rw-r--r-- 1 root root 6336 Oct 13 13:33 bb-roracle.ksh.23226.nnnn,YYYY,XXX-stat2
I can reproduce what the scripts does by hand without a problem - no permissions or anything, but seems like the file is not being created - similarly, the others are not being deleted.
Any clues?
TIA.
°((( = (( ===°°° ((( ================================================
On 9/10/2010 11:12 AM, Robert Herron wrote:
Here is my bb-roracle.ksh v2.20 that I modified to work with HP-UX's KSH88 (/bin/ksh) shell.
Robert Herronrobert.herron at gmail.com
On Fri, Sep 10, 2010 at 9:14 AM, <xymon-digest-help at xymon.com> <xymon-digest-help at xymon.com> wrote:
From: Vernon Everett <everett.vernon at gmail.com> <everett.vernon at gmail.com> To: xymon at xymon.com Date: Fri, 10 Sep 2010 21:14:34 +0800 Subject: Re: [xymon] bb-roracle.ksh See attached. I don't recall what version of ksh I was using for this one, but I do recall it worked on the Sol8 and Sol10 default ksh. (The default version doesn't support most of the string manipulation commands, which makes me think it's the older version)
It did require two additional config files. One, defined the tests to perform, and the other defined your list of databases. Then you also had to make sure your tnsnames was available. Instead of trying to set the path, I used to symbolically link it into the ~/client/etc/ directory.
Give it a whirl, and see how you go. Sorry I can't be more specific, but it's been some time since I last did database monitoring.
Regards Vernon
On Fri, Sep 10, 2010 at 8:48 PM, Gore, David W <david.gore at verizonbusiness.com> <david.gore at verizonbusiness.com> wrote:
Has anybody ported this script to ksh93? I made some changes to get it half running but perhaps someone has done a more thorough and complete job who knows the differences between the older and newer Korn shells?
~David Gore
To unsubscribe from the xymon list, send an e-mail toxymon-unsubscribe at xymon.com
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
everett.vernon@gmail.com
-
robert.herron@gmail.com
-
stella@rider.edu