1 Commits

Author SHA1 Message Date
2ae53a73ca Vagrant 2022-09-21 17:41:58 +02:00
4 changed files with 12 additions and 40 deletions

View File

@ -73,7 +73,7 @@ use_pending_states=1
# authentication (bad idea), while any other value will make them
# use the authentication functions (the default).
use_authentication=1
use_authentication=0

View File

@ -42,7 +42,7 @@ define hostgroup {
hostgroup_name linux-servers ; The name of the hostgroup
alias Linux Servers ; Long name of the group
members localhost, srv, gwsio5, ns ; Comma separated list of hosts that belong to this group
members localhost, srv, gwsio5 ; Comma separated list of hosts that belong to this group
}
@ -58,11 +58,9 @@ define hostgroup {
define service {
use local-service ; Name of service template to use
hostgroup_name linux-servers
host_name localhost
service_description PING
check_command check_ping!100.0,20%!500.0,60%
notifications_enabled 1
}
@ -144,7 +142,7 @@ define service {
hostgroup_name linux-servers
service_description SSH
check_command check_ssh
notifications_enabled 1
notifications_enabled 0
}
@ -155,34 +153,9 @@ define service {
define service {
use local-service ; Name of service template to use
#host_name localhost
host_name localhost
hostgroup_name linux-servers
service_description HTTP
check_command check_http
notifications_enabled 1
notifications_enabled 0
}
define service {
use generic-service ;Use generic-service template
hostgroup_name linux-servers ; S'applique au groupe en question
service_description chk-lin-load ; Nom du service
check_command check_lin_load!public!--v2c!netsl!3,2,2!3,2,2 ; Command
}
define service {
use generic-service ;Use generic-service template
hostgroup_name linux-servers ; S'applique au groupe en question
service_description chk-lin-mem ; Nom du service
check_command check_lin_mem!public!--v2c!70%,80%!90%,95% ; Command
}
define service{
use generic-service
hostgroup_name linux-servers
service_description chk-dns-ext
check_command check_dns_ext
}

View File

@ -46,7 +46,6 @@ cfg_file=/etc/nagios4/objects/templates.cfg
cfg_file=/etc/nagios4/objects/localhost.cfg
cfg_file=/etc/nagios4/objects/srv.cfg
cfg_file=/etc/nagios4/objects/gwsio5.cfg
cfg_file=/etc/nagios4/objects/ns.cfg
# Definitions for monitoring a Windows machine
#cfg_file=/etc/nagios4/objects/windows.cfg

12
Sio2/Vagrantfile vendored
View File

@ -23,7 +23,7 @@ Vagrant.configure("2") do |config|
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
config.vm.network "forwarded_port", guest: 80, host: 2080
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
@ -37,7 +37,7 @@ Vagrant.configure("2") do |config|
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"
config.vm.network "public_network"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
@ -49,13 +49,13 @@ Vagrant.configure("2") do |config|
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
config.vm.provider "virtualbox" do |vb|
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
vb.memory = "1024"
end
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.
@ -65,6 +65,6 @@ Vagrant.configure("2") do |config|
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y apache2 nano
apt-get install -y apache2 vsftpd snmpd
SHELL
end