I am looking for script by which i can unable or disable Maintenance for my hosts groups .
Till now i have tried below scripts but all having some issue or might be i am doing wrong some ware .
When i run these script ERROR - hostname not found in zabbix. Make sure you're using the FQDN .
host name is present in my zabbix GUI .
Please help me to understand this issue .
If i take the example of this script http://zabbix.org/wiki/Perl_script_t...ve_Maintenance
i have modify this lines
my $url = "http://ip/zabbix/api_jsonrpc.php"; # change <zabbix server> to your zabbix server
my $apiuser="Admin"; # API User's Username
my $apipassword="zabbix"; # API User's password
Then i have test the script by running list this on console :
# ./za1.pl -s host1 -d 3600 -n backup
WARNING - host1 not found in maintenance for Zabbix.
Where host1 is my host name which is present in zabbix GUI .
Till now i have tried below scripts but all having some issue or might be i am doing wrong some ware .
When i run these script ERROR - hostname not found in zabbix. Make sure you're using the FQDN .
host name is present in my zabbix GUI .
Please help me to understand this issue .
If i take the example of this script http://zabbix.org/wiki/Perl_script_t...ve_Maintenance
i have modify this lines
my $url = "http://ip/zabbix/api_jsonrpc.php"; # change <zabbix server> to your zabbix server
my $apiuser="Admin"; # API User's Username
my $apipassword="zabbix"; # API User's password
Then i have test the script by running list this on console :
# ./za1.pl -s host1 -d 3600 -n backup
WARNING - host1 not found in maintenance for Zabbix.
Where host1 is my host name which is present in zabbix GUI .