I have about 300 sensors connected to serial port. They are being monitored by a host. I already wrote plugin for the sensors. It would take argument like this
Now, in my service, I have to find someway to pass the sensor_id to the plugin.
So far, I can think of doing this.
command_line /usr/local/bin/ruby /users/skanan/w/env_monitor/check_sensor.rb -n $SERVICEDESC$ -v --perfdata
This would distort the fact that they are the same service but running on different sensor. I'm wondering if there is a better way to do this.