logo       

RE: DM Numeric custom script monitor: msg#00602

sysutils.tivoli.general

Subject: RE: DM Numeric custom script monitor

All response levels require successful code return (either from script or
command in probe argument). The numeric custom monitor compares numeric
output to your thresholds defined for each response level.

You may place a script in your probe argument entry, but you could simply
place a command string there as well with varying response levels (examples
below):

1. Return CLOSE_WAIT total.

netstat -a | grep CLOSE_WAIT | wc -l

2. Determine tecad_logfile process using highest % CPU. Return % CPU used
as integer.

/bin/ps -efo 'pid pcpu args' | /bin/grep [/]tecad_logfile | awk '{print $2}'
| awk -F. '{print $1}' | sort -nr | head -1

(an action can be added to stop/start process if over 5% CPU used to prevent
resource hogging (technical term :-) )


Hope these examples were helpful. I am sure others in the list will share
their knowledge on this issue.

Regards,

Jasper Silvis
Cendant Mortgage

-----Original Message-----
From: owner-tme10-XtjxT7Vmt5b1ENwx4SLHqw@xxxxxxxxxxxxxxxx
[mailto:owner-tme10-XtjxT7Vmt5b1ENwx4SLHqw@xxxxxxxxxxxxxxxx]On
Behalf Of Brian Kraftchick
Sent: Wednesday, April 28, 2004 5: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