DX Infrastructure Manager

Expand all | Collapse all

Restmon Schema - Using localhost rather than the hostname thats input

  • 1.  Restmon Schema - Using localhost rather than the hostname thats input

    Posted 22 days ago
    Could someone please take a look at this schema and maybe help me with a question:


    {
    	"dp_new_schema2": {
    		"calculated_methods": [
    			{
    				
    			}
    		],
    		"urls": [
    			{
    				"xml_ns": "",
    				"src": "",
    				"var": "",
    				"id": "CPUUsage",
    				"url": "/mgmt/status/default/CPUUsage"
    			},
    			{
    				"xml_ns": "",
    				"src": "",
    				"var": "",
    				"id": "FilesystemStatus",
    				"url": "/mgmt/status/default/FilesystemStatus"
    			},
    			{
    				"xml_ns": "",
    				"src": "",
    				"var": "",
    				"id": "MemoryStatus",
    				"url": "/mgmt/status/default/MemoryStatus"
    			}
    		],
    		"definition": {
    			"nodename": "%hostname",
    			"resource_category": null,
    			"defaults": {
    				"checkcert": "no",
    				"port": 5551,
    				"interval": 90,
    				"httptimeout": 30000
    			},
    			"addedProfileFields": [{
    				"name": "username",
    				"value": "",
    				"type": "text",
    				"label": "Username"
    			},
    			{
    				"name": "password",
    				"value": "",
    				"type": "password",
    				"label": "Password"
    			}],
    			"auth": "basic",
    			"xml_ns": "",
    			"name": "dp_new_schema2",
    			"type": "https"
    		},
    		"metrics": [
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_AVG_CPU_USAGE",
    						"qos_desc": "Default Domain - Average CPU Usage - Last 10 Min",
    						"qos_abbr": "%",
    						"metric_type": "1.3:20",
    						"qos_unit": "pct",
    						"source": "%hostname",
    						"target": "avg_cpu_usage",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    						}
    				},
    				"value": "$['CPUUsage']['tenMinutes']",
    				"url": "CPUUsage",
    				"group": "data_power"
    			},
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_FILESYSTEM_STATUS_FREE_ENCRYPTED",
    						"qos_desc": "Default Domain - File System Status Free Encrypted",
    						"qos_abbr": "%",
    						"metric_type": "1.1:10",
    						"qos_unit": "MB",
    						"source": "%hostname",
    						"target": "free_encrypted",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    					}
    				},
    				"value": "$['FilesystemStatus']['FreeEncrypted']",
    				"url": "FilesystemStatus",
    				"group": "data_power"
    			},
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_FILESYSTEM_STATUS_TOTAL_ENCRYPTED",
    						"qos_desc": "Default Domain - File System Status Total Encrypted",
    						"qos_abbr": "%",
    						"metric_type": "1.1:10",
    						"qos_unit": "MB",
    						"source": "%hostname",
    						"target": "total_encrypted",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    					}
    				},
    				"value": "$['FilesystemStatus']['TotalEncrypted']",
    				"url": "FilesystemStatus",
    				"group": "data_power"
    			},
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_FILESYSTEM_STATUS_FREE_TEMPORARY",
    						"qos_desc": "Default Domain - File System Status Free Temporary",
    						"qos_abbr": "%",
    						"metric_type": "1.1:10",
    						"qos_unit": "MB",
    						"source": "%hostname",
    						"target": "free_temporary",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    					}
    				},
    				"value": "$['FilesystemStatus']['FreeTemporary']",
    				"url": "FilesystemStatus",
    				"group": "data_power"
    			},
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_FILESYSTEM_STATUS_TOTAL_TEMPORARY",
    						"qos_desc": "Default Domain - File System Status Total Temporary",
    						"qos_abbr": "%",
    						"metric_type": "1.1:10",
    						"qos_unit": "MB",
    						"source": "%hostname",
    						"target": "total_temporary",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    						}
    				},
    				"value": "$['FilesystemStatus']['TotalTemporary']",
    				"url": "FilesystemStatus",
    				"group": "data_power"
    			},
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_FILESYSTEM_STATUS_FREE_INTERNAL",
    						"qos_desc": "Default Domain - File System Status Free Internal",
    						"qos_abbr": "%",
    						"metric_type": "1.1:10",
    						"qos_unit": "MB",
    						"source": "%hostname",
    						"target": "free_internal",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    					}
    				},
    				"value": "$['FilesystemStatus']['FreeInternal']",
    				"url": "FilesystemStatus",
    				"group": "data_power"
    			},
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_FILESYSTEM_STATUS_TOTAL_INTERNAL",
    						"qos_desc": "Default Domain - File System Status Total Internal",
    						"qos_abbr": "%",
    						"metric_type": "1.1:10",
    						"qos_unit": "MB",
    						"source": "%hostname",
    						"target": "total_internal",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    					}
    				},
    				"value": "$['FilesystemStatus']['TotalInternal']",
    				"url": "FilesystemStatus",
    				"group": "data_power"
    			},
    			{
    				"calculation": "",
    				"xml_ns": "",
    				"attributes": {
    					"uim": {
    						"defaultpublishing": "true",
    						"qos_name": "QOS_DATA_POWER_MEMORY_USAGE",
    						"qos_desc": "Default Domain - Memory Usage",
    						"qos_abbr": "%",
    						"metric_type": "1.6:2",
    						"qos_unit": "pct",
    						"source": "%hostname",
    						"target": "memory_usage",
    						"thresholdtype": "static",
    						"thresholdenabled": "true",
    						"operator": ["",
    						"",
    						"",
    						"NE",
    						""],
    						"severity": [null,
    						null,
    						null,
    						200,
    						null],
    						"custom_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is outside expected limits (${value} ${operator} ${threshold_value})",
    						"custom_clear_message": "The monitor ${qos_name} targeting ${qos_target} on ${qos_source} is inside expected limits (${value} ${operator} ${threshold_value})"
    					}
    				},
    				"value": "$['MemoryStatus']['Usage']",
    				"url": "MemoryStatus",
    				"group": "data_power"
    			}
    		]
    	}

    Does anyone see anything wrong, or any reason why I would be seeing this in the log file:

    2021-03-25 15:07:36 DEBUG RestAPICall - Finish RestAPICall https://localhost:5551/mgmt/status/default/CPUUsage status: 400 time: 2,024 milliseconds
    2021-03-25 15:07:36 INFO  DataCollector - dp_new_schema2~~830~~dp_new_schema2 data rowcount: 3
    2021-03-25 15:07:36 INFO  DataCollector - CollectAllDataAndInsertIntoDB for dp_new_schema2~~830~~dp_new_schema2 finished in 2080 milliseconds
    2021-03-25 15:07:36 INFO  ProfileHandler - Load metric data for processing dp_new_schema2~~830~~dp_new_schema2
    2021-03-25 15:07:37 INFO  ProfileHandler - Loaded metric data for processing dp_new_schema2~~830~~dp_new_schema2 time: 283 milliseconds
    2021-03-25 15:07:37 INFO  ProfileHandler - Start process metric data dp_new_schema2~~830~~dp_new_schema2
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_MEMORY_USAGE():data_power because REST call to get data failed.
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_FILESYSTEM_STATUS_TOTAL_INTERNAL():data_power because REST call to get data failed.
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_FILESYSTEM_STATUS_FREE_INTERNAL():data_power because REST call to get data failed.
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_FILESYSTEM_STATUS_TOTAL_ENCRYPTED():data_power because REST call to get data failed.
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_FILESYSTEM_STATUS_TOTAL_TEMPORARY():data_power because REST call to get data failed.
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_FILESYSTEM_STATUS_FREE_ENCRYPTED():data_power because REST call to get data failed.
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_FILESYSTEM_STATUS_FREE_TEMPORARY():data_power because REST call to get data failed.
    2021-03-25 15:07:37 DEBUG ProfileHandler - Skipping parse for QOS_DATA_POWER_AVG_CPU_USAGE():data_power because REST call to get data failed.
    2021-03-25 15:07:37 INFO  ProfileHandler - Status: process metric data  for dp_new_schema2~~830~~dp_new_schema2 time: 5 milliseconds
    2021-03-25 15:07:37 INFO  ProfileHandler - dp_new_schema2~~830~~dp_new_schema2 uim_metrics rowcount: 0
    2021-03-25 15:07:37 INFO  ProfileHandler - Load calculated metric data for processing dp_new_schema2~~830~~dp_new_schema2
    2021-03-25 15:07:37 INFO  ProfileHandler - Loaded calculated metric data for processing dp_new_schema2~~830~~dp_new_schema2 time: 5 milliseconds
    2021-03-25 15:07:37 INFO  ProfileHandler - Start process calculated metric data dp_new_schema2~~830~~dp_new_schema2
    2021-03-25 15:07:37 INFO  ProfileHandler - Status: process calculated metric data  for dp_new_schema2~~830~~dp_new_schema2 time: 0 milliseconds
    2021-03-25 15:07:37 INFO  ProfileHandler - dp_new_schema2~~830~~dp_new_schema2 uim_metrics rowcount after processing calculated metrics: 0
    2021-03-25 15:07:37 INFO  UimPublisher - Start Send Metric Data dp_new_schema2~~830~~dp_new_schema2
    2021-03-25 15:07:37 INFO  UimPublisher - Status: Probename: dp_new_schema2~~830~~dp_new_schema2 end of run sendqos: 0 count
    2021-03-25 15:07:37 DEBUG BaselineEngineAlarmHandler - No alarm definitions to update.
    2021-03-25 15:07:37 INFO  UimPublisher - Status: Probename: dp_new_schema2~~830~~dp_new_schema2 end of run sendqosdefinition: 0 count
    2021-03-25 15:07:37 DEBUG UimPublisher - Status: setQOSdef size: 0
    2021-03-25 15:07:37 INFO  UimPublisher - Status: Send Metric Data for dp_new_schema2~~830~~dp_new_schema2 time: 9 milliseconds
    2021-03-25 15:07:37 INFO  ENGINE - Checkpoint start
    2021-03-25 15:07:37 INFO  ENGINE - checkpointClose start
    2021-03-25 15:07:37 INFO  ENGINE - checkpointClose synched
    2021-03-25 15:07:37 INFO  ENGINE - checkpointClose script done
    2021-03-25 15:07:37 INFO  ENGINE - checkpointClose end
    2021-03-25 15:07:37 INFO  ENGINE - Checkpoint end - txts: 1678
    2021-03-25 15:07:37 INFO  ENGINE - lob file truncated to usage
    2021-03-25 15:07:37 INFO  ProfileHandler - Finish processProfile dp_new_schema2~~830~~dp_new_schema2 time: 2.468 seconds(2468 milliseconds)



    Why would it be using "localhost" in the API call and not, the hostname that I am inputing?




    ------------------------------
    IT Administrator
    ------------------------------


  • 2.  RE: Restmon Schema - Using localhost rather than the hostname thats input

    Broadcom Employee
    Posted 22 days ago
    Not sure if it is normal.
    Is it collecting any metrics at all?
    drnimbus can be used to see if it is sending qos messages and qos definitions.
    If it is collecting some metrics it might be a timeout.
    restmon probe node performance not working for all nodes.
    Article Id: 189862
    https://knowledge.broadcom.com/external/article?articleId=189862

    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------



  • 3.  RE: Restmon Schema - Using localhost rather than the hostname thats input

    Broadcom Employee
    Posted 21 days ago
    Hi Robert,

    You might check the restmon.cfg at /probes/application/restmon and see if the Hostname parameter is set to localhost.  If it is, deactivate the restmon probe, update the restmon.cfg with the correct hostname, save it and activate restmon again.

    Hopefully that helps.
    Chris


  • 4.  RE: Restmon Schema - Using localhost rather than the hostname thats input

    Posted 17 days ago
    Now anytime I try to deploy a profile I see this in the logs, not sure what causes this, any idea? The Schema file has already been added and I am just trying to deploy it to a robot:

    2021-03-31 08:06:59 INFO  ProfileConfiguration - Finished store of profile configuration for definition Data Power NP_PR~~12272~~data_power_np_prd in 125 ms
    2021-03-31 08:06:59 INFO  RESTmon - ***** createProfileProcessors *****
    2021-03-31 08:06:59 INFO  NimProbe - ****************[ Starting ]****************
    2021-03-31 08:06:59 INFO  NimProbe - 1.41
    2021-03-31 08:06:59 INFO  NimProbe - CA Technologies
    2021-03-31 08:06:59 INFO  NimProbe - port=48011
    2021-03-31 08:06:59 INFO  NimProbeBase - Login to NimBUS is OK
    2021-03-31 08:10:24 INFO  NimProbe - ****************[ Restart ]****************
    2021-03-31 08:10:26 INFO  ENGINE - Checkpoint start
    2021-03-31 08:10:26 INFO  ENGINE - checkpointClose start
    2021-03-31 08:10:26 INFO  ENGINE - checkpointClose synched
    2021-03-31 08:10:26 INFO  ENGINE - checkpointClose script done
    2021-03-31 08:10:26 INFO  ENGINE - checkpointClose end
    2021-03-31 08:10:26 INFO  ENGINE - Checkpoint end - txts: 1
    2021-03-31 08:10:27 INFO  DbSchema - createdbschema started
    2021-03-31 08:10:27 INFO  DbSchema - CreateDBSchema finished and it took 93 milliseconds
    2021-03-31 08:10:27 INFO  ENGINE - Database closed
    2021-03-31 08:10:27 INFO  ENGINE - Checkpoint start
    2021-03-31 08:10:27 INFO  ENGINE - checkpointClose start
    2021-03-31 08:10:27 INFO  ENGINE - checkpointClose synched
    2021-03-31 08:10:27 INFO  ENGINE - checkpointClose script done
    2021-03-31 08:10:27 INFO  ENGINE - checkpointClose end
    2021-03-31 08:10:27 INFO  ENGINE - Checkpoint end - txts: 1
    2021-03-31 08:10:27 INFO  DbSchema - createdbschema started
    2021-03-31 08:10:27 INFO  DbSchema - CreateDBSchema finished and it took 94 milliseconds
    2021-03-31 08:10:27 INFO  ProfileConfiguration - Start store of profile configuration for definition Data Power NP_PR~~12272~~data_power_np_prd
    2021-03-31 08:10:28 ERROR FileReader - Did not find file data_power_np_prd_schema.json or probe_schemas\data_power_np_prd_schema.json
    2021-03-31 08:10:28 ERROR ProfileConfiguration - Exception:  failed processing profile configuration Data Power NP_PR~~12272~~data_power_np_prd
    2021-03-31 08:10:28 ERROR ProfileConfiguration - java.lang.NullPointerException
    	at com.ca.ce.restmon.util.GetJSONVar.isValidJson(GetJSONVar.java:295)
    	at com.ca.ce.restmon.config.ProfileConfiguration.readSchema(ProfileConfiguration.java:198)
    	at com.ca.ce.restmon.config.ProfileConfiguration.store(ProfileConfiguration.java:150)
    	at com.ca.ce.restmon.config.ProfileConfiguration.store(ProfileConfiguration.java:130)
    	at com.ca.ce.restmon.uim.RESTmon.doit(RESTmon.java:126)
    	at com.ca.ce.restmon.uim.RESTmon.main(RESTmon.java:63)
     
    2021-03-31 08:10:28 INFO  ProfileConfiguration - Finished store of profile configuration for definition Data Power NP_PR~~12272~~data_power_np_prd in 172 ms
    2021-03-31 08:10:28 INFO  RESTmon - ***** createProfileProcessors *****
    2021-03-31 08:10:28 INFO  NimProbe - ****************[ Starting ]****************
    2021-03-31 08:10:28 INFO  NimProbe - 1.41
    2021-03-31 08:10:28 INFO  NimProbe - CA Technologies
    2021-03-31 08:10:28 INFO  NimProbe - port=48011
    2021-03-31 08:10:28 INFO  NimProbeBase - Login to NimBUS is OK


    ------------------------------
    IT Administrator
    ------------------------------



  • 5.  RE: Restmon Schema - Using localhost rather than the hostname thats input

    Broadcom Employee
    Posted 9 days ago
    If you revert to the old cfg does this problem go away?

    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------