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

RMA for QNX

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



Joined: 06 Jul 2005
Posts: 47
Location: Russia

PostPosted: Fri Dec 22, 2006 5:51 pm    Post subject: RMA for QNX Reply with quote

Whether there is agent for QNX6?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Fri Dec 22, 2006 9:33 pm    Post subject: Reply with quote

If you can provide telnet access to your QNX system with GCC compiler installed, we will try to compile agent for you.
We plan to install QNX on our systems but we a little busy these days...

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



Joined: 06 Jul 2005
Posts: 47
Location: Russia

PostPosted: Sat Dec 23, 2006 7:46 am    Post subject: Reply with quote

Ours QNX6 systems are not connected to the Internet.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Fri Jan 26, 2007 3:22 pm    Post subject: Reply with quote

RMA for QNX (i386) Beta available at http://www.ks-soft.net/hostmon.eng/downpage.htm#unix

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



Joined: 06 Jul 2005
Posts: 47
Location: Russia

PostPosted: Mon Feb 05, 2007 12:01 am    Post subject: Reply with quote

Thank you.
I have just installed the QNX agent . There are some errorrs.

1. CPUUsageScript does not support QNX (cpu.sh)
2. CountFiles test does not consider the files which are not containing a "dot"
3. Ping test is not realized
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Mon Feb 05, 2007 12:46 am    Post subject: Reply with quote

Quote:
1. CPUUsageScript does not support QNX (cpu.sh)

That's because we don't know how to check CPU load on QNX
Do you know how? Please tell us.

Quote:
2. CountFiles test does not consider the files which are not containing a "dot"

What file name mask do you use? "*.*"? If you want to calculate all files, use "*", just like on any other UNIX-like system.

Quote:
3. Ping test is not realized

RMA for Linux, BSD, AIX, Solaris does not provide such test either because its easy to implement using Shell Script. Actually HostMonitor provides Ping script for UNIX since version 4.30

So, everything works fine?

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



Joined: 06 Jul 2005
Posts: 47
Location: Russia

PostPosted: Tue Feb 06, 2007 5:13 am    Post subject: Reply with quote

KS-Soft wrote:
That's because we don't know how to check CPU load on QNX
Do you know how? Please tell us.

You can try to use wrapper for "hogs -%1".

KS-Soft wrote:
What file name mask do you use? "*.*"? If you want to calculate all files, use "*", just like on any other UNIX-like system.

Sorry, my fault.

Quote:
RMA for Linux, BSD, AIX, Solaris does not provide such test either because its easy to implement using Shell Script. Actually HostMonitor provides Ping script for UNIX since version 4.30

What is the name or contents of this script?
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Feb 06, 2007 8:35 am    Post subject: Reply with quote

Igorek wrote:
What is the name or contents of this script?

Here is the one:
Start cmd: %Script% %Params%
Script:
Code:
#!/bin/sh

ping -c $2 -w $3 $1 1> /dev/null 2> /dev/null
if [ $? -eq 0 ]
then
  echo "ScriptRes:Host is alive:"
else
  echo "ScriptRes:No answer:"
fi


Script requires 3 parameters: <host> <retries> <timeout

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Feb 06, 2007 12:35 pm    Post subject: Reply with quote

Igorek wrote:
You can try to use wrapper for "hogs -%1".


We have tried hogs utility. However, it works continually and there are no any parameters to make it perform only one iteration. So, it seems problematic to write script to calculate hogs's output. Probably, you have any other ideas?

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Igorek



Joined: 06 Jul 2005
Posts: 47
Location: Russia

PostPosted: Mon Feb 12, 2007 5:41 am    Post subject: Reply with quote

You can try to use this script:
Code:
#!/bin/sh

hogs | while read line
do

if [ -z "$line" ]
then
  break
fi

pid=`echo $line | awk '{print $1}'`

if [ "$pid" == "PID" ] || [ "$pid" == "1" ]
then
  continue
fi

echo $line | awk '{print $4}' | sed 's/\%//'

done | awk 'BEGIN {load=0} {load+=$1} END {print load}'

exit 0
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Feb 13, 2007 6:37 am    Post subject: Reply with quote

Thank you! It works!
To make it work with HostMonitor, you may copy foregoing script into qnx_cpu.sh file and place it into rma's folder. Also you should add just one line into cpu.sh script: QNX) ./qnx_cpu.sh;;

Code:
#!/bin/sh
# --------------------------------------
# this gives CPU load for last 1 sec

OS=`uname`
case $OS in
  AIX) vmstat 1 2 | tail -1 | awk '{print $(NF-5)+$(NF-4)}';;
  Linux)   vmstat -n 1 2 | tail -1 | awk '{print $(NF-3)+$(NF-2)}';;
  QNX) ./qnx_cpu.sh;;
  FreeBSD) vmstat -c 2 -w 1 | tail -1 | awk '{print 100-$NF}';;
  NetBSD)  vmstat -c 2 -w 1 | tail -1 | awk '{print 100-$NF}';;
  OpenBSD) vmstat -c 2 -w 1 | tail -1 | awk '{print 100-$NF}';;
  SunOS) vmstat 1 2 | tail -1 | awk '{print 100-$NF}';;
  HP-UX) vmstat 1 2 | tail -1 | awk '{print 100-$NF}';;
  *) echo 'unsupported OS';;
esac

# --------------------------------------

Thank you very much for your help.

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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