diff --git a/examples/Actions.md b/examples/Actions.md index 309d703..51d5b30 100644 --- a/examples/Actions.md +++ b/examples/Actions.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Actions: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/action](https://www.zabbix.com/documentation/3.2/manual/api/reference/action) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/action](https://www.zabbix.com/documentation/4.0/manual/api/reference/action) ## Create Action based on Trigger ```ruby diff --git a/examples/Applications.md b/examples/Applications.md index 248dc24..e3ae044 100644 --- a/examples/Applications.md +++ b/examples/Applications.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Applications: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/application](https://www.zabbix.com/documentation/3.2/manual/api/reference/application) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/application](https://www.zabbix.com/documentation/4.0/manual/api/reference/application) ## Create Application ```ruby diff --git a/examples/Configurations.md b/examples/Configurations.md index 0a4edd6..d4cc368 100644 --- a/examples/Configurations.md +++ b/examples/Configurations.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Configurations: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/configuration](https://www.zabbix.com/documentation/3.2/manual/api/reference/configuration) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/configuration](https://www.zabbix.com/documentation/4.0/manual/api/reference/configuration) ## Export Configuration diff --git a/examples/Graphs.md b/examples/Graphs.md index c272f71..fcef623 100644 --- a/examples/Graphs.md +++ b/examples/Graphs.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Graphs: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/graph](https://www.zabbix.com/documentation/3.2/manual/api/reference/graph) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/graph](https://www.zabbix.com/documentation/4.0/manual/api/reference/graph) ## Create Graph ```ruby diff --git a/examples/Hostgroups.md b/examples/Hostgroups.md index 45a3f93..04c1b58 100644 --- a/examples/Hostgroups.md +++ b/examples/Hostgroups.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Hostgroups: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/hostgroup](https://www.zabbix.com/documentation/3.2/manual/api/reference/hostgroup) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/hostgroup](https://www.zabbix.com/documentation/4.0/manual/api/reference/hostgroup) ## Create Hostgroup ```ruby diff --git a/examples/Hosts.md b/examples/Hosts.md index 436b32d..f16b95e 100644 --- a/examples/Hosts.md +++ b/examples/Hosts.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Hosts: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/host](https://www.zabbix.com/documentation/3.2/manual/api/reference/host) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/host](https://www.zabbix.com/documentation/4.0/manual/api/reference/host) ## Create Host ```ruby diff --git a/examples/Httptests.md b/examples/Httptests.md index e181cb7..808ca44 100644 --- a/examples/Httptests.md +++ b/examples/Httptests.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Httptests: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/httptest](https://www.zabbix.com/documentation/3.2/manual/api/reference/httptest) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/httptest](https://www.zabbix.com/documentation/4.0/manual/api/reference/httptest) ## Create Web Scenario (httptest) ```ruby diff --git a/examples/Items.md b/examples/Items.md index 865e6e0..cea882c 100644 --- a/examples/Items.md +++ b/examples/Items.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Items: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/item](https://www.zabbix.com/documentation/3.2/manual/api/reference/item) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/item](https://www.zabbix.com/documentation/4.0/manual/api/reference/item) ## Create Item ```ruby diff --git a/examples/Maintenance.md b/examples/Maintenance.md index f353a7a..dc49c81 100644 --- a/examples/Maintenance.md +++ b/examples/Maintenance.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Maintenance: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/maintenance](https://www.zabbix.com/documentation/3.2/manual/api/reference/maintenance) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/maintenance](https://www.zabbix.com/documentation/4.0/manual/api/reference/maintenance) ## Create Maintenance ```ruby diff --git a/examples/MediaTypes.md b/examples/MediaTypes.md index 8c61bc5..7134e63 100644 --- a/examples/MediaTypes.md +++ b/examples/MediaTypes.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for MediaTypes: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/mediatype](https://www.zabbix.com/documentation/3.2/manual/api/reference/mediatype) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/mediatype](https://www.zabbix.com/documentation/4.0/manual/api/reference/mediatype) ## Create MediaType and add it to user ### ```ruby diff --git a/examples/Proxies.md b/examples/Proxies.md index da1a645..c9c34c2 100644 --- a/examples/Proxies.md +++ b/examples/Proxies.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Proxies: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/proxy](https://www.zabbix.com/documentation/3.2/manual/api/reference/proxy) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/proxy](https://www.zabbix.com/documentation/4.0/manual/api/reference/proxy) ## Create Proxy diff --git a/examples/Screens.md b/examples/Screens.md index 090652c..766d8da 100644 --- a/examples/Screens.md +++ b/examples/Screens.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Screens: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/screen](https://www.zabbix.com/documentation/3.2/manual/api/reference/screen) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/screen](https://www.zabbix.com/documentation/4.0/manual/api/reference/screen) ## Create Screen for Host ```ruby diff --git a/examples/Templates.md b/examples/Templates.md index a3176a1..f627aae 100644 --- a/examples/Templates.md +++ b/examples/Templates.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Templates: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/template](https://www.zabbix.com/documentation/3.2/manual/api/reference/template) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/template](https://www.zabbix.com/documentation/4.0/manual/api/reference/template) ## Create Template ```ruby diff --git a/examples/Triggers.md b/examples/Triggers.md index b7d1b46..8c361b3 100644 --- a/examples/Triggers.md +++ b/examples/Triggers.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Triggers: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/trigger](https://www.zabbix.com/documentation/3.2/manual/api/reference/trigger) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/trigger](https://www.zabbix.com/documentation/4.0/manual/api/reference/trigger) ## Create Trigger ```ruby diff --git a/examples/Usergroups.md b/examples/Usergroups.md index 862ed17..ab05d7f 100644 --- a/examples/Usergroups.md +++ b/examples/Usergroups.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Usergroups: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/usergroup](https://www.zabbix.com/documentation/3.2/manual/api/reference/usergroup) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/usergroup](https://www.zabbix.com/documentation/4.0/manual/api/reference/usergroup) ## Create UserGroup, add User and set permission ```ruby diff --git a/examples/Usermacros.md b/examples/Usermacros.md index 290544f..6930b1f 100644 --- a/examples/Usermacros.md +++ b/examples/Usermacros.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Usermacros: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/usermacro](https://www.zabbix.com/documentation/3.2/manual/api/reference/usermacro) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/usermacro](https://www.zabbix.com/documentation/4.0/manual/api/reference/usermacro) ### User and global macros ```ruby diff --git a/examples/Users.md b/examples/Users.md index 7aaa193..ce31e47 100644 --- a/examples/Users.md +++ b/examples/Users.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Users: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/user](https://www.zabbix.com/documentation/3.2/manual/api/reference/user) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/user](https://www.zabbix.com/documentation/4.0/manual/api/reference/user) ## Create User ```ruby diff --git a/examples/Valuemaps.md b/examples/Valuemaps.md index 10d3378..570aeec 100644 --- a/examples/Valuemaps.md +++ b/examples/Valuemaps.md @@ -3,7 +3,7 @@ This example assumes you have already initialized and connected the ZabbixApi. For more information and available properties please refer to the Zabbix API documentation for Users: -[https://www.zabbix.com/documentation/3.2/manual/api/reference/valuemap](https://www.zabbix.com/documentation/3.2/manual/api/reference/valuemap) +[https://www.zabbix.com/documentation/4.0/manual/api/reference/valuemap](https://www.zabbix.com/documentation/4.0/manual/api/reference/valuemap) ## Create Valuemap ```ruby diff --git a/spec/server.rb b/spec/server.rb index 8d09a66..a622e50 100644 --- a/spec/server.rb +++ b/spec/server.rb @@ -8,8 +8,8 @@ expect(zbx.server.version).to be_kind_of(String) end - it 'should be 2.4.x or 3.0.x or 3.2.x' do - expect(zbx.server.version).to match(/(2\.4|3\.[02])\.\d+/) + it 'should be 2.4.x, 3.2.x, 3.4.x or 4.0.x' do + expect(zbx.server.version).to match(/(2\.4|3\.[024]|4\.0)\.\d+/) end end end