Commit fc236cec by JR Dalrymple

Updated all the friendly outputs

Don't know if I've committed since perfdata, but that's in and works
parent 09ad163a
......@@ -17,6 +17,8 @@
# - Add in the ability to use perfdata as a simple bandwidth
# method to create graphs in Nagios
# - SNMP v3?
# - Still don't have the logic for when the period rolls - I have about
# 29 days to figure this out :)
#
#
# Release Hitory:
......@@ -266,6 +268,8 @@ elif percentageDataUsed > monthComplete:
sys.exit(1)
else:
print('OK - You will not use all of your alloted data for this period at the current rate' + perfdata)
print('The month is ' + str(round(monthComplete,2)) + '% complete.')
print('The data allotment on interface ' + interface + ' is ' + str(round(percentageDataUsed,2)) +'% used.')
sys.exit(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment