[ZBX-3134] "maintenance.create" fails to create maintenance Created: 2010 Oct 22 Updated: 2017 May 30 Resolved: 2011 Jun 09 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 1.8.3 |
Fix Version/s: | 1.8.3, 1.8.5 |
Type: | Incident report | Priority: | Minor |
Reporter: | Paul | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Debian Lenny |
Attachments: |
![]() |
Description |
"auth":"0000000000000000000000000000","method":"maintenance.create","id":1,"params":{"hosts":[ {"hostid":"10052"}],"description":"test","active_since":"1286576441","active_till":"1286590656","name":"test","maintenance_type":"0"},"jsonrpc":"2.0" (with the auth obviously changed)gives an error [ CMaintenance::create ] At least one host or group should be selected. 10052 definitely exists: mysql> select hostid,host from hosts where hostid="10052";
-------
------- Also, I can't seem to specify the maintenance period, is this a feature request or a documentation bug? |
Comments |
Comment by richlv [ 2011 Feb 08 ] |
i seem to get the same on trunk |
Comment by gescheit [ 2011 Apr 25 ] |
1.8.5 also affected. Get Error -32500: Application error., [ CMaintenance::create ] At least one host or group should be selected |
Comment by gescheit [ 2011 Apr 27 ] |
patch for maintenance.create |
Comment by Paul [ 2011 Jun 07 ] |
I applied the patch, thank you. I tried on both 1.8.3 and 1.8.5 and the maintenance window gets created, but no period is created. I am creating a second issue for this in |
Comment by Paul [ 2011 Jun 08 ] |
I should have specified, this is a blocker. The API call doesn't work at all. |
Comment by Alexey Fukalov [ 2011 Jun 09 ] |
It seems that api docs had example with error. Correct example is: ] |
Comment by Paul [ 2011 Jun 09 ] |
I have confirmed this documentation fix applies to 1.8.3 and 1.8.5, I expect it applies to all versions.
|