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: 1009
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: 1009
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: 518

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick, ellenmoss

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1