Re: [Nagios-users] printing info from nagios db check script

2012-05-14 Thread Joerg Linge
Am 14.05.2012 um 00:27 schrieb Tim Dunphy: Hey list, I'm having a small but important problem with a script I am writing in order to monitor the tablespaces of an oracle database. This is probably more of a bash programming issue, but as the ultimate purpose of the script is to be a

Re: [Nagios-users] printing info from nagios db check script

2012-05-14 Thread Alex Griffin
I haven't fully grokked the script you posted, but I do have a few comments. You should be quoting every single variable which is set by an external command, unless you have some reason not to. Most unquoted variables are bugs just waiting to show up in unexpected ways. You should also quote

[Nagios-users] printing info from nagios db check script

2012-05-13 Thread Tim Dunphy
Hey list, I'm having a small but important problem with a script I am writing in order to monitor the tablespaces of an oracle database. This is probably more of a bash programming issue, but as the ultimate purpose of the script is to be a nagios check I am hoping that you won't mind me

Re: [Nagios-users] printing info from nagios db check script

2012-05-13 Thread Tim Dunphy
hey guys, this was kind of interesting so I thought I might report it to anyone who might take an interest in this thread. But I just realized where the 'additional' percentage that the tablespace check is reporting comes from. It comes from the fact that the check is attempting to report