Outils pour utilisateurs

Outils du site


Writing /app/www/public/data/meta/nrpe/commandes.meta failed
nrpe:commandes

Ceci est une ancienne révision du document !


WIndows

/usr/lib64/nagios/plugins/check_centreon_nrpe3 -t 60 -H IP -p 5666 -c check_drivesize  -a "drive=C" 'warning=used > 80%' 'critical=used > 90%'
/usr/lib64/nagios/plugins/check_centreon_nrpe3 -t 60 -H IP -p 5666 -c check_memory -a 'warning=used > 80%' 'critical=used > 90%'
/usr/lib64/nagios/plugins/check_centreon_nrpe3 -t 60 -H IP -p 5666 -c check_cpu -a 'warning=load > 80%' 'critical=load > 90%'
/usr/lib64/nagios/plugins/check_centreon_nrpe3 -t 60 -H IP -p 5666 -c check_uptime -a  'warning=uptime > 100d' 'critical=uptime > 200d'
/usr/usr/lib64/nagios/plugins/check_centreon_nrpe3 -t 60 -H 192.168.228.16 -p 5666 -c check_service -a  "filter=name like 'mpssvc'" "crit=state = 'stopped'" warn=none

Linux

command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
#command[check_users]=/usr/lib/nagios/plugins/check_users $ARG1$
#command[check_load]=/usr/lib/nagios/plugins/check_load $ARG1$
#command[check_disk]=/usr/lib/nagios/plugins/check_disk $ARG1$
#command[check_swap]=/usr/lib/nagios/plugins/check_swap $ARG1$
#command[check_cpu_stats]=/usr/lib/nagios/plugins/check_cpu_stats.sh $ARG1$
#command[check_mem]=/usr/lib/nagios/plugins/custom_check_mem -n $ARG1$
### GENERIC SERVICES ###
#command[check_init_service]=sudo /usr/lib/nagios/plugins/check_init_service $ARG1$
#command[check_services]=/usr/lib/nagios/plugins/check_services -p $ARG1$
### SYSTEM UPDATES ###
#command[check_yum]=/usr/lib/nagios/plugins/check_yum
#command[check_apt]=/usr/lib/nagios/plugins/check_apt

### PROCESSES ###
#command[check_all_procs]=/usr/lib/nagios/plugins/custom_check_procs
#command[check_procs]=/usr/lib/nagios/plugins/check_procs $ARG1$

### OPEN FILES ###
#command[check_open_files]=/usr/lib/nagios/plugins/check_open_files.pl $ARG1$

### NETWORK CONNECTIONS ###
#command[check_netstat]=/usr/lib/nagios/plugins/check_netstat.pl -p $ARG1$ $ARG2$

### ASTERISK ###
#command[check_asterisk]=/usr/lib/nagios/plugins/check_asterisk.pl $ARG1$
#command[check_sip]=/usr/lib/nagios/plugins/check_sip $ARG1$
#command[check_asterisk_sip_peers]=sudo /usr/lib/nagios/plugins/check_asterisk_sip_peers.sh $ARG1$
#command[check_asterisk_version]=/usr/lib/nagios/plugins/nagisk.pl -c version
#command[check_asterisk_peers]=/usr/lib/nagios/plugins/nagisk.pl -c peers
#command[check_asterisk_channels]=/usr/lib/nagios/plugins/nagisk.pl -c channels
#command[check_asterisk_zaptel]=/usr/lib/nagios/plugins/nagisk.pl -c zaptel
#command[check_asterisk_span]=/usr/lib/nagios/plugins/nagisk.pl -c span -s 1
# SQUID
# - Retourne le nombre de connexions
UserParameter=squid.cnxnmbr,netstat -an|grep ":3128"|grep ESTABLISHED|wc -l

# Apache2
# - Retourne le nombre de connexions
UserParameter=apache2.nbcnxhttp,netstat -an|grep ":80 "|grep ESTABLISHED|wc -l
UserParameter=apache2.nbcnxhttps,netstat -an|grep ":443 "|grep ESTABLISHED|wc -l

# SMTP
# - Retourne le nombre de connexions
UserParameter=smtp.cnxnmbr,netstat -an|grep ":25 "|grep ESTABLISHED|wc -l

# Nginx
# - Retourne le nombre de connexions
UserParameter=nginx.nbcnxhttp,netstat -an|grep ":80 "|grep ESTABLISHED|wc -l
UserParameter=nginx.nbcnxhttps,netstat -an|grep ":443 "|grep ESTABLISHED|wc -l
UserParameter=nginx.nbcnxpops,netstat -an|grep ":995 "|grep ESTABLISHED|wc -l
UserParameter=nginx.nbcnximaps,netstat -an|grep ":993 "|grep ESTABLISHED|wc -l

# - Retourne le nombre de ports en écoute
UserParameter=nginx.listenhttp,netstat -an|grep ":80 "|grep LISTEN|wc -l
UserParameter=nginx.listenhttps,netstat -an|grep ":443 "|grep LISTEN|wc -l
UserParameter=nginx.listenpops,netstat -an|grep ":995 "|grep LISTEN|wc -l
UserParameter=nginx.listenimaps,netstat -an|grep ":993 "|grep LISTEN|wc -l

# - Retourne le nombres de MAJ en attentes
# - Avant Debian 9
UserParameter=apt.upgradable,aptitude search '~U' | wc -l
# - Apres Debian 9
UserParameter=apt.upgradable,yum list updates  2> /dev/null|tail -n +7|wc -l
# - CentOS
UserParameter=apt.upgradable,apt list --upgradeable  2> /dev/null|tail -n +2|wc -l
nrpe/commandes.1688561596.txt.gz · Dernière modification : 2024/12/27 06:28 (modification externe)