I am trying to embed a sh script into a command-line probe. I don't have access 
to the Intermapper server and need to rely on someone else's availability load 
script updates.

This is a shell script. 

An older version of the script was saved once. The embedded versions are 
ignored. Renaming the embedded script ends up with the renamed script not being 
found.
I have read the DevGuide.
Probe is below. Any help to get probe to use embedded script?

 <!-- 
  Simple Command Line Probe
  Copyright (c) 2007 Dartware, LLC. All rights reserved. 
  Modified for websphere Oct. 27, 2010
--> 

<header> 
  type = "cmd-line" 
  package = "com.dartware" 
  probe_name = "cmd.websphereProcess" 
  human_name = "WebShere Command Line Probe v2" 
  version = "1.0" 
  address_type = "IP" 
</header> 

<description> 
This probe shows status for webshere servers running the script Websphere.sh 
Mydevice.
Mydevice name is read from parameter list. Typically the name of the device 
being probed.
The second parameter is the value returned if process is down. Default is null. 
</description> 

<parameters>
        "Mydevice" = ""
        "webshere server return for failure"    =       ""
</parameters> 

<snmp-device-thresholds>
        alarm:          $RESULT = ${webshere server return for failure}         
""
</snmp-device-thresholds>


<command-line> 
  path = "" 
  cmd = "Websphere.sh $Mydevice"
</command-line> 

<command-exit> 
        down: ${EXIT_CODE} = 2 
   alarm: ${EXIT_CODE} = 1 
    okay: ${EXIT_CODE} = 0 
</command-exit> 


<command-display>
   \B5\Simple Probe Information\0P\

        \4\       Output from $Mydevice is:\0\ $RESULT \P0M\
</command-display>

<tool:Websphere.sh>
        #!/bin/ksh 
        MYNAME=$1
        PIDFILE=/apps/logs/DDC-$MYNAME-01/DDC-$MYNAME-01.pid
        id=`cat $PIDFILE`
        INSTANCE=`echo $PIDFILE| awk -F"/" '{print $10}'`
        RESULT=`ps -ef |grep $id |grep $INSTANCE| grep -v grep`
</tool:Websphere.sh>

--
Paul
PH: (402) 443-5174
cell: (402) 219-3783



On Oct 19, 2010, at 2:57 PM, Janice Losgar wrote:

> On 10/19/2010 3:44 PM, Paul M. Hill wrote:
>> Does the script doing the work get installed on the intermapper server or on 
>> the server being probed?
> Paul,
> 
> The script is installed on the InterMapper server, in the InterMapper 
> Settings/Tools folder.
> 
> Regards,
> 
> Janice Losgar
> Dartware, LLC
> ____________________________________________________________________
> List archives: 
> http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
> To unsubscribe: send email to: [email protected]
> 
> 

____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [email protected]

Reply via email to