SupportTalk-Troubleshooting STAP and GIM
SupportTalk-Troubleshooting STAP and GIM
What do we install?
• Lightweight agent
Kernel, SHMEM or
• Runs as a service on the Exit Drivers
DB host.
Ports
Use native tools (nc, telnet, nslookup) to check name resolution and
connectivity on the specific ports.
Ping only proves connectivity via ICMP. Use telnet, nc or similar tools to check
TCP ports.
From CLI on the collector, “support show port open <ip> <port>” will test the
connection from Guardium to the DB host.
Check the GIM_URL parameter!
Certificates
The GIM server waits for the client to poll for new updates.
This is probably a communication issue, or the client is down.
Get STAP diag or check GIM.log on the host.
The client data you see in the GIM server’s GUI is reading a local cache, it might be
outdated.
The [Reset Connection] button in the “Setup by Client” view flushes the cache for
selected hosts. (The button is disabled until you select 1 or more clients.)
If the connection is good and the GIM agent is running, it will connect and send
updated information to the GIM Server.
If the host disappears from “Setup by Client” and does not return in a few seconds,
there is a connection problem or the GIM client is not running.
The “—” “--dir” and “—tapip” are required. The -q is for silent install, we use “which perl” if --perl is not specified.
If you download from Fix Central and unpack the file on your Windows workstation, it will change
the MD5sum. Download the package from Fix Central again, copy it to the box where you will
install GIM and unzip it there.
When you unpack the GIM bundle, you will see these files types:
guard-bundle-GIM-11.3.0.0_r111685_v11_3_1-rhel-8-linux-x86_64.gim.sh
The *.gim.sh script used for shell installation and initial install.
guard-bundle-GIM-11.3.0.0_r111685_v11_3_1-rhel-8-linux-x86_64.gim
The *.gim file is a GIM bundle used to upgrade GIM via the GIM Server.
Troubleshoot with sh -x
Try …
This will pipe the output of the GIM install script to a file. Errors here are very helpful in troubleshooting.
Check central_logger.log
Primary Guardium log file in UNIX: [Thu Apr 28 14:43:13 2022] *** IN GIM RC *** :
(/opt/IBM/guardium/GIM/modules/GIM/11.3.0.0_r111685_1-
<install path>/modules/central_logger.log 1651171392/rc install by_gim) at Thu Apr 28 14:43:13 2022
• Installer ran but encountered errors after [Thu Apr 28 14:43:13 2022] GIM client started as a service
or near the end of install
[Thu Apr 28 14:43:13 2022] GIM finished execution successfully
• Any issues with installing GIM bundles
Root# ls -l
drwxr-x--- 3 root root 58 May 8 13:51 BUNDLE-GIM
-rw-r--r-- 1 root root 9793 May 8 13:52 central_logger.log
drwxr-x--- 3 root root 58 May 8 13:51 GIM
drwxr-x--- 3 root root 58 May 8 13:51 INIT
lrwxrwxrwx 1 root root 13 May 8 13:51 perl -> /usr/bin/perl
drwxr-x--- 3 root root 58 May 8 13:51 SUPERVISOR
drwxr-x--- 3 root root 84 May 8 13:51 UTILS
Run …/modules/GIM/current/uninstall.pl
You can also uninstall GIM from the GIM Server from the Setup by Client view.
When you uninstall GIM, it will uninstall STAP and all Guardium agents.
If KTAP is loaded, uninstall will not un-load it. You must reboot before installing STAP again.
Note:
Uninstall Guardium agents before you decommission a DB Server to avoid inactive or orphan entries on the
Guardium Appliance.
If you have inactive agents which were decommissioned, use the [Reset Connection] button in the Setup by
Client view to remove a GIM client or the [X] button in the STAP Control view to remove a STAP.
Run locally or on the STAP’s collector from the STAP Control view.
If logs are not delivered to the collector, check the host, it probably still created the diag zip file.
Pulls together critical logs and gives a picture of the host, STAP status and key configuration files.
UNIX: Windows:
• central_logger.log (install and upgrade) • Stap.ctl (STAP errors. Check here first!)
Use telnet, nc, nmap, netstat and similar tools on the DB host.
You can adjust the restart thresholds in resmon.ini in the STAP install directory.
Sometimes the defaults are too low for powerful production systems.
Symptoms:
You update an Inspection Engine. A few seconds later the changes disappear.
There are many recent copies of guard_tap.ini in the STAP install directory. (*.err, *.bak)
STAP will not start, with errors like this in the STAP.log or central_logger.log:
[Thu Aug 12 10:43:39 2021] -I- Sending STATUS msg to server (-1,STAP is
not running ! Failure reason :
fgets: Error 0
fgets: Error 0
/opt/IBM/guardium/modules/STAP/10.6.0.4_r108055_1-
1593585312/guard_tap.ini line 0: Inifile read error, SPECIAL_OPS=>)
Solution:
Rename guard_tap.ini and replace it with the last good INI file.
Try removing all Inspection Engines from the INI file. Save and restart STAP.
Any kind of corruption will cause STAP to abort and try to rollback the INI file. Usual suspects:
– db_install_dir=<wrong value, not found>
– db_exec=<wrong value, not found>
– wait_for_db_exec=0
Use EXIT libraries when available. (Currently not available for Oracle.)
Error in central_logger.log:
Central_logger.log:
Searching for module files in /opt/IBM/guardium/GIM/modules/KTAP/11.3.0.0_r111685_1-
1651175743/modules-*.tgz
Using modules file /opt/IBM/guardium/GIM/modules/KTAP/11.3.0.0_r111685_1-
1651175743/modules-11.3.0.0_r111685_v11_3_1.tgz
guard_ktap_loader:
b305d5e334aaf51a3133524e387a2329 /opt/IBM/guardium/GIM/modules/KTAP/11.3.0.0_r111685_1
-1651175743/modules-11.3.0.0_r111685_v11_3_1.tgz
Module ktap-11.3.0.0_r111685_v11_3_1-rh7u4x64m-3.10.0-1160.31.1.el7.x86_64-x86_64-
SMP.ko selected for kernel 3.10.0-1160.31.1.el7.x86_64.
…
guard_ktap_loader: Retpoline kernel and module - OK
guard_ktap_loader: Install OK
guard_ktap_loader: Load OK
Central_logger.log:
Searching for module files in /usr/local/guardium/modules/KTAP/11.1.0.11_r111160_1-
1650958591/modules-*.tgz
Using modules file /usr/local/guardium/modules/KTAP/11.1.0.11_r111160_1-
1650958591/modules-11.1.0.11_r111160_v11_1_1.tgz
…
File /lib/modules/4.18.0-305.40.2.el8_4.x86_64/build/.config not found. Local build of
KTAP will not be attempted. Please install kernel development packages for 4.18.0-
305.40.2.el8_4.x86_64 if you wish to build KTAP locally.
…best fit module for 4.18.0-305.40.2.el8_4.x86_64 is ktap-11.1.0.11_r111160_v11_1_1-
oe8u2x64m-4.18.0-305.10.2.el8_4.x86_64-x86_64-SMP.ko
…
guard_ktap_loader: Install OK
guard_ktap_loader: Load OK
Central_logger.log:
Thu Apr 28 17:11:17 2022] Searching for module files in
/opt/IBM/guardium/GIM/modules/KTAP/11.3.0.0_r111685_1-1651175743/modules-*.tgz
guard_ktap_loader: Using modules file
/opt/IBM/guardium/GIM/modules/KTAP/11.3.0.0_r111685_1-1651175743/modules-
11.3.0.0_r111685_v11_3_1.tgz
guard_ktap_loader:
b305d5e334aaf51a3133524e387a2329 /opt/IBM/guardium/GIM/modules/KTAP/11.3.0.0_r111685_1
-1651175743/modules-11.3.0.0_r111685_v11_3_1.tgz
guard_ktap_loader: Attempting to build KTAP module using dir /lib/modules/3.10.0-
1160.62.1.el7.x86_64/build
guard_ktap_loader: Custom module ktap-111685-rhel-7-linux-x86_64-xCUSTOMxlambadas1-
3.10.0-1160.62.1.el7.x86_64-x86_64-SMP.ko built for kernel 3.10.0-1160.62.1.el7.x86_64.
guard_ktap_loader: Install OK
guard_ktap_loader: Load OK
[Thu Apr 28 17:11:17 2022] -I- KTAP finished execution successfully
IBM Security / © IBM Corporation 2022 34
No KTAP to load
Central_logger.log:
[Thu Apr 22 12:47:46 2021] -I- Failure point : update (Can't update KTAP-
11.0.0.0_r107032_815-1608026660 :
Searching for modules in /u01/app/DID/modules/KTAP/11.0.0.0_r107032_815-
1608026660/modules-*.tgz
guard_ktap_loader: File /lib/modules/3.10.0-1160.11.1.el7.x86_64/build/.config not
found. Local build of KTAP will not
guard_ktap_loader: be attempted. Please install kernel development packages for 3.10.0-
1160.11.1.el7.x86_64 if you wish
guard_ktap_loader: to build KTAP locally.
guard_ktap_loader: ===================================================================
guard_ktap_loader: We cannot provide a module for the running kernel and no close
guard_ktap_loader: fitting combination was found. Please contact IBM and provide the
guard_ktap_loader: following information:
Technote ALLOW_MODULE_COMBOS
uname –a:
Doc: How to run STAP diag for all platforms and versions
Follow us: © Copyright IBM Corporation 2022. All rights reserved. The information contained in
these materials is provided for informational purposes only, and is provided AS IS
without warranty of any kind, express or implied. Any statement of direction represents
IBM’s current intent, is subject to change or withdrawal, and represent only goals and
objectives. IBM, the IBM logo, and ibm.com are trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide. Other product and service
securitylearningacademy.com names might be trademarks of IBM or other companies. A current list of IBM
trademarks is available on the Web at “Copyright and trademark information” at
http://www.ibm.com/legal/copytrade.shtml.
ibm.biz/vip-rewards All names and references for organizations and other business institutions used in this
deliverable’s scenarios are fictional. Any match with real organizations or institutions is
ibm.biz/securityskillslearning coincidental. All names and associated information for people in this deliverable’s
scenarios are fictional. Any match with a real person is coincidental.
securityintelligence.com Statement of Good Security Practices: IT system security involves protecting systems
and information through prevention, detection and response to improper access from
within and outside your enterprise. Improper access can result in information being
xforce.ibmcloud.com altered, destroyed, misappropriated or misused or can result in damage to or misuse of
your systems, including for use in attacks on others. No IT system or product should
be considered completely secure and no single product, service or security measure
ibm.com/security/community can be completely effective in preventing improper use or access. IBM systems,
products and services are designed to be part of a lawful, comprehensive security
approach, which will necessarily involve additional operational procedures, and may
require other systems, products or services to be most effective. IBM does not warrant
that any systems, products or services are immune from, or will make your enterprise
immune from, the malicious or illegal conduct of any party.