############################################################################# #MAR042013 # NRPE Config File # Written by: YSA # # Last Modified: 04/Sep/2003 ############################################################################# # 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=5678 # 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=##serverip## # ALLOWED HOST ADDRESSES # This is a comma-delimited list of IP address of hosts that are allowed # to talk to the NRPE daemon. # # NOTE: The daemon only does rudimentary checking of the client's IP # address. I would highly recommend adding entries in your # /etc/hosts.allow 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=127.0.0.1,23.111.181.250 # 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 # COMMAND ARGUMENT PROCESSING # This option determines whether or not the NRPE daemon will allow clients # to specify arguments to commands that are executed. This option only works # 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 # 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=300 # INCLUDE CONFIG FILE # This directive allows you to include definitions from an external config file. #include= # INCLUDE CONFIG DIRECTORY # This directive allows you to include definitions from config files (with a # .cfg extension) in one or more directories (with recursion). #include_dir= #include_dir= # 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 argument. # # 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 /usr/local/nagios/libexec # directory. Also note that you will have to modify the definitions below # to match the argument format the plugins expect. Remember, these are # examples only! # The following examples use hardcoded command arguments... #command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 #command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 #command[check_hdb6]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb6 #command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z #command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 # 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 '1'... command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ command[check_proclist]=/usr/local/nagios/libexec/check_proclist -l $ARG1$ command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ command[check_fs]=/usr/bin/sudo /usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -x $ARG3$ -m -e command[check_log]=/usr/bin/sudo /usr/local/nagios/libexec/check_logbcnu -c /usr/local/nagios/etc/logpatterns command[check_root_login]=/usr/local/nagios/libexec/check_logbcnu -c /usr/local/nagios/etc/ssh_login_patterns command[check_uptime]=/usr/local/nagios/libexec/check_uptime -m $ARG1$ command[check_mqueue]=/usr/bin/sudo /usr/local/nagios/libexec/check_mqueue -w $ARG1$ -c $ARG2$ --test $ARG3$ -a $ARG4$ command[check_delta]=/usr/local/nagios/libexec/check_delta -H `hostname` -i $ARG1$ -b $ARG2$ -r $ARG3$ -w $ARG4$ -c $ARG5$ command[check_traffic]=/usr/local/nagios/libexec/check_traffic -H `hostname` -w $ARG1$ -c $ARG2$ -b $ARG3$ -I $ARG4$ #command[check_raid]=/usr/local/nagios/libexec/check_raid command[check_3ware]=/usr/bin/sudo /usr/local/nagios/libexec/check_3ware command[check_3ware_custom]=/usr/bin/sudo /usr/local/nagios/libexec/check_3ware -C $ARG1$ -U $ARG2$ command[check_common]=/usr/bin/sudo /usr/local/nagios/libexec/check_common $ARG1$ $ARG2$ command[check_cpbackup]=/usr/bin/sudo /usr/local/nagios/libexec/check_cpbackup command[check_megarc]=/usr/bin/sudo /usr/local/nagios/libexec/check_megarc command[check_megaraid_sas]=/usr/bin/sudo /usr/local/nagios/libexec/check_megaraid_sas -o 999999 # For MonitoringTool only, don't touch plz command[check_installed]=/usr/local/nagios/libexec/check_installed $ARG1$ command[check_afacli]=/usr/local/nagios/libexec/check_afacli command[check_firewall]=/usr/bin/sudo /usr/local/nagios/libexec/check_fw command[check_hd_dma_rw]=/usr/bin/sudo /usr/local/nagios/libexec/check_hd_dma_rw command[check_swap]=/usr/local/nagios/libexec/check_swap_sl -w $ARG1$ -c $ARG2$ command[check_bad_domain]=/usr/local/nagios/libexec/check_bad_domain command[check_large_files]=/usr/bin/sudo /usr/local/nagios/libexec/check_large_files -w $ARG1$ -c $ARG2$ -d "$ARG3$ $ARG4$" command[check_fstab]=/usr/local/nagios/libexec/check_mountpoints command[check_spamass]=/usr/local/nagios/libexec/check_spamass command[check_rdns]=/usr/local/nagios/libexec/check_rdns command[check_updaterdb]=/usr/local/nagios/libexec/check_file_age -w 93600 -c 93800 -W 7 -C 6 -f /usr/local/nagios/var/updaterdb command[check_updatesdb]=/usr/local/nagios/libexec/check_file_age -w 648300 -c 649300 -W 7 -C 6 -f /usr/local/nagios/var/updatesdb command[check_areca_raid]=/usr/bin/sudo /usr/local/nagios/libexec/check_areca command[check_localr1soft]=/usr/local/nagios/libexec/check_tcp -H localhost -p 1168 command[check_remoter1soft]=/usr/local/nagios/libexec/check_tcp -H localhost -p 1167 command[check_r1soft_log]=/usr/bin/sudo /usr/local/nagios/libexec/check_logbcnu -c /usr/local/nagios/etc/r1softlog_patterns command[check_areca]=/usr/bin/sudo /usr/local/nagios/libexec/check_areca command[check_kernel_version]=/usr/bin/sudo /usr/local/nagios/libexec/check_kernel_version -s -m $ARG1$ command[check_slave]=/usr/local/nagios/libexec/check_slave -m $ARG1$ -s $ARG2$ -u $ARG3$ -p $ARG4$ command[check_adaptec]=/usr/bin/sudo /usr/local/nagios/libexec/check_adaptec command[check_lsi]=/usr/bin/sudo /usr/local/nagios/libexec/check_mpt command[check_sas2]=/usr/local/nagios/libexec/sas2ircu-status --nagios command[check_home_drbd]=/usr/local/nagios/libexec/check_drbd -d 0 command[check_mysql_drbd]=/usr/local/nagios/libexec/check_drbd -d 1 command[check_cluster]=/usr/bin/sudo /usr/sbin/dyn-control -s command[check_ipaliases]=/usr/local/nagios/libexec/check_ips_ysa #cliff start here command[check_mount]=/usr/lib64/nagios/plugins/check_mount -f /etc/fstab command[check_var_log]=/usr/lib64/nagios/plugins/check_large_files -w 700000k -c 1000000k -d /var/log #command[check_var_log]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_varlog command[check_domlogs]=/usr/lib64/nagios/plugins/check_large_files -w 900000k -c 1100000k -d /usr/local/apache/domlogs command[check_php_apache]=/usr/lib64/nagios/plugins/check_php_apache command[check_kernelnew]=/usr/lib64/nagios/plugins/check_kernelnew command[check_all_dnsbl]=/usr/lib64/nagios/plugins/check_all_dnsbl #command[check_heavy_procs]=/usr/lib64/nagios/plugins/check_heavy_procs -t $ARG1$ -a $ARG2$ -c $ARG3$ -x $ARG4$ command[check_modsec]=/usr/lib64/nagios/plugins/check_modsec command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 350 -c 500 command[check_mysql_health_conn]=/usr/lib64/nagios/plugins/check_mysql_health --hostname localhost --username nagiosu --password d3fault --mode connection-time command[check_mysql_health_uptime]=/usr/lib64/nagios/plugins/check_mysql_health --hostname localhost --username nagiosu --password d3fault --mode uptime command[check_mysql_threads]=/usr/lib64/nagios/plugins/check_mysql_health --hostname localhost --username nagiosu --password d3fault --mode threads-connected command[check_mysql_slqr]=/usr/lib64/nagios/plugins/check_mysql_health --hostname localhost --username nagiosu --password d3fault --mode slow-queries command[check_mysql_lnpr]=/usr/lib64/nagios/plugins/check_mysql_health --hostname localhost --username nagiosu --password d3fault --mode long-running-procs command[check_mysql_tmptbl]=/usr/lib64/nagios/plugins/check_mysql_health --hostname localhost --username nagiosu --password d3fault --mode tmp-disk-tables command[check_puppet]=/usr/lib64/nagios/plugins/check_puppet command[check_spamass]=/usr/lib64/nagios/plugins/check_spamass command[cpanelversion]=/usr/lib64/nagios/plugins/cpanelversion command[dovecotconn]=/usr/lib64/nagios/plugins/dovecotconn command[pop3conn]=/usr/lib64/nagios/plugins/pop3conn command[livecd]=/usr/lib64/nagios/plugins/check_livecd command[check_csf]=/usr/lib64/nagios/plugins/check_csf command[check_cdrom]=/usr/lib64/nagios/plugins/check_cdrom command[check_vebackup]=/usr/lib64/nagios/plugins/check_vebackup command[check_df]=/usr/lib64/nagios/plugins/check_df command[veback_mount]=/usr/lib64/nagios/plugins/veback_mount command[check_nummails]=/usr/lib64/nagios/plugins/check_nummails.sh command[check_raidstat]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_raidstat command[check_traffin]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_traffin.sh command[check_traffout]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_traffout.sh command[check_up]=/usr/lib64/nagios/plugins/check_up command[backupcheck]=/usr/bin/sudo /usr/lib64/nagios/plugins/backupcheck #command[check_cs_bl]=/usr/lib64/nagios/plugins/check_cs_bl command[check_revdns]=/usr/lib64/nagios/plugins/check_rev_dns command[check_crond]=/usr/lib64/nagios/plugins/croncheck command[check_bashusers]=/usr/lib64/nagios/plugins/check_userswithbash #command[check_r1soft]=/usr/lib64/nagios/plugins/check_r1softwarebackup command[check_longps]=/usr/lib64/nagios/plugins/check_process_long command[check_ports]=/usr/lib64/nagios/plugins/check_unwantedopenports command[check_backup]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_backup command[check_cdpagent]=/usr/lib64/nagios/plugins/check_cdpagent command[check_eximstats]=/usr/lib64/nagios/plugins/check_eximstats command[check_puppetcrt]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_puppcert command[check_f12login]=/usr/lib64/nagios/plugins/check_f12login command[check_ssh_ver]=/usr/lib64/nagios/plugins/check_ssh_ver command[check_roothash]=/usr/lib64/nagios/plugins/check_roothash command[check_rblcheck]=/usr/lib64/nagios/plugins/check_RBL command[check_sshsec]=/usr/lib64/nagios/plugins/check_sshsec command[sshd_rootcheck]=/usr/lib64/nagios/plugins/sshd_rootcheck command[check_ddospl]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_ddos.pl -w 100 -c 150 command[bin_hash_check]=/usr/lib64/nagios/plugins/bin_hash_check command[check_load]=/usr/lib64/nagios/plugins/check_load -w 5,10,15 -c 20,25,30 command[check_load15]=/usr/lib64/nagios/plugins/check_load -w 15,20,25 -c 26,30,35 command[local_mail_count]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_local_mail_count #command[modsec_maldet]=/usr/bin/sudo /usr/lib64/nagios/plugins/modsec_maldet command[pure-check]=/usr/bin/sudo /usr/lib64/nagios/plugins/pure-check command[check_fserror]=/usr/lib64/nagios/plugins/check_fserror command[check_mailqueue]=/usr/lib64/nagios/plugins/check_mailqueue command[check_suspicious]=/usr/lib64/nagios/plugins/check_suspicious command[check_buagent]=/usr/lib64/nagios/plugins/check_buagent command[check_csf_score]=/bin/sudo /usr/lib64/nagios/plugins/check_csf_score command[check_tmp]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -p $ARG2$ command[check_permitroot]=/usr/lib64/nagios/plugins/check_permitroot command[check_ftpback]=/usr/lib64/nagios/plugins/check_ftpback command[check_fpm]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_php_fpm