Modified to work as nagios/icinga plugin

Just modified and reduced some parts to use it on my pi for icinga.
At this stage it’s just experimental