Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Diagnostics
May 24, 2013
12:44, EEST
Avatar
TimK
Member
Members
Forum Posts: 41
Member Since:
June 27, 2012
sp_UserOfflineSmall Offline

It looks like a lot of the data under Server doesn’t get filled in by the toolkit. I see data for the children of ServerStatus, but that’s pretty much the only place there are values. Some of the stats are clearly server-dependent, so I need to fill those in. Some seem like they should come from the toolkit, like CurrentSessionCount or CurrentSubscriptionCount. What do I need to do to put appropriate data into that tree?

May 24, 2013
12:52, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

You need to write True to ServerDiagnostics/EnabledFlag.

The spec says that it should be False by default and a Client need to set it, before the diagnostics are calculated.

May 30, 2013
12:52, EEST
Avatar
TimK
Member
Members
Forum Posts: 41
Member Since:
June 27, 2012
sp_UserOfflineSmall Offline

Okay, that was the problem.

A couple of questions:

For SessionSecurityDiagnostics I’m seeing a value of BadUserAccessDenied. What do I need to do to see this data?

SamplingIntervalDiagnosticsArray doesn’t seem to have anything in it. I need to populate this myself, right? Do I just get the nodes from the node manager, and set the value regularly, or is there some better way to do this?

May 30, 2013
14:31, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

TimK said

Okay, that was the problem.

A couple of questions:

For SessionSecurityDiagnostics I’m seeing a value of BadUserAccessDenied. What do I need to do to see this data?

You need to define a UaServerListener for the UaServer and make onAllowReadSecurityDiagnostics() to return true. You can check against the UserIdentity of the provided serviceContext.session, whether you want to enable that for certain user’s only.

SamplingIntervalDiagnosticsArray doesn’t seem to have anything in it. I need to populate this myself, right? Do I just get the nodes from the node manager, and set the value regularly, or is there some better way to do this?

Yes, you can update the value with

server.getNodeManagerRoot().getServerData().getServerDiagnostics().
getSamplingIntervalDiagnostics().updateValue(newValue);

where newValue is of type SamplingIntervalDiagnosticsDataType[].

Note that it should only be filled, if your server uses a fixed set of sampling intervals.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1