Module: Zabbix
- Defined in:
- lib/zabbixapi/version.rb,
lib/zabbixapi/base.rb,
lib/zabbixapi/host.rb,
lib/zabbixapi/item.rb,
lib/zabbixapi/graph.rb,
lib/zabbixapi/group.rb,
lib/zabbixapi/screen.rb,
lib/zabbixapi/trigger.rb,
lib/zabbixapi/template.rb,
lib/zabbixapi/usermacro.rb,
lib/zabbixapi/application.rb
Overview
- Author
-
Edmund Haselwanter (<[email protected]>)
- Copyright
-
Copyright © 2011 Edmund Haselwanter
- License
-
Apache License, Version 2.0
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Defined Under Namespace
Classes: AlreadyExist, AuthError, ResponseCodeError, ResponseError, SocketError, ZabbixApi
Constant Summary collapse
- ITEM_TYPE_ZABBIX =
Item types (see ./frontends/php/include/defines.inc.php in zabbix source)
0
- ITEM_TYPE_SNMPV1 =
1
- ITEM_TYPE_TRAPPER =
2
- ITEM_TYPE_SIMPLE =
3
- ITEM_TYPE_SNMPV2C =
4
- ITEM_TYPE_INTERNAL =
5
- ITEM_TYPE_SNMPV3 =
6
- ITEM_TYPE_ZABBIX_ACTIVE =
7
- ITEM_TYPE_AGGREGATE =
8
- ITEM_TYPE_HTTPTEST =
9
- ITEM_TYPE_EXTERNAL =
10
- ITEM_TYPE_DB_MONITOR =
11
- ITEM_TYPE_IPMI =
12
- ITEM_TYPE_SSH =
13
- ITEM_TYPE_TELNET =
14
- ITEM_TYPE_CALCULATED =
15
- VERSION =
"0.2.4"
Instance Method Summary collapse
Instance Method Details
#get_app_id(host_id, app_name) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/zabbixapi/application.rb', line 28 def get_app_id(host_id, app_name) = { 'method' => 'application.get', 'params' => { 'filter' => { 'name' => app_name, 'hostid' => host_id } } } responce = send_request() unless responce.empty? then result = responce[0]['applicationid'] else result = nil end return result end |