Open FaustoNascimento opened 8 years ago
We found it by watching the request/response headers (using something like the Chrome DevTools' Network tab) while creating the sensors. The request you're looking for will be "addsensor5.htm".
These are probably the fields you're looking for, although I'm not sure what data/format the disk__check one is expecting. My next step would be to guess-and-check on the values to see how it works.
Actually found an "easier" way. The IIS log from PRTG, which is held on %programdata%\Paessler\PRTG Network Monitor\Logs (Web Server) has a full detail of all incoming and outgoing requests and parameters passed.
Also for info purposes:
Fausto
Ha, I'm not sure I agree that monitoring the logs is "easier," but I'm glad you were able to find the values.
sandersjds: on another note, I have started creating my own PRTG module which is also on Github. It's still very new so many functions missing, but what I tried to do was remove such a massive dependency on multiple HTTP handling functions and replace them all with one.
As a rule of thumb, I also don't like having internal only functions, so I tried to get rid of that too.
Feel free to have a browse and if you feel like it we can combine our projects!
I've gone down a slightly different route when creating sensors.
Instead of attempting to build the '
I now don't create the
The returned values already include the fully built
If you're interested in contributing or having a look, here's the link:
@sandersjds, @brianaddicks can I ask where you got the string interfacenumber__check from?
I'm looking to create a function for the SNMP Disk Free sensor and struggling with finding out what the API expects.
Thx, Fausto