pip install cryptography
The EDITOR
const is optional, but I use to show how to force the use of
an editor instead of another.
# Use nrpe on remote host instead of ncpa only if ncpa is not working | |
# this setup require BOTH nrpe AND plugins | |
# Use this when on debian 7/8 | |
################ | |
# NRPE # | |
################ | |
# Execute all as super user ! |
# Source of truth | |
# https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html#Debian | |
# About nginx installation | |
# https://olivertappin.com/command-line-tools/installing-nagios-nginx-php-fpm-nagiosgraph-ubuntu-16-04/ | |
# All steps on debian require root AND `-` to use full env | |
su - | |
# Prerequisites |
#!/usr/bin/env bash | |
PACKAGES=`apt list --upgradable 2>/dev/null | wc -l` | |
echo "Trovati $PACKAGES package da aggiornare" | |
# soglie da default | |
WARNING=10 | |
CRITICAL=20 | |
# Leggo i valori delle opzioni |
server { | |
#### NOTE: UPDATE THE DOMAIN ACCORDING TO YOUR SETUP #### | |
server_name nagios.test; | |
#### NOTE: UPDATE THE PATH ACCORDING TO YOUR SETUP #### | |
#### This is my Debian 10 vps #### | |
#### Some systems uses /usr/share/nagios/share #### | |
root /usr/local/nagios/share; |
# All steps on debian require root | |
# DO NOT TRY THIS ON DEBIAN 8 - It will not works ! | |
# Note the `-`. Is important ! | |
su - | |
cd /tmp | |
wget https://assets.nagios.com/downloads/ncpa/ncpa-latest.d9.amd64.deb | |
# NOTE: if you got this problem or similar : | |
# dpkg: warning: 'start-stop-daemon' not found in PATH or not executable | |
# you are not using `su -`. |
############################################################################################################## | |
# https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#upgrading-powershell-and-net-framework | |
# | |
# The username and password parameters are stored in plain text in the registry. Make sure the Remove-Item | |
# commands are run, check them after the script finishes to ensure no credentials are still stored on the host. | |
# | |
# The ConfigureRemotingForAnsible.ps1 script is intended for training and development purposes only and | |
# should not be used in a production environment, since it enables settings (like Basic authentication) | |
# that can be inherently insecure. | |
############################################################################################################## |
# Nota - Se eseguendo dpk c'è un errore di comandi non trovati | |
# su | |
# nano /root/.bashrc | |
# appendero in fondo | |
# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# salvare | |
# source /root/.bashrc | |
su |
#!/bin/bash | |
# Download and run | |
# curl https://gist.githubusercontent.com/realtebo/3451070eba5a55186afb686d1690abd2/raw/install_ansible.sh?_=$(date +%s) | bash | |
sudo apt-get update && sudo apt-get install software-properties-common -y | |
sudo apt-add-repository universe -y | |
sudo apt-add-repository ppa:ansible/ansible -y | |
sudo apt-get update && sudo apt-get install ansible python-pip -y | |
pip install "pywinrm>=0.3.0" |