###################################################################
#                                                                 #
#                       GENERATED BY CENTREON                     #
#                                                                 #
#               Developed by :                                    #
#                   - Julien Mathis                               #
#                   - Romain Le Merlus                            #
#                                                                 #
#                           www.centreon.com                      #
#                For information : contact@centreon.com           #
###################################################################
#                                                                 #
#         Last modification 2024-11-22 16:41                      #
#         By admin                                                #
#                                                                 #
###################################################################

define command {
    command_name                   base_host_alive 
    command_line                   $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 
}

define command {
    command_name                   OS-Linux-SNMP-Process-Generic 
    command_line                   $CENTREONPLUGINS$/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=processcount --hostname=$HOSTADDRESS$ --snmp-version='$_HOSTSNMPVERSION$' --snmp-community='$_HOSTSNMPCOMMUNITY$' $_HOSTSNMPEXTRAOPTIONS$ --process-name='$_SERVICEPROCESSNAME$' --process-path='$_SERVICEPROCESSPATH$' --process-args='$_SERVICEPROCESSARGS$' --regexp-name --regexp-path --regexp-args --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   base_centreon_ping 
    command_line                   $USER1$/check_icmp -H $HOSTADDRESS$ -n $_SERVICEPACKETNUMBER$ -w $_SERVICEWARNING$ -c $_SERVICECRITICAL$ $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   OS-Linux-SNMP-Swap 
    command_line                   $CENTREONPLUGINS$/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=swap --hostname=$HOSTADDRESS$ --snmp-version='$_HOSTSNMPVERSION$' --snmp-community='$_HOSTSNMPCOMMUNITY$' $_HOSTSNMPEXTRAOPTIONS$ --warning-usage-prct='$_SERVICEWARNING$' --critical-usage-prct='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   OS-Linux-SNMP-Memory 
    command_line                   $CENTREONPLUGINS$/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=memory --hostname=$HOSTADDRESS$ --snmp-version='$_HOSTSNMPVERSION$' --snmp-community='$_HOSTSNMPCOMMUNITY$' $_HOSTSNMPEXTRAOPTIONS$ --warning-usage='$_SERVICEWARNING$' --critical-usage='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   OS-Linux-SNMP-Load 
    command_line                   $CENTREONPLUGINS$/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=load --hostname=$HOSTADDRESS$ --snmp-version='$_HOSTSNMPVERSION$' --snmp-community='$_HOSTSNMPCOMMUNITY$' $_HOSTSNMPEXTRAOPTIONS$ --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   OS-Linux-SNMP-Cpu 
    command_line                   $CENTREONPLUGINS$/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=cpu --hostname=$HOSTADDRESS$ --snmp-version='$_HOSTSNMPVERSION$' --snmp-community='$_HOSTSNMPCOMMUNITY$' $_HOSTSNMPEXTRAOPTIONS$ --warning-average='$_SERVICEWARNING$'  --critical-average='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   App-Centreon-MySQL-Partitioning 
    command_line                   $CENTREONPLUGINS$/centreon_centreon_database.pl --plugin=database::mysql::plugin --dyn-mode=apps::centreon::sql::mode::partitioning --host='$HOSTADDRESS$' --username='$_HOSTMYSQLUSERNAME$' --password='$_HOSTMYSQLPASSWORD$' --port='$_HOSTMYSQLPORT$' --tablename='$_SERVICETABLENAME1$' --tablename='$_SERVICETABLENAME2$' --tablename='$_SERVICETABLENAME3$' --tablename='$_SERVICETABLENAME4$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' 
}

define command {
    command_name                   App-DB-MySQL 
    command_line                   $CENTREONPLUGINS$/centreon_mysql.pl --plugin=database::mysql::plugin --host=$HOSTADDRESS$ --username='$_HOSTMYSQLUSERNAME$' --password='$_HOSTMYSQLPASSWORD$' --port='$_HOSTMYSQLPORT$' --mode='$_SERVICEMODE$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   App-DB-MySQL-Queries 
    command_line                   $CENTREONPLUGINS$/centreon_mysql.pl --plugin=database::mysql::plugin  --host=$HOSTADDRESS$ --username='$_HOSTMYSQLUSERNAME$' --password='$_HOSTMYSQLPASSWORD$' --port='$_HOSTMYSQLPORT$' --mode=queries --warning-total='$_SERVICEWARNING$' --critical-total='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   App-DB-MySQL-Database-Size 
    command_line                   $CENTREONPLUGINS$/centreon_mysql.pl --plugin=database::mysql::plugin  --host=$HOSTADDRESS$ --username='$_HOSTMYSQLUSERNAME$' --password='$_HOSTMYSQLPASSWORD$' --port='$_HOSTMYSQLPORT$' --mode=databases-size --filter-database='$_SERVICEFILTERDATABASE$' --filter-perfdata='$_SERVICEFILTERPERFDATA$' --warning-table-usage='$_SERVICEWARNINGTABLEUSAGE$' --critical-table-usage='$_SERVICECRITICALTABLEUSAGE$' --warning-table-free='$_SERVICEWARNINGTABLEFREE$' --critical-table-free='$_SERVICECRITICALTABLEFREE$' --warning-table-frag='$_SERVICEWARNINGTABLEFRAG$' --critical-table-frag='$_SERVICECRITICALTABLEFRAG$' --warning-db-usage='$_SERVICEWARNINGDBUSAGE$' --critical-db-usage='$_SERVICECRITICALDBUSAGE$' --warning-db-free='$_SERVICEWARNINGDBFREE$' --critical-db-free='$_SERVICECRITICALDBFREE$' --warning-total-usage='$_SERVICEWARNINGTOTALUSAGE$' --critical-total-usage='$_SERVICECRITICALTOTALUSAGE$' --warning-total-free='$_SERVICEWARNINGTOTALFREE$' --critical-total-free='$_SERVICECRITICALTOTALFREE$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   App-DB-MySQL-Threads-Connected 
    command_line                   $CENTREONPLUGINS$/centreon_mysql.pl --plugin=database::mysql::plugin  --host=$HOSTADDRESS$ --username='$_HOSTMYSQLUSERNAME$' --password='$_HOSTMYSQLPASSWORD$' --port='$_HOSTMYSQLPORT$' --mode=threads-connected --warning-usage='$_SERVICEWARNING$' --critical-usage='$_SERVICECRITICAL$' --warning-usage-prct='$_SERVICEWARNINGUSAGEPRCT$' --critical-usage-prct='$_SERVICECRITICALUSAGEPRCT$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   OS-Linux-SNMP-Disk-Name 
    command_line                   $CENTREONPLUGINS$/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=storage --hostname=$HOSTADDRESS$ --snmp-version='$_HOSTSNMPVERSION$' --snmp-community='$_HOSTSNMPCOMMUNITY$' $_HOSTSNMPEXTRAOPTIONS$ --storage '$_SERVICEDISKNAME$' --name --display-transform-src='$_SERVICETRANSFORMSRC$' --display-transform-dst='$_SERVICETRANSFORMDST$' --warning-usage='$_SERVICEWARNING$' --critical-usage='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$ 
}

define command {
    command_name                   App-Monitoring-Centreon-Central-Broker-Stats 
    command_line                   $CENTREONPLUGINS$/centreon_centreon_central.pl --plugin=apps::centreon::local::plugin --hostname=$HOSTADDRESS$ --mode=broker-stats --broker-stats-file='$_HOSTSQLSTATSFILE$' --broker-stats-file='$_HOSTRRDSTATSFILE$' --broker-stats-file='$_HOSTMODULESTATSFILE$' --filter-name='$_SERVICEFILTERNAME$' --warning-speed-events='$_SERVICEWARNINGSPEEDEVENTS$' --critical-speed-events='$_SERVICECRITICALSPEEDEVENTS$' --warning-queued-events='$_SERVICEWARNINGQUEUEDEVENTS$' --critical-queued-events='$_SERVICECRITICALQUEUEDEVENTS$' --warning-unacknowledged-events='$_SERVICEWARNINGUNACKNOWLEDGEDEVENTS$' --critical-unacknowledged-events='$_SERVICECRITICALUNACKNOWLEDGEDEVENTS$' --warning-status='$_SERVICEWARNINGSTATUS$' --critical-status='$_SERVICECRITICALSTATUS$' $_SERVICEEXTRAOPTIONS$ 
}


define command {
    command_name                   agent-health 
    command_line                   {"check":"health", "args":{"warning-runtime":"305", "critical-runtime":310 }} 
    connector                      CMA 
}

define command {
    command_name                   centreon_native_cpu 
    command_line                   {"check":"cpu_percentage", "args":{ "warning-core" : "24.1", "critical-core" : "24.4", "warning-average" : "10", "critical-average" : "20"} } 
    connector                      CMA 
}

define command {
    command_name                   centreon_native_cpu_detailed 
    command_line                   {"check":"cpu_percentage", "args":{ "cpu-detailed": true, "warning-core" : "24.1", "critical-core" : "24.4", "warning-average" : "10", "critical-average" : "20"} } 
    connector                      CMA 
}

define command {
    command_name                   centreon_native_uptime 
    command_line                   {"check":"uptime", "args":{ "warning-uptime" : "4", "critical-uptime" : "3", "unit" : "d"} } 
    connector                      CMA 
}

define command {
    command_name                   windows_drive_size 
    command_line                   { "check": "storage", "args": { "unit": "B" }} 
    connector                      CMA 
}

define command {
    command_name                   windows_drive_size_percent 
    command_line                   { "check": "storage", "args": { "unit": "%", "free": true,  "warning": 35 , "critical": 13 }} 
    connector                      CMA 
}

define command {
    command_name                   centreon_native_memory 
    command_line                   {"check":"memory", "args":{ "swap" : true, "virtual": true } } 
    connector                      CMA 
}

define command {
    command_name                   native_service 
    command_line                   {"check":"service", "args": { "filter-display": "Gestionnaire.*", "warning-total-running": "8"  }} 
    connector                      CMA 
}
                            
define command {
    command_name                   process_load 
    command_line                   "C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe" -ExecutionPolicy Bypass -File C:/Users/Public/measure_agent_perf.ps1 $ARG1$ 
    connector                      CMA 
}
                            
define command {
    command_name                   CMA_echo 
    command_line                   cmd.exe /C echo $ARG1$ 
    connector                      CMA 
}

define command {
    command_name                   CMA_centreon_windows_plugins_cpu 
    command_line                   cmd.exe /C  "C:\Program Files\Centreon\Plugins\centreon_plugins.exe" --plugin=os::windows::local::plugin --mode=list-storages
    connector                      CMA 
}

define command {
    command_name                   OS-Windows-NSClient05-Restapi-Cpu
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_cpu --insecure
}

define command {
    command_name                   OS-Windows-NSClient05-Restapi-Memory
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_memory --insecure 
}

define command {
    command_name                   OS-Windows-NSClient05-Restapi-Echo
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_echo  --insecure
}

define command {
    command_name                   nsclient_process_load
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_load  --insecure
}

define command {
    command_name                   OS-Windows-NSClient05-Restapi-Cpu-Connector
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_cpu --insecure
    connector                   Perl Connector
}

define command {
    command_name                   OS-Windows-NSClient05-Restapi-Memory-Connector
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_memory --insecure 
    connector                   Perl Connector
}

define command {
    command_name                   OS-Windows-NSClient05-Restapi-Echo-Connector  
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_echo  --insecure
    connector                   Perl Connector
}

define command {
    command_name                   nsclient_process_load-Connector
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_load  --insecure
    connector                   Perl Connector
}

define command {
    command_name                   OS-Windows-NSClient05-Restapi-Plugins-Storage-Connector
    command_line                   $CENTREONPLUGINS$/centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='$HOSTADDRESS$'  --proto='https' --legacy-password='centreon'  --command=check_centreon_plugins --insecure --arg="os::windows::local::plugin" --arg="list-storages"
    connector                   Perl Connector
}

define command {
    command_name                   OS-Windows-NRPE-Cpu 
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_cpu -2 -P 8192 
}

define command {
    command_name                   OS-Windows-NRPE-Memory 
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_memory -2 -P 8192 
}

define command {
    command_name                   OS-Windows-NRPE-Echo 
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_echo -2 -P 8192 
}

define command {
    command_name                   OS-Windows-NRPE-Load
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_load -2 -P 8192 
}

define command {
    command_name                   OS-Windows-NRPE-Cpu-Connector 
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_cpu -2 -P 8192
    connector                   Perl Connector 
}

define command {
    command_name                   OS-Windows-NRPE-Memory-Connector
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_memory -2 -P 8192 
    connector                   Perl Connector
}

define command {
    command_name                   OS-Windows-NRPE-Echo-Connector
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_echo -2 -P 8192 
    connector                   Perl Connector
}

define command {
    command_name                   OS-Windows-NRPE-Load-Connector
    command_line                   $USER1$/check_centreon_nrpe3 -H $HOSTADDRESS$ -p 5666 -c check_load -2 -P 8192
    connector                   Perl Connector
}




