I try this:
lynx -source "http://myprtgserver/api/getobjectstatus.htm?id=2779&name=totalsens&show=text&username=myuser&password=mypassword"
and the result is:
<?xml version="1.0" encoding="UTF-8" ?> <prtg> <version>8.1.1.1695</version> <result>13</result> </prtg>
but if I use upsens instead of totalsens the answer is:
<?xml version="1.0" encoding="UTF-8" ?> <prtg> <version>8.1.1.1695</version> <result><a title="SQL Nodo A: 12x Up" href="sensors.htm?id=2779&filter_status=2&filter_status=3"><div class="sensg">12</div></a></result> </prtg>
and I cannot parse the output of the "result" tag, because it's HTML and not an integer value.
Add comment