Hi,
I have need monitor an electric generator with modbus, my problem is i can't create warning threshold and critical threshold for monitor the voltage of the battery, EDF and others components such as water temperature of motor, pression oil, temeratur oil...
On the script comment, i have informations :
--warning-*
Warning threshold (can be 'unique' or 'global') (Override config
if set)
--critical-*
Critical threshold (can be 'unique' or 'global') (Override
config if set)
I not anderstand this information, wished for have threshold warning at 270 and seuil critical at 265...
Other problem, i can't format return value. ex: value return 275, return value wished 27,5.
Commande execut on centreon :
./centreon_plugins.pl --plugin=apps/protocols/modbus/plugin.pm --mode=numeric-value --tcp-host=172.xxx.xxx.220 --config=hostline/modbus_group_battery.json --verbose
Plugin modbus execut with config file json :
{
"selection":{
"battery_charge_tension":{
"address": 1029,
"quantity": 1,
"type": "holding",
"display": true,
"formatting": {
"printf_msg": "Metric '%s' value is '%.2f'",
"printf_var": "$self->{result_values}->{instance}, $self->{result_values}->{value}"
}
}
}
}
Please help.
Best Regard
Best answer by christophe.niel-ACT
View original