<commit_before>#Ruby Zabbix Api Module

Simple and lightweight ruby module for work with zabbix api

[![Build Status](https://travis-ci.org/vadv/zabbixapi.png)](https://travis-ci.org/vadv/zabbixapi)

#####Now worked with zabbix
* 1.8.2 (api version 1.2)
* 1.8.9 (api version 1.3)
* 2.0.4 (api version 2.0.4) [unstable]

## Installation
```
gem install zabbixapi
```

## Get Start

### Connect
```ruby
require "zabbixapi"

zbx = ZabbixApi.connect(
  :url => 'http://localhost/zabbix/api_jsonrpc.php',
  :user => 'Admin',
  :password => '<PASSWORD>'<commit_msg>Clarify 2.0 API version support<commit_after>#Ruby Zabbix Api Module

Simple and lightweight ruby module for work with zabbix api

[![Build Status](https://travis-ci.org/vadv/zabbixapi.png)](https://travis-ci.org/vadv/zabbixapi)

#####Now worked with zabbix
* 1.8.2 (api version 1.2)
* 1.8.9 (api version 1.3)
* 2.0.x (api version 1.4 -> 2.0.6) [unstable]

## Installation
```
gem install zabbixapi
```

## Get Start

### Connect
```ruby
require "zabbixapi"

zbx = ZabbixApi.connect(
  :url => 'http://localhost/zabbix/api_jsonrpc.php',
  :user => 'Admin',
  :password => '<PASSWORD>'
{'fraction_non_alphanumeric': 0.1784776902887139, 'fraction_numerical': 0.03062117235345582, 'mean_word_length': 4.247706422018348, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4564449', 'n_tokens_mistral': 477, 'n_tokens_neox': 446, 'n_words': 106}