Open ssaxnagios opened 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.
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.
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.