Situation
An ITM6 Unix (UX) or Linux (LZ) agent detects that its remote filesystems are unavailable, a “stale” connection.
Automate an action to remount it if possible
Methodology
Two (2) ITM situations are created where
- detects the mount point has become stale
- the other is triggered by the “correlated situation” condition of #1 being tr
Situation #1 : Detect “Stale” remote FS
Simple enough – if “Space Available” fails collection, there is an issue

Situation #2 : Remount Situation
Formula Conditions
Use the “Situation Comparison” for a condition against the situation above
Take Action
Note: the lines are strung together on one line in the Take Action field, to make it more legible here, newlines are after the semicolons
f=”&{Linux_Disk.Mount_Point}” ;
u=`umount -f $f 2>&1 && echo $f`;
m=`mount $f 2>&1 && echo $f`;
echo -e “umount: $u\nmount:$m” | mail -s “ITM ACTION: Remount $f” junkmail@JdsMedia.net

Tags: Action, action script, amp, filesystems, itm, junkmail, Linux, linux disk, mail, remount, semicolons, situation, umount
Posted in ITM6.x | Comments (0)
Obtaining Product Codes for IBM Tivoli Monitoring (ITM v6)
Local method:
Parse the proddsc.tbl file on a UNIX/Linux system to get the list by doing this:
UNIX
awk -F\| '/^[^*#]/ {print $1,$2}' ${CANDLEHOME}/registry/proddsc.tbl | sort | uniq
Or, IBM’s site http://www-01.ibm.com/support/docview.wss?rs=2366&context=SSZ8F3&dc=DB520&dc=DB560&uid=swg21265222&loc=en_US&cs=UTF-8&lang=en&rss=ct2366tivoli
Tags: Codes, ibm, Linux, linux system, Obtaining, proddsc, Product, tbl, Tivoli, uniq, unix, unix awk, unix linux, utf 8, wss
Posted in ITM6.x | Comments (0)
Synopsis
A nice feature which isn’t publicized too much in ITM for Linux and Unix agents is the ping capability.
They’re refrerred to as “Host Availability” for Linux and “Ping Attributes” for Unix
Both will accept an input file containing a list of servers to “ping”, and both will return status and response time.
Enabling the ping hosts file
Linux
$CANDLEHOME/config/lz.ini: KLZ_PINGHOSTLIST=<path_to_list>
# e.g. KLZ_PINGHOSTLIST=$CANDLEHOME/config/my_hostlist
# Add this to the lz.config if you want to avoid having to reconfig the agent
Unix
$CANDLEHOME/config/ux.ini: KUX_PINGHOSTLIST=<path_to_list>
# e.g. KUX_PINGHOSTLIST=$CANDLEHOME/config/my_hostlist
# Add this to the lz.config if you want to avoid having to reconfig the agent
Extra feature difference
One minor, but important, difference is that the Linux component will only ping servers in the list, while the Unix component has the additional feature using a situation to ping any target host from any managed system.
This makes every managed system (agent) a ping source to target critical servers.
Attribute Group: UNIX Ping
Situation Definitions: System_Name == $NODE$, Target_Host == webserver1
Tags: CANDLEHOME, config, critical servers, input file, kux, Linux, list, Ping, ping source, target host, unix, unix ping
Posted in ITM6.x | Comments (0)