I am trying to setup a sensor that will return a value from an xml page. The page requires authentication but this sensor does not seem to have a way to provide that.

I tried passing the authentication using http://user:password@webpage.com but that does not work on Apach 2.2 anymore. Any alternative?


Article Comments

Hello,

which sensor type are you using?

Best Regards.


Mar, 2011 - Permalink

HTTP XML/REST Value as mentioned in the subject of my post. I am using the latest version of PRTG.


Mar, 2011 - Permalink

I'm afraid this sensor has no option for authentication settings. If you can't URL-Encode the credentials, I'm afraid then it's not possible to use this sensor.


Mar, 2011 - Permalink

I am trying to get URL encoded credentials to work. I found a registry setting that will the iexplore.exe and explorer.exe to allow me to pass the credentials. (see http://support.microsoft.com/kb/834489). This registry hack requires you to list the specific program that is allowed to pass the authentication.

I have tested on the server where the sensor is running. From the command line I can run: "explorer.exe http://user:pass@website.com/webpage" and it opens the xml page in internet explorer. Yet the sensor still does not work. It returns 0:The remote server returned an error. (401) Unauthorized.

Can you tell me what program the the sensor passes the credentials to? I should then be able to add it to the registry.


Mar, 2011 - Permalink

That would be the 'XMLValue.exe' in PRTGs subfolder '\PRTG Network Monitor\Sensor System'.


Mar, 2011 - Permalink

I did the same registry edit for XMLvalue.exe but it is still not passing the authentication. I contacted the original developer of the XMLvalue.exe and he was able to create a custom sensor based on this one that would all me to add -un=username and -pw=password to the end of the parameters and that works. Any chance you could incorporate that ability into your sensor? I am not sure what the difference is between his and your accept that yours is a little easier to setup.


Mar, 2011 - Permalink

It's likely implemented in a future release. But I can't say when exactly.


Mar, 2011 - Permalink

Yes I'm also looking for a sensor that can get a file but which requires authentication. Is this the only file examination sensor?


Nov, 2011 - Permalink