Table des matières

NRPE

- check_ms_win_task

 /usr/lib64/nagios/plugins/check_centreon_nrpe3 -2 -n -t 60 -H 192.168.212.225 -p 5666 -c check_ms_win_tasks -a '-IF A138 -IT Interface'

check_file_date_by_ssh

 /centreon_linux_ssh.pl --plugin=os::linux::local::plugin --mode=files-date --hostname=192.168.52.37 --ssh-backend='libssh' --ssh-username=opteama  --ssh-password=PASS --files='/mirror/var/ALL'

NetAPP

- Agregate

/usr/lib/centreon/plugins/centreon_netapp_ontap_oncommandapi.pl --plugin=storage::netapp::ontap::oncommandapi::plugin --mode=aggregate-usage --hostname=p-ntap-clu-001.infra.aerolia.corp --username=centreon --password='PASS' --http-backend=curl --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" --port=443

- Volume

 /usr/lib/centreon/plugins/centreon_netapp_ontap_oncommandapi.pl --plugin=storage::netapp::ontap::oncommandapi::plugin --mode=volume-usage --hostname=p-ntap-clu-001.infra.aerolia.corp --url-path=/api/storage/ --username='centreon' --password='PASS' --http-backend=curl --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" --port=443

ESXI

 /usr/lib/centreon/plugins/centreon_vmware_connector_client.pl --plugin=apps::vmware::connector::plugin --mode=health-host --connector-hostname=localhost --vsphere-address=P-VIEW-ESXI-009.aerolia-vdi.corp --vsphere-username='sacentmoni' --vsphere-password='PASS'
 /usr/lib/centreon/plugins/centreon_vmware_connector_client.pl --plugin=apps::vmware::connector::plugin --mode=health-host --connector-hostname=localhost --vsphere-address=192.168.193.9 --vsphere-username='sacentmoni' --vsphere-password='PASS'
 /usr/lib/centreon/plugins//centreon_vmware_connector_client.pl --plugin=apps::vmware::connector::plugin --mode=cpu-host --custommode=connector --connector-hostname='localhost' --connector-port='5700' --container='default'  --esx-hostname='p-vmw-esxi-013.infra.aerolia.corp' --unknown-status='%{status} !~ /^connected$/i' --warning-status='' --critical-status='' --warning-total-cpu='' --critical-total-cpu='' --warning-total-cpu-mhz='' --critical-total-cpu-mhz='' --warning-cpu='' --critical-cpu=''
 /usr/lib/centreon/plugins/centreon_vmware_connector_client.pl --plugin=apps::vmware::connector::plugin --mode=cpu-host --connector-hostname=localhost --vsphere-address=192.168.193.9 --vsphere-username='sacentmoni' --vsphere-password='PASS'

File-Date-Linux

 /centreon_linux_ssh.pl --plugin=os::linux::local::plugin --mode=files-date --hostname=192.168.52.37 --ssh-backend='libssh' --ssh-username=opteama  --ssh-password=PASS --files='/mirror/var/ALL'

check_simple_oid

 $USER1$/check_simple_oid.sh $_HOSTSNMPCOMMUNITY$ $HOSTADDRESS$ '$_SERVICEOID$' '$_SERVICEWARNING$' '$_SERVICECRITICAL$'

check_simple_oid_perfo

 $USER1$/check_simple_oid_perfo.sh $_HOSTSNMPCOMMUNITY$ $HOSTADDRESS$ '$_SERVICEOID$' '$_SERVICEWARNING$' '$_SERVICECRITICAL$' '$_SERVICEMINGRAPH$' '$_SERVICEMAXGRAPH$'

Check-SSH-Connection

 $CENTREONPLUGINS$centreon_protocol_ssh.pl --plugin=apps::protocols::ssh::plugin --mode=login --hostname=$_SERVICEHOSTNAME$ --ssh-username=$_SERVICEUSER$ --ssh-password=$_SERVICEPASSWORD$ --ssh-identity=$_SERVICEKEYSSH$ $_SERVICEEXTRAPOLATION$

base_centreon_ping-reverse

 $USER1$/negate -s $USER1$/check_icmp -H $HOSTADDRESS$ -n $_SERVICEPACKETNUMBER$ -w $_SERVICEWARNING$ -c $_SERVICECRITICAL$ $_SERVICEEXTRAOPTIONS$

base_host_alive-reverse

 $USER1$/negate -s $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1

HTTP-Response-Time_Via-Proxy

 $CENTREONPLUGINS$/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=response --hostname=$ARG1$ --proto='$ARG2$' --port='$ARG3$' --proxyurl=connect://'$_SERVICEUSERNAME$':'$_SERVICEPASSWORD$'@'$ARG4$':3128 --http-backend=curl  --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" $_SERVICEEXTRAOPTIONS$
 /usr/lib/centreon/plugins/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=response --hostname=www.google.fr --proto=https --port=443 --proxyurl="http://MYCORP\\TASUPPROXY01:PASS@192.168.5.28:3128" --http-backend=curl  --curl-opt="CURLOPT_SSL_VERIFYPEER => 0"

HTTP-Response-Time

 $CENTREONPLUGINS$/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=response --hostname=$ARG1$ --proto='http' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$

Check_Http-with-Crédentials

 /usr/lib/centreon/plugins/centreon_protocol_http.pl --mode=expected-content --hostname=slm.vigie.aerolia.corp --proto=https --credentials --username='PASS' --password='PASS' --urlpath='/projects/supervision?jump=welcome' --expected-string='my-account' --http-backend=curl --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" –basic

HTTP-Expected-Content-custom

 EXTRAOPTIONS: --proto=https --credentials --http-backend=curl --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" --basic

-X509-Expiration-With-Alt_Name

 $CENTREONPLUGINS$/centreon_protocol_x509.pl --plugin=apps::protocols::x509::plugin --mode=certificate --hostname=$_SERVICEHOSTNAME$ --port=$_SERVICEPORT$ --warning-status='%{expiration} <$_SERVICEWARNINGSTATUS-DAY$' --critical-status='%{expiration} < $_SERVICECRITICALSTATUS-DAY$ || %{subject} !~ /$_SERVICESUBJECT$/ || %{alt_subjects} !~ /$_SERVICEALT-SUBJECT-1$/ || %{alt_subjects} !~ /$_SERVICEALT-SUBJECT-2$/ || %{alt_subjects} !~ /$_SERVICEALT-SUBJECT-3$/' $_SERVICEEXTRAOPTIONS$

X509-Expiration-Without-Alt_Name

 $CENTREONPLUGINS$/centreon_protocol_x509.pl --plugin=apps::protocols::x509::plugin --mode=certificate --hostname=$ARG1$ --port=$ARG2$ --warning-status='$_SERVICEWARNINGSTATUS$' --critical-status='$_SERVICECRITICALSTATUS$' $_SERVICEEXTRAOPTIONS$

X509-Expiration_Via-Proxy

 $CENTREONPLUGINS$/centreon_protocol_x509.pl --plugin=apps::protocols::x509::plugin --mode=certificate --custommode=https --hostname=$_SERVICEURL$ --port='$_SERVICEPORT$' --proxyurl='connect://'$_SERVICEPROXY-USER$':'$_SERVICEPROXY-PASSWORD$'@'$_SERVICEPROXY-URL$':$_SERVICEPROXY-PORT$' --insecure