Take the old file as param for the sensor converter script

tags/zabbix-agent-addons-0.2.20-1 0.1.28_el5
Daniel Berteaud 10 years ago
parent b9df71e9ba
commit b571fa5509
  1. 3
      zabbix_scripts/util_convert_sensors_ini

@ -6,7 +6,8 @@ use warnings;
use Config::Simple '-strict'; use Config::Simple '-strict';
use JSON; use JSON;
my $old = '/etc/zabbix/sensors.conf'; my $old = shift;
$old ||= '/etc/zabbix/sensors.conf';
my $new = '/etc/zabbix/sensors.ini'; my $new = '/etc/zabbix/sensors.ini';
my $sensors = {}; my $sensors = {};

Loading…
Cancel
Save