[Check_mk (english)] Can't run script monitoring ORACLE in AIX 5.3


Hello everybody,

I’ve follow the guide in here: https://mathias-kettner.de/checkmk_oracle.html to setup monitoring Oracle with Check_MK

I was successful monitoring Oracle in Linux. But in the AIX 5.3, I can’t run mk_oracle.

It’s error:

ksh: mk_oracle: not found

If I changed:

#!/bin/bash to #!/usr/bin/ksh93, then run:

it’s show an error:

line 638: syntax error at line 688: `(’ unexpected

Anyone see this error before?

Please help.

Thank you.

Cuong.

Hello everybody,

Who’s have the problem like me? Please help.

I’m use check_mk v1.2.8p20

···

---- On Sun, 16 Apr 2017 20:37:52 +0700 Cuong Le Van lecuong@banbeit.com wrote ----



Hello everybody,

I’ve follow the guide in here: https://mathias-kettner.de/checkmk_oracle.html to setup monitoring Oracle with Check_MK

I was successful monitoring Oracle in Linux. But in the AIX 5.3, I can’t run mk_oracle.

It’s error:

ksh: mk_oracle: not found

If I changed:

#!/bin/bash to #!/usr/bin/ksh93, then run:

it’s show an error:

line 638: syntax error at line 688: `(’ unexpected

Anyone see this error before?

Please help.

Thank you.

Cuong.

You cannot just change the interpreter of a script.

There is a mk_oracle.aix agent plugin which is also a bash script.
Install bash on AIX and try that.

Regards

···

On 21.04.2017 04:16, Cuong Le Van wrote:

    ksh: mk_oracle: not found

    If I changed:
    #!/bin/bash to #!/usr/bin/ksh93, then run:

--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin

Thank Robert Sander very much!

I installed bash on AIX and it’s running now.

Rgds,

Cuong.

···

---- On Fri, 21 Apr 2017 15:44:26 +0700 Robert Sander r.sander@heinlein-support.de wrote ----

On 21.04.2017 04:16, Cuong Le Van wrote:

ksh: mk_oracle: not found

If I changed:

#!/bin/bash to #!/usr/bin/ksh93, then run:

You cannot just change the interpreter of a script.

There is a mk_oracle.aix agent plugin which is also a bash script.

Install bash on AIX and try that.

Regards

Robert Sander

Heinlein Support GmbH

Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-43

Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG:

HRB 93818 B / Amtsgericht Berlin-Charlottenburg,

Geschäftsführer: Peer Heinlein – Sitz: Berlin


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en