NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
177 stars 95 forks source link

FR: Add auto-range support for memory/disk/interface checks if no -u unit is passed #814

Open ssaxnagios opened 3 years ago

ssaxnagios commented 3 years ago

It would be nice if you didn't pass in any -u value that it would auto-range the data.

So if you run this (or a memory/disk check):

./check_ncpa.py -H 192.168.X.X -t 'yyyyyyyy' -M 'interface/vEthernet/bytes_sent' -w 1 -c 2 --delta

So if the counter is KB sized, show KB. If the counter is GB sized, show GB/etc. Then the -u then essentially only be used to force a specific unit.

MrPippin66 commented 3 years ago

I think this would work better if you added an output units option, which "auto" could be a parameter.

But I agree this is a desirable feature.