Configuring ping data
You can configure chassis ping polls to retrieve the timestamp of the first ping failure, when a Chassis Ping Fail alert is generated, after the configured number of retries are completed.
To enable the retrieval of timestamp data, complete the following steps:
- Back up and edit the $NCHOME/etc/precision/NcPollerSchema.cfg file.
-
To enable this feature, change
0to1in the following section:update config.properties set AddFirstPingFailTimeStampInPingAlerts=1;The default setting of
0disables the feature, and1enables it. -
Run the following command to add the
FirstPingFailTimeStampfield to the ObjectServeralerts.statustable.$NCHOME/omnibus/bin/nco_sql -server ObjectServerName -user root -password PASSWORD -i /opt/IBM/tivoli/netcool/precision/scripts/add_first_pingfail_timestamp_column.sqlWhere:
ObjectServerNameis the name of the ObjectServer, for example,NCO_AGG_P.PASSWORDis the password for the root user.
-
Check that the new field
FirstPingFailTimeStampexists in the ObjectServeralerts.statustable.-
Run the following command:
$NCHOME/omnibus/bin/nco_sql -server ObjectServerName -user root -password PASSWORDWhere:ObjectServerNameis the name of the ObjectServer, for example,NCO_AGG_P.PASSWORDis the password for the root user.
The command opens an SQL prompt. -
At the SQL prompt, run the following command and check that the new
field is present in the output list of fields:
describe alerts.status
-
Run the following command:
-
Back up and edit the following file:
$NCHOME/probes/linux2x86/nco_p_ncpmonitor.rules. Locate
the following section:
if ( exists($ExtraInfo_EVENTMAP) ) { @NmosEventMap = $ExtraInfo_EVENTMAP }Add the following lines after the preceding section:
if ( exists($ExtraInfo_FIRSTPINGFAILTIMESTAMP) ) { if (match($EventName, "NmosPingFail")) { @FirstPingFailTimeStamp = $ExtraInfo_FIRSTPINGFAILTIMESTAMP } }
The timestamp of the first ping failure is added to the Chassis Ping Fail
alert.