<commit_before># grunt-nagios [![Build Status](https://travis-ci.org/ryantomlinson/grunt-nagios.png?branch=master)](https://travis-ci.org/ryantomlinson/grunt-nagios) [![NPM version](https://badge.fury.io/js/grunt-nagios.png)](http://badge.fury.io/js/grunt-nagios) ![Dependencies](https://david-dm.org/ryantomlinson/grunt-nagios.png)

Nagios grunt module to turn nagios groups on or off<commit_msg>Updated README with grunt options for nagios<commit_after># grunt-nagios [![Build Status](https://travis-ci.org/ryantomlinson/grunt-nagios.png?branch=master)](https://travis-ci.org/ryantomlinson/grunt-nagios) [![NPM version](https://badge.fury.io/js/grunt-nagios.png)](http://badge.fury.io/js/grunt-nagios) ![Dependencies](https://david-dm.org/ryantomlinson/grunt-nagios.png)

Nagios grunt module to turn nagios groups on or off

## Getting Started

```shell
npm install grunt-nagios --save-dev
```

## Nagios task

Once installed you need to configure your grunt file with the options:

```js
nagios: {
 options: {
    server: "127.0.0.1", // nagios server IP
    user: "nagiosuser", // nagios user account username
    password: "<PASSWORD>", // nagios user account password
    group: 'webgroup', // nagios group
    grouptype: 'hostgroup', // Options are: hostgroup or host - default is host
    command: 66 // check your nagios setup for available commands
 }
}
```

## Running

```shell
grunt nagios
```
{'fraction_non_alphanumeric': 0.15718349928876243, 'fraction_numerical': 0.005689900426742532, 'mean_word_length': 4.474708171206226, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5901551', 'n_tokens_mistral': 526, 'n_tokens_neox': 513, 'n_words': 107}