rma script chech problem

Remote Monitoring Agent for Linux, FreeBSD, and other UNIX-like platforms.
User avatar
bsd3000
Posts: 6
Joined: Sat Jan 28, 2006 10:15 am

rma script chech problem

Post by bsd3000 »

I use a lot of sh script to check raid status, log status, inode status, queue mail status, etc etc
it runs by rma
If i run by hand one scrpt a time there are no problem, but when
hostmonitor check a folder, runs all script at the same time
and i see:

RMA: 301 - Script execution error: exec error: Text file busy

How can i do to work all script test at the same time?


kind regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1) What version of the agent do you use?
2) What system do you use? Linux? FreeBSD? Solaris? some other? version?

Regards
Alex
User avatar
bsd3000
Posts: 6
Joined: Sat Jan 28, 2006 10:15 am

Post by bsd3000 »

rma 1.22
I use freebsd 6.0
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We have not tested version 6.0 yet. Could you provide telnet access to your system? Do you have gcc installed?

Regards
Alex
User avatar
bsd3000
Posts: 6
Joined: Sat Jan 28, 2006 10:15 am

Post by bsd3000 »

Also on 5.4, I have the same problem :-(
rma work fine for all test
but only with script test i have a problems :-(
may be a concurency problem?
which text are busy?

I can't give u an ssh account at this moment :-(

thnaks 4 help
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Theoretically such error may happen if several scripts use the same file as standard output. RMA creates temporary file for this purpose.
But I do not see how RMA may assign the same file for different scripts. Each test (script) is started in separate thread and RMA creates unique file name using pid and thread id.
Looks like we need to install FreeBSD 6 for testing.. Sorry, cannot do that right now, too busy with new release.

Regards
Alex
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Hi Alex,


I´m facing the same problem on Red Hat using client 1.22.

Any ideas?

Regards,


Jromariz.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I am trying to download FreeBSD 6 or 5.4 but ftp.freebsd.org is not accessible.
Can you access FreeBSD FTP server from your location (just for testing)
ftp://ftp.freebsd.org/pub/FreeBSD/relea ... MAGES/6.0/ ?

Regards
Alex
Yoorix
Posts: 177
Joined: Wed Dec 14, 2005 8:28 am

Post by Yoorix »

Hi Alex.

I've tried to access FreeBSD FTP and was successfully connected.
Following files are ready to download:
2005 Nov 03 14:25 File 6.0-RELEASE-i386-bootonly.iso (45,936,640 bytes)
2005 Nov 03 16:13 File 6.0-RELEASE-i386-disc1.iso (578,408,448 bytes)
2005 Nov 03 17:45 File 6.0-RELEASE-i386-disc2.iso (682,371,072 bytes)
2005 Nov 03 17:45 File CHECKSUM.MD5 (207 bytes)
2005 Nov 03 17:45 File CHECKSUM.SHA256 (312 bytes)

By default, most of the ftp clients use passive mode.
Could you try to set option to use active mode for your ftp client?
Probably it helps.

Regards,
Yoorix
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We spent 2 days trying to install FreeBSD 6.0 or FreeBSD 5.4 and cannot complete installation :oops:
Various problems and errors, the most frequent is "/mnt: write failed, filesystem is full".
On the same system FreeBSD 4.5 works fine (its installed on different hard drive). But hard drive is new empty drive, disk/surface tests do not show any error. We have tried different configurations: all filesystems on the same disk partition; tried to create separate partition for swap and /usr; tried to install FreeBSD on 1st and 2nd partition. Doesn't matter, still doesn't work.
Any recommendations?

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Finally we have installed FreeBSD 6.0. It was hard... we tried different distributives, different installation options, changed computers and hard drives, nothing helped (spent a week). Until we tried Maxtor hard drive, it works!! Looks like FreeBSD doesn't work with Western Digital Caviar (we tried 2 drives).

Will test RMA tomorrow...

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, we spent 2 weeks to reproduce the problem, about 1 hour to find the problem and 2 min to fix it.
Update (RMA 1.23 for FreeBSD 6.0) available for download at http://www.ks-soft.net/hostmon.eng/downpage.htm

Regards
Alex
r3boot
Posts: 7
Joined: Wed Jun 08, 2005 7:50 am
Contact:

Post by r3boot »

I would like to add that we're getting this error too. About 20~30 times a day. This happens on rhel3 and rhel4 x86 machines. I don't know what the actual bugfix was for FreeBSD, but possibly it also applies for Linux? I don't know. But a fix would be really nice.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Update available at
www.ks-soft.net/download/rma123_rhes3.tgz - RMA 1.23 for RedHat ES3
www.ks-soft.net/download/rma123_rhes4.tgz - RMA 1.23 for RedHat ES4

Regards
Alex
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Hi Alex,

Even using this version of RMA for RH3 still facing the problem some times during the day:


11/07/06 18:41:56 LINHAS NA TABELA BILLINGUCACCCHANGE_BAC Unknown RMA: 301 - Script execution error: exec error: Text file busy Shell Script


Regards,

Jromariz.
Post Reply