About Unix

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
fred
Posts: 1
Joined: Mon Apr 15, 2002 6:00 pm

Post by fred »

Hello,

when will we be able to do tests on unix plateforms ??
Does Alex think about this posibility?

Thanks

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

Post by KS-Soft »

Yes, I am thinking. I am thinking about remote agents (for different platforms) for sending information to central console (HostMonitor). Expected around version 3.60

Regards
Alex
y.beyet
Posts: 62
Joined: Tue Apr 16, 2002 6:00 pm
Location: France
Contact:

Post by y.beyet »

I use vbs script 5.6 for Unix supervision. I do a rsh, the result is passed to the ERRORLEVEL with the vbs.
With the rsh you can do what you want.
Works fine in 1.xx and 3.xx !!

for a cpu test in Hostmonitor : use external program test

command line : cscript //B "C:Program FilesHostMonitorscriptsvmstat.vbs" <machine> root

the vmstat.vbs contain for solaris 2.7 :
Set objArgs = WScript.Arguments
vServer = objArgs(0)
vUser = objArgs(1)

Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
vCmd = "rsh " & vServer & " -l " & vUser & " val=`vmstat 1 2|tail -1|awk '{print $22}'`;expr 100 - $val"

Set oExec = WshShell.Exec(vCmd)
wscript.quit (Cint(oExec.StdOut.Read(3)))

<font size=-1>[ This Message was edited by: y.beyet on 2002-04-17 03:07 ]</font>
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Cool
Locked