avatar  

Log out

Recently viewed tickets

SiteManager Internal Collector

How to get internal data from the SiteManager into the cloud. 


Data that you can collect from SiteManager itself is:

  • "SystemTemperature" (in centigrades Celcius)
  • "CPULoad" (in percent)
  • "FreeMem" (in kB), "UTCRTC" UTC Real TIme Clock broken into 8 separate values
  • "DigitalInput" (as 0/1)
  • "IngressRate" (in bytes/s)
  • "EgressRate" (in bytes/s)
  • "DBCachesize" (in bytes)
  • "DBSize" (in bytes)
  • "GSMRssi" (in dBm)
  • "GSMBer" (in percent)
  • "GSMOperator" (text string)
  • "GSMTechnology" (text string: "4G", "3G", "GPRS" etc.).



The InternalData object contains the following elements:

  • InternalFunction (string-enum, mandatory). This is the internal function to be performed. The currently possible values are: "SystemTemperature" (in centigrades Celcius), "CPULoad" (in percent), "FreeMem" (in kB), "UTCRTC" UTC Real TIme Clock broken into 8 separate values, "DigitalInput" (as 0/1), "IngressRate" (in bytes/s), "EgressRate" (in bytes/s), "DBCachesize" (in bytes), "DBSize" (in bytes), "GSMRssi" (in dBm), "GSMBer" (in percent), "GSMOperator" (text string) and "GSMTechnology" (text string: "4G", "3G", "GPRS" etc.).
  • InternalIndex (integer >= 0, maybe-optional). If InternalFunction is "DigitalInput" this is the mandatory index of the Digital I/O input port to collect value from. If InternalFunction is "UTCRTC" this is the mandatory index of the time: 0 - second (0-59), 1 - minute (0-59), 2 - hour (0-23), 3 - day of the month (1-31), 4 - month (0-11), 5 - Year (-1900), 6 - day of the week (0-6, Sunday = 0), 7 - day in the year (0-365, Jan 1st = 0).
  • InternalFieldname (string, optional). Used when the InternalFunction is "IngressRate" as a nameref for the sample to show the ingress rate for or when the InternalFunction is "EgressRate" as the name of a Dataserver to show the egress rate for. If not specified, the rate is the total ingress or egress rate.
  • InternalSampleInterval (integer >= 0, mandatory). The number of seconds between each sample of this Internal object. If the interval is 0, only eventdriven polling is used.

Example:

{
"CollectorDescription": "SDCM Internal Values Server",
"CollectorName": "demointernal",
"Protocol": "Internal",
"SamplePoints": [
{
"SampleDataType": "double",
"SampleDescription": "CPU load",
"SampleLimitAlarm": false,
"SampleLimitDiscard": false,
"SampleLowerLimit": -1000,
"SampleName": "CPU",
"SampleUpperLimit": 1000,
"SamplesSaved": 3000000,
"InternalData": {
"InternalFunction": "CPULoad",
"InternalSampleInterval": 1
}
},
{
"SampleDataType": "double",
"SampleDescription": "FreeMem",
"SampleLimitAlarm": false,
"SampleLimitDiscard": false,
"SampleLowerLimit": -1000,
"SampleName": "FreeMemory",
"SampleUpperLimit": 1000,
"SamplesSaved": 3000000,
"InternalData": {
"InternalFunction": "FreeMem",
"InternalSampleInterval": 1
}
},
{
"SampleDataType": "double",
"SampleDescription": "SystemTemperature",
"SampleLimitAlarm": false,
"SampleLimitDiscard": false,
"SampleLowerLimit": -1000,
"SampleName": "SystemTemperature",
"SampleUpperLimit": 1000,
"SamplesSaved": 3000000,
"InternalData": {
"InternalFunction": "SystemTemperature",
"InternalSampleInterval": 1
}
}
]
}
Creation date: 11/12/2019 14:10 (skr@secomea.com)      Updated: 18/03/2020 08:35 (tvo@secomea.com)