Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

Template export, modification and re-import - how to do it right?

$
0
0

Hi all,


We're using SAM to monitor SQL using the standard SQL DB template. We're creating a template per instance because of course each component in the template needs to point at the instance name that we want to monitor. So then we apply that template to the server where the instance exists. That's fine and we can copy the templates using the GUI and rename etc. However, we need to do this on an enterprise scale - doing it through the GUI isn't going to cut it. So I've tried to export the SQL template, rename the file and modify the template <Name></Name> field in the XML to match the new name of the file. I've also updated all the <SQLInstanceName> in each of the components to the appropriate instance name for this template. (Actually I've got a cool Powershell script to do this on a large scale for lots of server/instance pairs from a CSV file).

 

Problem is when I try to import the newly made templates again, Orion throws an error :

 

ApplicationTemplateImportFromXmlStream failed, check fault information

 

Digging into the error further I see:

 

Time: 05/30/2014 10:50:17.2351

Server: Microsoft-IIS/7.5

Pipeline: Integrated

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Error Instance: 440b5ba79ef140c4a4d78c4a63ded28f

User: *MYUSER*

URL: *URL REMOVED*

Referrer: *OTHER URL REMOVED*

Message: ApplicationTemplateImportFromXmlStream failed, check fault information.

ErrorSite: SolarWinds.APM.Common.BusinessLayerFactory.BusinessLayerExceptionHandler

ErrorType: SolarWinds.APM.Common.ApmBusinessLayerException

Stack:

at SolarWinds.APM.Common.BusinessLayerFactory.BusinessLayerExceptionHandler(Exception ex)

at SolarWinds.APM.Common.APMBusinessLayerProxy.ApplicationTemplateImportFromXmlStreamEx(Stream data)

at Orion_APM_Admin_ImportApplicationTemplate.submitButton_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)

at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)

at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

Do I need to make some other modifications to the edited template before I can upload it? I see a template ID in the XML, but don't know if that's relevant? Any one every do this? Maybe I need to log a support call?


Viewing all articles
Browse latest Browse all 12281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>