Shell Script Test not working on Solaris 9
Shell Script Test not working on Solaris 9
I tried all the sample scripts provided but they all fail with:
Agent error: Cannot read data
Then I wrote a HelloWorld script like this:
#!/bin/sh
echo "scriptres:Ok:HelloWorld"
This one works fine:
- Status: Ok
- Reply: HelloWorld
I already checked the timeout issue but since timeout is set to 120 sec there must be another reason for this...
If anyone has a hint why the other scripts, i.e. "SYSTEM: Swap free" do not work I would be more than happy!
Thanks
Sven
PS: It looks like it is not possible to use scripts with more than about 145 bytes with unix rma. I put the script directly on the solaris machine and wrote a wrapper script with just a few bytes. This works for the moment but it can only be an interim solution since the deployment/update of the scripts is not very handy like this.
Agent error: Cannot read data
Then I wrote a HelloWorld script like this:
#!/bin/sh
echo "scriptres:Ok:HelloWorld"
This one works fine:
- Status: Ok
- Reply: HelloWorld
I already checked the timeout issue but since timeout is set to 120 sec there must be another reason for this...
If anyone has a hint why the other scripts, i.e. "SYSTEM: Swap free" do not work I would be more than happy!
Thanks
Sven
PS: It looks like it is not possible to use scripts with more than about 145 bytes with unix rma. I put the script directly on the solaris machine and wrote a wrapper script with just a few bytes. This works for the moment but it can only be an interim solution since the deployment/update of the scripts is not very handy like this.
I have tested agent on our Solaris 9 system, works fine. I have checked code and have just one possible explanation - you are using agent that was compiled with wrong _BYTE_ORDER option.
What exactly agent do you use? We have many agents on our server, could you provide download link? Probably you have compiled agent by yourself?
You are using Intel system or SPARC system?
Regards
Alex
What exactly agent do you use? We have many agents on our server, could you provide download link? Probably you have compiled agent by yourself?
You are using Intel system or SPARC system?
Regards
Alex
We have binary RMA 0.80 for SPARC. Available at http://www.ks-soft.net/hostmon.eng/downpage.htm
If you have gcc compiler, you may recompile latest version 1.20. Just send request to support@ks-soft.net and we provide source codes.
Or if you can provide telnet access to your SPARC system, we can recompile agent for you.
Regards
Alex
If you have gcc compiler, you may recompile latest version 1.20. Just send request to support@ks-soft.net and we provide source codes.
Or if you can provide telnet access to your SPARC system, we can recompile agent for you.
Regards
Alex
PS. RMA 1.00 for Solaris (SPARC) recompiled by David Edwards available at http://www.hostmonitor.biz/download/rma_sparc.zip
Regards
Alex
Regards
Alex
Quote from the manual:
Alex
Regards"rma_s" module uses run-time linking with libstdc++ and libgcc libraries. It means that you need 2 additional libraries: libgcc and libstdc++ that are available at sunfreeware.com. Since these files constitute a part of the gcc package, you may not need to install it if you already have gcc 3.3 installed.
Alex
Hi Alex,
Sorry - I dod not see that in the manual...
Anyway:
We have installed gcc 3.41:
root@hs2pqman2-/usr/local/lib# pkginfo|grep gcc
application SMCgcc342 gcc
Since libgcc is included in gcc packages I think this should be enough.
Would it be possible to use this newer version instead of installing the older 3.3?
Sorry - I dod not see that in the manual...
Anyway:
We have installed gcc 3.41:
root@hs2pqman2-/usr/local/lib# pkginfo|grep gcc
application SMCgcc342 gcc
Since libgcc is included in gcc packages I think this should be enough.
Would it be possible to use this newer version instead of installing the older 3.3?