hi
I have a web site that checks a service and display a value 0 or other number.
if 0 that means the service is down.
if other number such as -1 that means the service is up.
how can I monitor that and set a sensor to notify me for changes?
Article Comments
I encourage you to change the web-page to display the value in a format that PRTG can natively understand, for example:
Data that is compatible with the HTTP Content Sensor should look
<html>
<body>
Description: Script gives back current status of disk free (%) and CPU usage (%).
[85.5][12.0]
</body>
</html>
Or, if you want to use the HTTP Data Advanced sensor, the XML-encoded data should look like this:
<?xml version="1.0" encoding="utf-8" ?>
<prtg>
<result>
<channel>Channel 1 (float)</channel>
<value>12.34</value>
<float>1</float>
</result>
</prtg>
Or, if you rather use JSON:
{
"prtg": {
"result": {
"channel": "Channel 1 (float)",
"value": "12.34",
"float": "1"
}
}
}
For more details:
I encourage you to use a lookup after you've created the sensor to display a state in PRTG (instead of 1 and 0):
Best Regards,
Luciano Lingnau [Paessler Support]
Jan, 2018 - Permalink
I encourage you to change the web-page to display the value in a format that PRTG can natively understand, for example:
Data that is compatible with the HTTP Content Sensor should look
Or, if you want to use the HTTP Data Advanced sensor, the XML-encoded data should look like this:
Or, if you rather use JSON:
For more details:
I encourage you to use a lookup after you've created the sensor to display a state in PRTG (instead of 1 and 0):
Best Regards,
Luciano Lingnau [Paessler Support]
Jan, 2018 - Permalink