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: 846
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: 846
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: 267

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 100

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 37

Rainer Versteeg: 32

Thomas Reuther: 26

Member Stats:

Guest Posters: 0

Members: 1058

Moderators: 14

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 981

Posts: 4145

Newest Members:

mats989, Sebastien Petitrenaud, sting2005, Ron Hoppe, Seb, p.devito, g.ilengo, MohamedLazrek, brittr83165991, martintinsley9

Moderators: Jouni Aro: 846, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 523, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 20, Markus Johansson: 18, Matti Siponen: 31, Lusetti: 0

Administrators: admin: 0