logo       

RE: DM Numeric custom script monitor: msg#00589

sysutils.tivoli.general

Subject: RE: DM Numeric custom script monitor

Brian,

I think the idea is to print a numeric value to stdout, but exit with a
zero.

As in:
---------------------------------
#!/bin/sh
# Count the number of processes :
PS_COUNT=`ps -ef|wc -l`
echo $PS_COUNT

exit 0
---------------------------------

hth,

James




> -----Original Message-----
> From: Brian Kraftchick [SMTP:Brian.Kraftchick-MRmd0vlZXUo@xxxxxxxxxxxxxxxx]
> Sent: Wednesday, April 28, 2004 4:08 PM
> To: Tme10 (E-mail)
> Subject: [tme10] DM Numeric custom script monitor
>
> FW 3.7.1 on Win2K
>
> I have a question that I'm assuming is only a question to me because I
> don't quite understand something, so hopefully any answers will clear this
> up. What is the purpose of a numeric custom script monitor's response
> level parameters being selectable (meaning you can enter any numbered
> value as the threshold), if any script that is run and returns anything
> other than a 0 produces an E.Exec and ultimately a monitor failure. In
> other words....when setting up the monitor and editing the response
> levels, why even be allowed to key in different numbers when it appears
> that numeric custom script monitors only work completely when the script
> exits with a 0...exiting with anything else causes the E.Exec response.
>
> Thanks in advance for any insight !
>
> Brian Kraftchick
> Network Administrator
> Old Dominion Freight Line
> Ph: (336) 822-5938
> Fax: (336) 822-5149
> E-mail: brian.kraftchick-MRmd0vlZXUo@xxxxxxxxxxxxxxxx
> <mailto:brian.kraftchick-MRmd0vlZXUo@xxxxxxxxxxxxxxxx>
> Web Site: www.odfl.com <http://www.odfl.com/>
>
>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise