<commit_before>NagiosHelper
============

Rails gem for writing, testing, executing Nagios checks inside Rails application.
Checks running throught http or binary(nrpe).

```
gem 'nagios_helper'
```

    $ rails generate nagios:check some
    
Check example: 
--------------

app/nagios/some.rb

```ruby
class Nagios::Some < Nagios::Check
  params :x

  def execute
    count = User.count + x.to_i
  
    warn "hmmm" if count < 10<commit_msg># fix<commit_after>NagiosHelper
============

Gem for writing, testing, executing Nagios checks inside Rails application.
Checks running throught http or binary(nrpe).

```
gem 'nagios_helper'
```

    $ rails generate nagios:check some
    
Check example: 
--------------

app/nagios/some.rb

```ruby
class Nagios::Some < Nagios::Check
  params :x

  def execute
    count = User.count + x.to_i
  
    warn "hmmm" if count < 10
{'fraction_non_alphanumeric': 0.15057471264367817, 'fraction_numerical': 0.004597701149425287, 'mean_word_length': 3.207729468599034, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6085106', 'n_tokens_mistral': 303, 'n_tokens_neox': 280, 'n_words': 85}