KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Shell Script Test not working on Solaris 9

 
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX
View previous topic :: View next topic  
Author Message
groggi



Joined: 03 Aug 2005
Posts: 6

PostPosted: Wed Aug 03, 2005 2:32 pm    Post subject: Shell Script Test not working on Solaris 9 Reply with quote

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.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Aug 04, 2005 1:56 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
groggi



Joined: 03 Aug 2005
Posts: 6

PostPosted: Thu Aug 04, 2005 2:00 pm    Post subject: Reply with quote

We have solaris 9 on SPARC machines.

Which is the current rma to use on this platform? Where can we get it from?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Aug 04, 2005 2:06 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Aug 04, 2005 2:07 pm    Post subject: Reply with quote

PS. RMA 1.00 for Solaris (SPARC) recompiled by David Edwards available at http://www.hostmonitor.biz/download/rma_sparc.zip

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
groggi



Joined: 03 Aug 2005
Posts: 6

PostPosted: Thu Aug 04, 2005 2:09 pm    Post subject: Reply with quote

I downloaded this but the executable binary file "rma" is missing.
Do I have to compile bymyself or what is the actual application binary?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Aug 04, 2005 2:29 pm    Post subject: Reply with quote

There is rma_s binary module in this package

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
groggi



Joined: 03 Aug 2005
Posts: 6

PostPosted: Thu Aug 04, 2005 2:40 pm    Post subject: Reply with quote

I tried this but only get this error message:

ld.so.1: ./rma_s: fatal: libstdc++.so.4: open failed: No such file or directory
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Aug 04, 2005 2:47 pm    Post subject: Reply with quote

Quote from the manual:
Quote:

"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.


Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
groggi



Joined: 03 Aug 2005
Posts: 6

PostPosted: Thu Aug 04, 2005 2:58 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Aug 04, 2005 3:30 pm    Post subject: Reply with quote

I think you may use newer version. Just create link that points to existing library using standard UNIX command "ln". I think its better to create symbolic link (using "-s" option) instead of hard link.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
groggi



Joined: 03 Aug 2005
Posts: 6

PostPosted: Fri Aug 05, 2005 12:32 am    Post subject: Reply with quote

Hi Alex,

This seams to work now.

However I will drop an email request for the source code of 1.20.

Thanks
Sven
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index