Ntf server truncates additionalText to 1024 while logging notification if additionalText is greater than 1024.
Steps to reproduce:
1) In imm.xml increase value of attribute logMaxLogrecsize in calss SA_CONFIG to 1500. Also
increase saLogStreamFixedLogRecordSize for >safLgStrCfg=saLogAlarm,safApp=safLogService to more than 1024.
2) Subscribe for notification using ntfsubscribe.
3) Run below command to send a notification with additionalText greater than 1024.
ntfsend -a "for i in {1..1300}; do a=$a"1"; done;echo $a
"
Logged notification in //var/log/opensaf/saflog/saLogAlarm_20160108_112757.log file will have additionalText with length1024 .
Reason is NTF server, while saflogging, truncates additionalText to 1024 if it is greater than 1024. There is not such restrictions for delievering it to any subscriber.
Diff:
changeset: 7229:3dc71bb8efd4
tag: tip
parent: 7226:a74f874537d2
user: praveen.malviya@oracle.com
date: Thu Jan 14 12:15:01 2016 +0530
summary: ntfs: increase limit of additionalText while logging notification[#1660]
changeset: 7228:2fffd1c4dde0
branch: opensaf-4.7.x
parent: 7225:13c7304bd3ee
user: praveen.malviya@oracle.com
date: Thu Jan 14 12:14:52 2016 +0530
summary: ntfs: increase limit of additionalText while logging notification[#1660]
changeset: 7227:ba18ebb1e2eb
branch: opensaf-4.6.x
parent: 7224:088f487565d5
user: praveen.malviya@oracle.com
date: Thu Jan 14 12:13:26 2016 +0530
summary: ntfs: increase limit of additionalText while logging notification[#1660]
https://sourceforge.net/p/opensaf/mailman/message/34749676/
Related
Tickets:
#1660