We have created an java/chromedriver based application that tests logging in to a website and performs some tests and returns success or failure.

Can this application be used as a customer sensor if we were to use PRTG?

Thank you. Antony


Article Comments

Hey Antony,

It depends on your application. The returned data for standard EXE/Script sensors must be in the following format:

value:message

Value has to be a 64-bit integer or float. It will be used as the resulting value for this sensor (for example, bytes, milliseconds) and stored in the database. The message can be any string (maximum length: 2000 characters).

The exit code of the EXE has to be one of the following values:

ValueDescription
0OK
1WARNING
2System Error (e.g. a network/socket error)
3Protocol Error (e.g. web server returns a 404)
4Content Error (e.g. a web page does not contain a required word)

If your application follows this format for the return values, you should be able to run it with PRTG.

Best regards,
Sven


May, 2017 - Permalink

Thanks....

In our test, we have created a Java application which in turn starts chromedriver.exe. This works fine when started from the command line.

However, when the Java application is started from PRTG, chromedriver.exe does not seem to start.

Any insights?

Thanks, Antony


May, 2017 - Permalink

Hey Antony,

Kindly open a new support ticket (using the ticket number PAE868648) and send us the log files of the sensor.

To do so, please head to the settings of your sensor and activate the "Write EXE result to disk" option. Afterwards, please forward us the log files (Result of Sensor XXX.Data.txt and Result of Sensor XXX.txt) located on the corresponding probe under C:\ProgramData\Paessler\PRTG Network Monitor\Logs (Sensors).

Thank you very much in advance.

Kind regards,
Sven


May, 2017 - Permalink