openqrm_-_nagios
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| openqrm_-_nagios [2016-04-12 22:49:59] – Externe Bearbeitung 127.0.0.1 | openqrm_-_nagios [2018-05-28 12:42:29] (aktuell) – manfred | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== openQRM - Nagios ====== | ||
| + | |||
| + | ===== Server (openQRM-Rechner) ===== | ||
| + | |||
| + | # aptitude install nagios-nrpe-plugin | ||
| + | |||
| + | - Plugins | ||
| + | - Monitoring | ||
| + | - Nagios3 | ||
| + | - Config | ||
| + | - Automatic Nagios Configuration | ||
| + | |||
| + | Hier muss " | ||
| + | |||
| + | Es sollte nicht aktiviert sein! | ||
| + | |||
| + | |||
| + | ==== Konfiguration ==== | ||
| + | |||
| + | meine Spezial-Scripte rein pfeifen: | ||
| + | # tar xf check_nagios.tar -C / | ||
| + | |||
| + | gepackt wurden Ralf seine Speziel-Scripte so: | ||
| + | # cd / | ||
| + | Die Original-Kommandos wurden alle in " | ||
| + | Ralf seine Scripte haben alle eine Script-spezifische Endung. | ||
| + | |||
| + | Globale Konfiguration: | ||
| + | # vi / | ||
| + | |||
| + | Kommando-Konfigurationen: | ||
| + | # ls / | ||
| + | |||
| + | Unsere Ergänzungen: | ||
| + | # vi / | ||
| + | | ||
| + | # check int perf | ||
| + | define command{ | ||
| + | command_name | ||
| + | command_line | ||
| + | } | ||
| + | | ||
| + | # | ||
| + | | ||
| + | # A list of your web servers | ||
| + | define hostgroup { | ||
| + | hostgroup_name | ||
| + | alias WWW servers | ||
| + | members | ||
| + | } | ||
| + | | ||
| + | # | ||
| + | | ||
| + | # Generic host definition template - This is NOT a real host, just a template! | ||
| + | | ||
| + | define host{ | ||
| + | name www-server | ||
| + | notifications_enabled | ||
| + | event_handler_enabled | ||
| + | flap_detection_enabled | ||
| + | failure_prediction_enabled | ||
| + | process_perf_data | ||
| + | retain_status_information | ||
| + | retain_nonstatus_information | ||
| + | check_command | ||
| + | max_check_attempts | ||
| + | notification_interval | ||
| + | notification_period | ||
| + | notification_options | ||
| + | contact_groups | ||
| + | host_groups | ||
| + | register | ||
| + | } | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | ############################################################################### | ||
| + | # contacts.cfg | ||
| + | ############################################################################### | ||
| + | | ||
| + | # | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # CONTACTS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | # In this simple config file, a single contact will receive all alerts. | ||
| + | | ||
| + | define contact{ | ||
| + | contact_name | ||
| + | alias | ||
| + | service_notification_period | ||
| + | host_notification_period | ||
| + | service_notification_options | ||
| + | host_notification_options | ||
| + | service_notification_commands | ||
| + | host_notification_commands | ||
| + | email | ||
| + | } | ||
| + | | ||
| + | | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # CONTACT GROUPS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | # We only have one contact in this simple configuration file, so there is | ||
| + | # no need to create more than one contact group. | ||
| + | | ||
| + | define contactgroup{ | ||
| + | contactgroup_name | ||
| + | alias | ||
| + | members | ||
| + | } | ||
| + | | ||
| + | # | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # CONTACTS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | # In this simple config file, a single contact will receive all alerts. | ||
| + | | ||
| + | define contact{ | ||
| + | contact_name | ||
| + | alias | ||
| + | service_notification_period | ||
| + | host_notification_period | ||
| + | service_notification_options | ||
| + | host_notification_options | ||
| + | service_notification_commands | ||
| + | host_notification_commands | ||
| + | email | ||
| + | } | ||
| + | | ||
| + | | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # CONTACT GROUPS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | # We only have one contact in this simple configuration file, so there is | ||
| + | # no need to create more than one contact group. | ||
| + | | ||
| + | define contactgroup{ | ||
| + | contactgroup_name | ||
| + | alias | ||
| + | members | ||
| + | } | ||
| + | | ||
| + | # | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # CONTACTS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | # In this simple config file, a single contact will receive all alerts. | ||
| + | | ||
| + | define contact{ | ||
| + | contact_name | ||
| + | alias | ||
| + | service_notification_period | ||
| + | host_notification_period | ||
| + | service_notification_options | ||
| + | host_notification_options | ||
| + | service_notification_commands | ||
| + | host_notification_commands | ||
| + | email | ||
| + | } | ||
| + | | ||
| + | | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # CONTACT GROUPS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | # We only have one contact in this simple configuration file, so there is | ||
| + | # no need to create more than one contact group. | ||
| + | | ||
| + | define contactgroup{ | ||
| + | contactgroup_name | ||
| + | alias 1st Level | ||
| + | members | ||
| + | } | ||
| + | |||
| + | |||
| + | ==== / | ||
| + | |||
| + | #!/bin/bash | ||
| + | | ||
| + | # | ||
| + | # / | ||
| + | # | ||
| + | # vi / | ||
| + | # $COMMAND=" | ||
| + | # VM eth2: ip addr add 10.10.2.38/ | ||
| + | # | ||
| + | | ||
| + | CFGDIR="/ | ||
| + | USETEMPLATE=" | ||
| + | HNAME=" | ||
| + | IPADRESSE=" | ||
| + | CONTACTGROUPS=" | ||
| + | | ||
| + | # | ||
| + | | ||
| + | . / | ||
| + | . / | ||
| + | | ||
| + | if [ -n " | ||
| + | | ||
| + | # SELECT ip_address, | ||
| + | | ||
| + | WEBIPADR=" | ||
| + | SELECT ip_address | ||
| + | FROM ${ZIPTABLES} | ||
| + | WHERE ip_hostname=' | ||
| + | ; | ||
| + | " | mysql -N -h ${OPENQRM_DATABASE_SERVER} -u${OPENQRM_DATABASE_USER} -p${OPENQRM_DATABASE_PASSWORD} ${OPENQRM_DATABASE_NAME} | ||
| + | )" | ||
| + | | ||
| + | if [ -z " | ||
| + | WEBIPADR=" | ||
| + | fi | ||
| + | | ||
| + | #echo " | ||
| + | fi | ||
| + | | ||
| + | # | ||
| + | | ||
| + | cat << EOF > ${CFGDIR}/ | ||
| + | ############################################################################### | ||
| + | # WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE | ||
| + | # | ||
| + | # Last Modified: 2010-07-09 | ||
| + | # | ||
| + | # NOTES: This config file assumes that you are using the sample configuration | ||
| + | # files that get installed with the Nagios quickstart guide. | ||
| + | # | ||
| + | ############################################################################### | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # HOST DEFINITIONS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | # Define a host for the Windows machine we'll be monitoring | ||
| + | # Change the host_name, alias, and address to fit your situation | ||
| + | | ||
| + | define host{ | ||
| + | use | ||
| + | host_name | ||
| + | alias | ||
| + | address | ||
| + | } | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # HOST GROUP DEFINITIONS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | | ||
| + | # Define a hostgroup for Windows machines | ||
| + | # All hosts that use the windows-server template will automatically be a member of this group | ||
| + | | ||
| + | | ||
| + | # Define a hostgroup for Windows machines | ||
| + | # All hosts that use the windows-server template will automatically be a member of this group | ||
| + | | ||
| + | | ||
| + | | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | # | ||
| + | # SERVICE DEFINITIONS | ||
| + | # | ||
| + | ############################################################################### | ||
| + | ############################################################################### | ||
| + | | ||
| + | | ||
| + | # Create a service for monitoring the version of NRPE that is installed | ||
| + | # Change the host_name to match the name of the host you defined above | ||
| + | | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | EOF | ||
| + | | ||
| + | | ||
| + | # Der Generator, der die Variable " | ||
| + | # kann nur auf dem Client ausgeführt werden! | ||
| + | # | ||
| + | # Da wir hier nur mit einem ROOT-Volumen arbeiten, macht das nix. | ||
| + | # Für den einen Fall packen wir ein Statische CFG-Sektion rein. | ||
| + | # (siehe Sektion über diesem Kommentar) | ||
| + | # | ||
| + | #echo " | ||
| + | #do | ||
| + | #echo " | ||
| + | #define service{ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | #} | ||
| + | #" | ||
| + | #done >> ${CFGDIR}/ | ||
| + | | ||
| + | | ||
| + | cat << EOF >> ${CFGDIR}/ | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | #define service{ | ||
| + | # use | ||
| + | # host_name | ||
| + | # service_description | ||
| + | # check_command | ||
| + | # contact_groups | ||
| + | #} | ||
| + | | ||
| + | #define service{ | ||
| + | # use | ||
| + | # host_name | ||
| + | # service_description | ||
| + | # check_command | ||
| + | # contact_groups | ||
| + | #} | ||
| + | | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | #define service{ | ||
| + | # use | ||
| + | # host_name | ||
| + | # service_description | ||
| + | # check_command | ||
| + | # contact_groups | ||
| + | # } | ||
| + | | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | contact_groups | ||
| + | } | ||
| + | | ||
| + | EOF | ||
| + | | ||
| + | / | ||
| + | |||
| + | |||
| + | ==== / | ||
| + | |||
| + | #!/bin/bash | ||
| + | | ||
| + | OPENQRM_SERVER_BASE_DIR=$(dirname $0)/ | ||
| + | OPENQRM_SERVER_BASE_DIR=$(pushd $OPENQRM_SERVER_BASE_DIR > /dev/null && echo $PWD && popd > /dev/null) | ||
| + | . $OPENQRM_SERVER_BASE_DIR/ | ||
| + | | ||
| + | if [ -f $OPENQRM_RESOURCE_PARAMETER_FILE ]; then | ||
| + | . $OPENQRM_RESOURCE_PARAMETER_FILE | ||
| + | OPENQRM_SERVER_IP=$resource_openqrmserver | ||
| + | elif [ -f $OPENQRM_SERVER_BASE_DIR/ | ||
| + | . $OPENQRM_SERVER_BASE_DIR/ | ||
| + | . $OPENQRM_SERVER_BASE_DIR/ | ||
| + | openqrm_server_get_config | ||
| + | OPENQRM_SERVER_IP=$OPENQRM_SERVER_IP_ADDRESS | ||
| + | resource_id=0 | ||
| + | resource_openqrmserver=$OPENQRM_SERVER_IP_ADDRESS | ||
| + | openqrm_web_protocol=$OPENQRM_WEB_PROTOCOL | ||
| + | fi | ||
| + | OPENQRM_POSTENCODE=" | ||
| + | | ||
| + | # let only root run this script | ||
| + | WHOAMI=`whoami` | ||
| + | if [ " | ||
| + | echo " | ||
| + | exit 6 | ||
| + | fi | ||
| + | | ||
| + | | ||
| + | OPENQRM_NRPE_INI=" | ||
| + | | ||
| + | if [ -r $OPENQRM_NRPE_INI ] ; then | ||
| + | . $OPENQRM_NRPE_INI | ||
| + | else | ||
| + | echo "Die Datei $OPENQRM_NRPE_INI fehlt, ABBRUCH!!!" | ||
| + | exit 1 | ||
| + | fi | ||
| + | | ||
| + | | ||
| + | mkdir -p /opt/etc | ||
| + | | ||
| + | # /dev/sda3 / 15% 10% check_root | ||
| + | # /dev/sda4 /home 15% 10% check_home | ||
| + | DYNAMISCHECHECKER=" | ||
| + | do | ||
| + | echo -n " | ||
| + | echo " | ||
| + | done)" | ||
| + | | ||
| + | | ||
| + | # | ||
| + | | ||
| + | cat << EOF > ${KONFIG} | ||
| + | ############################################################################# | ||
| + | # 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. | ||
| + | # located on the remote host that is running the NRPE daemon, not the host | ||
| + | # from which the check_nrpe client is being executed. | ||
| + | ############################################################################# | ||
| + | | ||
| + | | ||
| + | # LOG FACILITY | ||
| + | # The syslog facility that should be used for logging purposes. | ||
| + | | ||
| + | log_facility=daemon | ||
| + | | ||
| + | | ||
| + | | ||
| + | # PID FILE | ||
| + | # The name of the file in which the NRPE daemon should write it's process ID | ||
| + | # number. | ||
| + | # user and is running in standalone mode. | ||
| + | | ||
| + | pid_file=${PIDFILE} | ||
| + | | ||
| + | | ||
| + | | ||
| + | # PORT NUMBER | ||
| + | # Port number we should wait for connections on. | ||
| + | # NOTE: This must be a non-priviledged port (i.e. > 1024). | ||
| + | # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||
| + | | ||
| + | server_port=${SERVERPORT} | ||
| + | | ||
| + | | ||
| + | | ||
| + | # SERVER ADDRESS | ||
| + | # Address that nrpe should bind to in case there are more than one interface | ||
| + | # and you do not want nrpe to bind on all interfaces. | ||
| + | # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||
| + | | ||
| + | server_address=${IPADRESSE} | ||
| + | | ||
| + | | ||
| + | | ||
| + | # NRPE USER | ||
| + | # This determines the effective user that the NRPE daemon should run as. | ||
| + | # You can either supply a username or a UID. | ||
| + | # | ||
| + | # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||
| + | | ||
| + | nrpe_user=nagios | ||
| + | | ||
| + | | ||
| + | | ||
| + | # NRPE GROUP | ||
| + | # This determines the effective group that the NRPE daemon should run as. | ||
| + | # You can either supply a group name or a GID. | ||
| + | # | ||
| + | # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||
| + | | ||
| + | nrpe_group=nagios | ||
| + | | ||
| + | | ||
| + | | ||
| + | # ALLOWED HOST ADDRESSES | ||
| + | # This is an optional comma-delimited list of IP address or hostnames | ||
| + | # that are allowed to talk to the NRPE daemon. | ||
| + | # | ||
| + | # Note: The daemon only does rudimentary checking of the client' | ||
| + | # address. | ||
| + | # file to allow only the specified host to connect to the port | ||
| + | # you are running this daemon on. | ||
| + | # | ||
| + | # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||
| + | | ||
| + | allowed_hosts=${ALLOWEDHOSTS} | ||
| + | |||
| + | | ||
| + | | ||
| + | # COMMAND ARGUMENT PROCESSING | ||
| + | # This option determines whether or not the NRPE daemon will allow clients | ||
| + | # to specify arguments to commands that are executed. | ||
| + | # if the daemon was configured with the --enable-command-args configure script | ||
| + | # option. | ||
| + | # | ||
| + | # *** ENABLING THIS OPTION IS A SECURITY RISK! *** | ||
| + | # Read the SECURITY file for information on some of the security implications | ||
| + | # of enabling this variable. | ||
| + | # | ||
| + | # Values: 0=do not allow arguments, 1=allow command arguments | ||
| + | | ||
| + | dont_blame_nrpe=1 | ||
| + | | ||
| + | | ||
| + | | ||
| + | # COMMAND PREFIX | ||
| + | # This option allows you to prefix all commands with a user-defined string. | ||
| + | # A space is automatically added between the specified prefix string and the | ||
| + | # command line from the command definition. | ||
| + | # | ||
| + | # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! *** | ||
| + | # Usage scenario: | ||
| + | # Execute restricted commmands using sudo. For this to work, you need to add | ||
| + | # the nagios user to your / | ||
| + | # execution of the plugins from might be: | ||
| + | # | ||
| + | # nagios | ||
| + | # | ||
| + | # This lets the nagios user run all commands in that directory (and only them) | ||
| + | # without asking for a password. | ||
| + | # random users write access to that directory or its contents! | ||
| + | | ||
| + | # command_prefix=/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | # DEBUGGING OPTION | ||
| + | # This option determines whether or not debugging messages are logged to the | ||
| + | # syslog facility. | ||
| + | # Values: 0=debugging off, 1=debugging on | ||
| + | | ||
| + | debug=0 | ||
| + | | ||
| + | | ||
| + | | ||
| + | # COMMAND TIMEOUT | ||
| + | # This specifies the maximum number of seconds that the NRPE daemon will | ||
| + | # allow plugins to finish executing before killing them off. | ||
| + | | ||
| + | command_timeout=60 | ||
| + | | ||
| + | | ||
| + | | ||
| + | # CONNECTION TIMEOUT | ||
| + | # This specifies the maximum number of seconds that the NRPE daemon will | ||
| + | # wait for a connection to be established before exiting. This is sometimes | ||
| + | # seen where a network problem stops the SSL being established even though | ||
| + | # all network sessions are connected. This causes the nrpe daemons to | ||
| + | # accumulate, eating system resources. Do not set this too low. | ||
| + | | ||
| + | connection_timeout=300 | ||
| + | | ||
| + | | ||
| + | | ||
| + | # WEEK RANDOM SEED OPTION | ||
| + | # This directive allows you to use SSL even if your system does not have | ||
| + | # a /dev/random or / | ||
| + | # were not applied). The random number generator will be seeded from a file | ||
| + | # which is either a file pointed to by the environment valiable $RANDFILE | ||
| + | # or $HOME/.rnd. If neither exists, the pseudo random number generator will | ||
| + | # be initialized and a warning will be issued. | ||
| + | # Values: 0=only seed from / | ||
| + | | ||
| + | # | ||
| + | | ||
| + | | ||
| + | | ||
| + | # INCLUDE CONFIG FILE | ||
| + | # This directive allows you to include definitions from an external config file. | ||
| + | | ||
| + | # | ||
| + | | ||
| + | | ||
| + | | ||
| + | # INCLUDE CONFIG DIRECTORY | ||
| + | # This directive allows you to include definitions from config files (with a | ||
| + | # .cfg extension) in one or more directories (with recursion). | ||
| + | | ||
| + | # | ||
| + | # | ||
| + | | ||
| + | | ||
| + | | ||
| + | # COMMAND DEFINITIONS | ||
| + | # Command definitions that this daemon will run. Definitions | ||
| + | # are in the following format: | ||
| + | # | ||
| + | # command[< | ||
| + | # | ||
| + | # When the daemon receives a request to return the results of < | ||
| + | # it will execute the command specified by the < | ||
| + | # | ||
| + | # Unlike Nagios, the command line cannot contain macros - it must be | ||
| + | # typed exactly as it should be executed. | ||
| + | # | ||
| + | # Note: Any plugins that are used in the command lines must reside | ||
| + | # on the machine that this daemon is running on! The examples below | ||
| + | # assume that you have plugins installed in a ${PREFIX}/ | ||
| + | # directory. | ||
| + | # to match the argument format the plugins expect. | ||
| + | # examples only! | ||
| + | | ||
| + | | ||
| + | # The following examples use hardcoded command arguments... | ||
| + | | ||
| + | command[check_users]=${PREFIX}/ | ||
| + | command[check_load]=${PREFIX}/ | ||
| + | EOF | ||
| + | | ||
| + | # | ||
| + | | ||
| + | echo " | ||
| + | | ||
| + | # | ||
| + | | ||
| + | cat << EOF >> ${KONFIG} | ||
| + | command[check_swap]=${PREFIX}/ | ||
| + | command[check_zombie_procs]=${PREFIX}/ | ||
| + | command[check_total_procs]=${PREFIX}/ | ||
| + | command[check_ntp]=${PREFIX}/ | ||
| + | # | ||
| + | command[check_procs_www]=${PREFIX}/ | ||
| + | | ||
| + | | ||
| + | # The following examples allow user-supplied arguments and can | ||
| + | # only be used if the NRPE daemon was compiled with support for | ||
| + | # command arguments *AND* the dont_blame_nrpe directive in this | ||
| + | # config file is set to ' | ||
| + | # make sure you read the SECURITY file before doing this. | ||
| + | | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | command[check_mailq_postfix]=${PREFIX}/ | ||
| + | command[check_mailq_nullmailer]=${PREFIX}/ | ||
| + | EOF | ||
| + | | ||
| + | # | ||
| + | |||
| + | |||
| + | ==== / | ||
| + | |||
| + | PREFIX="/ | ||
| + | CFGDIR="/ | ||
| + | KONFIG=" | ||
| + | PIDFILE="/ | ||
| + | | ||
| + | HNAME=" | ||
| + | IPADRESSE=" | ||
| + | | ||
| + | SERVERPORT=" | ||
| + | ALLOWEDHOSTS=" | ||
| + | CHECK_USERS_W=" | ||
| + | CHECK_USERS_C=" | ||
| + | CHECK_LOAD_W=" | ||
| + | CHECK_LOAD_C=" | ||
| + | CHECK_DISK_W=" | ||
| + | CHECK_DISK_C=" | ||
| + | CHECK_SWAP_W=" | ||
| + | CHECK_SWAP_C=" | ||
| + | CHECK_ZOMBIE_PROCS_W=" | ||
| + | CHECK_ZOMBIE_PROCS_C=" | ||
| + | CHECK_ZOMBIE_PROCS_S=" | ||
| + | CHECK_TOTAL_PROCS_W=" | ||
| + | CHECK_TOTAL_PROCS_C=" | ||
| + | # | ||
| + | CHECK_NTP_H=" | ||
| + | CHECK_NTP_W=" | ||
| + | CHECK_NTP_C=" | ||
| + | CHECK_MYSQL_PERF_H=" | ||
| + | CHECK_MYSQL_PERF_PORT=" | ||
| + | CHECK_MYSQL_PERF_USR=" | ||
| + | CHECK_MYSQL_PERF_P="" | ||
| + | CHECK_MYSQL_PERF_W=" | ||
| + | CHECK_MYSQL_PERF_C=" | ||
| + | CHECK_MYSQL_PERF_M=" | ||
| + | | ||
| + | USETEMPLATE=" | ||
| + | CONTACTGROUPS=" | ||
| + | | ||
| + | TIMESERVER=" | ||
| + | |||
| + | |||
| + | ==== Plugin für den Client verpacken ==== | ||
| + | |||
| + | Das Archiv, welches bei jedem Client-Start gesaugt und ausgepackt wird, heißt **/ | ||
| + | Hier liegt normalerweise nur das " | ||
| + | |||
| + | #!/bin/sh | ||
| + | | ||
| + | cd /opt/bin/ || exit 1 | ||
| + | cd /opt/ | ||
| + | tar cvzf boot-service-nagios3.tgz bin/ | ||
| + | |||
| + | |||
| + | ===== Client (VM) ===== | ||
| + | |||
| + | # aptitude -y install nagios-nrpe-server nagios-plugins-extra | ||
| + | |||
| + | Der Rest wird vom openQRM-Clienten erledigt. | ||
| + | |||
