The Sybase agent shows HART cursors failing and a cs_ctx_alloc() failed error is seen in the instance logs.
NoelLewis 060001F069 Visits (515)
The Sybase agent instance will not report into the APM GUI if you see a cs_ctx_alloc() failure in the agent instance logs. It will look something like this:
>ESQ0430E (014602) cs_ctx_alloc() failed
YEM0100E (014604) koy_init: cs_ctx_alloc() failed
YCD0105E (014604) Unable to set context for SYBASE at collector, RC=0
The most common reasons for a cs_ctx_alloc failure include:
To resolve this, the following must be done:
1. The SYBASE environment variable must point to the directory where the locales folder is located. So, for example, if the the SYBASE var is set to "/SYBASE/SMP", then verify that the locale dir is also present at this location.
2. Check the current value of the $LANG variable, it should match with any value in locales/locales.dat from Sybase home directory. You can check as follows:
[test@sybase]$ echo $LANG
3. Next get the values in the locales.dat file ss follows:
[test@sybase]$ grep "en_US.UTF-8" loca
locale = en_US.UTF-8, us_english, utf8
If needed, modify the value of the $LANG environment variables to set it to the right locale, as follows:
Restart your Sybase agent instance again, see if it reports in and view the instance logs again to see if the alloc failure no longer exists.
ITCAM / APM / ICAM L2 Support team
Subscribe and follow us for all the latest information directly on your social feeds: