https://github.com/opentable/grunt-nagios
Nagios grunt module to interact with cmd.cgi interface
https://github.com/opentable/grunt-nagios
Last synced: 3 months ago
JSON representation
Nagios grunt module to interact with cmd.cgi interface
- Host: GitHub
- URL: https://github.com/opentable/grunt-nagios
- Owner: opentable
- License: mit
- Created: 2014-02-07T10:51:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-04T12:43:04.000Z (almost 11 years ago)
- Last Synced: 2024-04-14T09:05:29.204Z (about 1 year ago)
- Language: JavaScript
- Size: 238 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-nagios [](https://travis-ci.org/opentable/grunt-nagios) [](http://badge.fury.io/js/grunt-nagios) 
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",
user: "nagiosuser",
password: "nagiospassword",
nohttps: false // force request to use http (default is https)
},
'mygroup-off': {
options: {
group: 'mygroup', // optional: target a group
grouptype: 'hostgroup', // Options are: hostgroup or servicegroup
command: 66 // check your nagios setup for available commands
}
},
'myhost-off':{
options: {
host: 'my.server.com', // target a specific host
command: 55 // check your nagios setup for available commands
}
}
}
```## Running
```shell
grunt nagios
```