Hi everyone!
So , i'm trying to get some results using UserParameter;
In this case I have edited agentd.conf (client) and adding this command
####temp template####
UserParameter=custom.temp.dev.read,cat /sys/class/thermal/thermal_zone0/temp | awk '{print substr ($1,1,2);}'
###################
Where the result of cat /sys/class/thermal/thermal_zone0/temp | awk '{print substr ($1,1,2);}' is printing first two digits of current temperature.
So how can I proceed to implement this command? I need to create Key itens ( I don't know to archive it) or just use " Show Value = As is" will be sufficient?
Only with the UserParameter, creating the trigger will it work?
I'm pretty sure it will not work because I don't know how to create te variable for example :custom.temp.dev.read[???] when creating the item.
Can you guys help me ?
So , i'm trying to get some results using UserParameter;
In this case I have edited agentd.conf (client) and adding this command
####temp template####
UserParameter=custom.temp.dev.read,cat /sys/class/thermal/thermal_zone0/temp | awk '{print substr ($1,1,2);}'
###################
Where the result of cat /sys/class/thermal/thermal_zone0/temp | awk '{print substr ($1,1,2);}' is printing first two digits of current temperature.
So how can I proceed to implement this command? I need to create Key itens ( I don't know to archive it) or just use " Show Value = As is" will be sufficient?
Only with the UserParameter, creating the trigger will it work?
I'm pretty sure it will not work because I don't know how to create te variable for example :custom.temp.dev.read[???] when creating the item.
Can you guys help me ?
Comment