script for sensor with usage of nagios