Fortigate sessions sensors #10183
DO NOT DELETE THIS TEXT
If you would like to test this pull request then please run:
Adding 3 health sensors for Fortigate. Withouth thresholds as it differs per environment. Using numerical OID's as the polling afterwards didn't work withouth. The sensors:
Please add test data so we can ensure your change is not broken in the future.
Read the docs to find out how: https://docs.librenms.org/Developing/os/Test-Units
But for now, you have an issue with the indexes of your new session sensors that must be handled before upgrading the tests data anyway.
The idea is the following:
Then, whenever anybody does a change in LibreNMS codebase, Travis does again the save-test-data and compares it to the existing extracts, for each "picture".
If they match, all good, the code did not break anything. If they don't, the PR cannot be merged until issue is addressed.
Of course, if you add a feature, you have to manually update the extracts (for existing pictures) or create picture and extracts for next time.
Hope it is now a little bit clearer.