Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
#!/bin/bash -e | |
#Parameters to configure | |
SERVICE_USERNAME=ec2api | |
SERVICE_PASSWORD=ec2api | |
SERVICE_TENANT=service | |
CONNECTION="mysql://ec2api:ec2api@127.0.0.1/ec2api?charset=utf8" | |
LOG_DIR=/var/log/ec2api | |
CONF_DIR=/etc/ec2api | |
NOVA_CONF=/etc/nova/nova.conf |
curl -L -O http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
# default: on | |
# description: NRPE (Nagios Remote Plugin Executor) | |
service nrpe | |
{ | |
flags = REUSE | |
socket_type = stream | |
port = 5666 | |
wait = no | |
user = nagios | |
group = nagios |
sudo apt-get install nagios-nrpe-server nagios-plugins
/etc/nagios/nrpe.cfg
then change these lines:
############################################################################# | |
# Sample NRPE Config File | |
# Written by: Ethan Galstad (nagios@nagios.org) | |
# | |
# Last Modified: 11-23-2007 | |
# | |
# NOTES: | |
# This is a sample configuration file for the NRPE daemon. It needs to be | |
# located on the remote host that is running the NRPE daemon, not the host | |
# from which the check_nrpe client is being executed. |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
import matplotlib.pyplot as plt | |
class RidgeRegressor(object): | |
""" | |
Linear Least Squares Regression with Tikhonov regularization. |