centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

New plugin for Citrix Xen Mobile

Open joschi99 opened this issue 4 years ago • 6 comments

It should be nice to have support for Citrix XenMobile.

Attached you can find MIBS and snmpwalk for version 10.8: XenMobile.zip citrix-mobile.snmpwalk.txt

Please note that XenMobile offers only snmp v3

joschi99 avatar May 22 '20 06:05 joschi99

What do you want monitor ? When i look the private entreprise mib, i see: service connection status like:

.1.3.6.1.4.1.3845.5.1.1.8.1.0 = STRING: "gateway.push.apple.com"
.1.3.6.1.4.1.3845.5.1.1.8.2.0 = STRING: "Port 2195/TCP is open."
.1.3.6.1.4.1.3845.5.1.1.8.3.0 = STRING: "Server is reachable."
.1.3.6.1.4.1.3845.5.1.1.8.4.0 = STRING: "UP"
.1.3.6.1.4.1.3845.5.1.1.9.1.0 = STRING: "feedback.push.apple.com"
.1.3.6.1.4.1.3845.5.1.1.9.2.0 = STRING: "Port 2196/TCP is open."
.1.3.6.1.4.1.3845.5.1.1.9.3.0 = STRING: "Server is reachable."
.1.3.6.1.4.1.3845.5.1.1.9.4.0 = STRING: "UP"
...

Memory jvm usage (it seems it's a java process).

Nothing more in SNMP. Maybe with the Rest API, we can get more mobility informations: https://docs.citrix.com/en-us/xenmobile/server/downloads/public-rest-api-xenmobile-10-9.pdf

example: number of devices out of compliance...

garnier-quentin avatar Jun 05 '20 13:06 garnier-quentin

Hi @garnier-quentin, snmp is not offering more then what you have written above unfortunatly. It could be a good idea to use the Rest API which allows to have a lot more informations. How can I help you?

joschi99 avatar Jun 05 '20 13:06 joschi99

The hole OS monitoring is based on Linux standards, so no problems through SNMP

joschi99 avatar Jun 05 '20 13:06 joschi99

I need curl commands and results:

  • login connection ok
  • login connection error
  • listing devices (to get status compliance for example)

garnier-quentin avatar Jun 05 '20 14:06 garnier-quentin

Hi @garnier-quentin,

here you can see the requested curls and results. The output for listing devices is in the password protected zip archive.

Login

curl --location --request POST 'https://x.x.x.x:4443/xenmobile/api/v1/authentication/login' --header 'Content-Type: application/json' --data '{
"login": "Administrator",
"password": "****"
}' –insecure

Response

{"auth_token":"*******"}


ERROR Login Response
{"message":"Error occured during validating user credentials","status":1002}






Logout

curl --location --request POST 'https://x.x.x.x:4443/xenmobile/api/v1/authentication/logout' \
--header 'auth_token: *******' \
--header 'Content-Type: application/json' \
--data '{
"login": "administrator"
}' –insecure

Response

{"Status":"user administrator logged out successfully."}




Devices

curl --location --request POST 'https://x.x.x.x:4443/xenmobile/api/v1/device/filter' \
--header 'auth_token: *******' \
--header 'Content-Type: application/json' \
--data '{
"sortOrder": "ASC",
"sortColumn": "ID",
"search": "",
"enableCount": "false",
"filterIds": "[]"
}' –insecure

devicelist_without_filter.zip

joschi99 avatar Jun 12 '20 07:06 joschi99

I have looked the result and not so much datas. Maybe the number of jailBroken devices. I don't know.

garnier-quentin avatar Jun 15 '20 15:06 garnier-quentin

Please re-create this request on The Watch if it's still relevant. Thanks

fmattesct avatar Dec 28 '23 15:12 fmattesct