NSClient++ Help (#1) - Multiline output for passive checks (#362) - Message List
Hello. Today I submitted a bug: #290: Multiline output not supported in NSCA monitoring.
I went and found the change log for the bug fix from a couple years ago where you fixed multiline output for NRPE checks. I think I've identified the code that would fix it for NSCA. It's how it tokenizes the output:
strEx::token t = strEx::getToken(msg, '|'); msg = t.first; perf = t.second;
The place it looks like this change would need to be made is in NSCModuleHelper::InjectCommand? (which I couldn't find in the source in the little browsing I was doing).
Place where this gets called: modules/NSCAAgent/NSCAThread.cpp line 61.
I would be interested in helping modify code, or make my own change, but I can't find where to download the latest source.
SPECIAL CASE TO BE AWARE OF: According to the developer guidelines for multi-line output, the format of the lines can be:
line 1 status data|perfdata=part1 more status data line 2 ... more status data line N|MOREperfdata=part2 andmoreperfdata=part3 andmoreandmore...
Let me know if I can help with this fix. We'd like to use it somewhat soon, and like I said, I'd be happy to modify our own source if it wouldn't be fixed in a release soon.
Thanks! -B. Garner bgarner@…
-
Message #1123
My formatting was wrong on a couple sections. Should have been:
strEx::token t = strEx::getToken(msg, '|');
msg = t.first;
perf = t.second;
SPECIAL CASE TO BE AWARE OF: According to the developer guidelines for multi-line output, the format of the lines can be:
line 1 status data|perfdata=part1
more status data line 2
...
more status data line N|MOREperfdata=part2
andmoreperfdata=part3
andmoreandmore...
bgarner03/12/09 23:00:40 (4 years ago)








