Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 828 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 828 Bytes

============== nagiosctl

You can control multiple nagios with nagiosctl.

wip

  • nagiosctl list_hostgroup
  • nagiosctl list_host HOSTGROUP
  • nagiosctl save_notification HOSTGROUP [HOST]...
  • nagiosctl restore_notification
  • nagiosctl enable_notification HOSTGROUP [HOST]...
  • nagiosctl disable_notification HOSTGROUP [HOST]...
  • nagiosctl disable_active_check HOSTGROUP HOST [HOST]...

Requirement

  • Server Side
    • Nagios 4.0.7+ (Require JSON CGI)
    • SSH Login
  • Client Side
    • Python 2.7

Install

git clone https://github.com/netmarkjp/nagiosctl
pip install -r requirements.txt

cp config.yml.example config.yml
vim config.yml # edit

Usage

If you use on MacOSX, clear SSH_AUTH_SOCK environment variable.

SSH_AUTH_SOCK= nagiosctl list_hostgroup