Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add a 'session' sensor for PanOS, SRX5800 Flow Accounting #8857
I couldn't find any docs on adding a new sensor type so I've kind of winged it - I may have missed a few places that it needs to be added.
I had a look at adding Linux TCP Established/Max, but it seems there's no maximum configured so it's of questionable use - can throw it in though if wanted, looks like:
So for me on this one is that these are in the wrong place. Sensors are for health information which these don't strike me as being applicable for.
Someone has attempted a PR to support a generic 'sensor' based system but I don't think it's ready yet. Ideally what we should have is one central place where you can register any type of 'sensors' against but say what section they belong in.
That needs time from someone though to get that in and make it work.
Actually mempools and cpu have there own tables but that's for a good reason (well at atleast mempools) as it stores more than just a current value + they run there own disco/poller code.
Personally I'd like to see a more generic table that registers various health metrics and records the group it belongs to rather than trying to fit other things into the sensors table.