Plugin OS-FreeBSD-snmp : Différence entre versions

De SLM - MediaWiki
 
(14 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
[[Centreon#Plugin_OS|Retour]]
+
<html><a href="#null" onclick="javascript:history.back();">Précédent</a></html>
  
 
==Plugin==
 
==Plugin==
Ligne 5 : Ligne 5 :
  
 
==Le template d’hôte==  
 
==Le template d’hôte==  
Nous regrouperons les services dans un template dhôte nommé OS-Linux-ssh
+
Nous regrouperons les services dans un template dhôte
clapi -o HTPL -a add -v "OS-FreeBSD-SNMP-SLM;OS-FreeBSD-SNMP-SLM;;;;"
+
<syntaxhighlight lang="shell" line>clapi -o HTPL -a add -v "OS-FreeBSD-SNMP-SLM;OS-FreeBSD-SNMP-SLM;;;;"
clapi -o HTPL -a addtemplate -v "OS-FreeBSD-SNMP-SLM;generic-active-host-custom"
+
clapi -o HTPL -a addtemplate -v "OS-FreeBSD-SNMP-SLM;generic-active-host-custom"</syntaxhighlight>
  
 
===Cpu===  
 
===Cpu===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONSS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' "
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' "
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu;Cpu;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu;Cpu;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;WARNING;80"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;WARNING;80"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;CRITICAL;90"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;CRITICAL;90"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;graphtemplate;CPU"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;graphtemplate;CPU"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
 
===Cpu-Detailed===  
 
===Cpu-Detailed===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu-detailed --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONSS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-idle='\$_SERVICEWARNING\$' --critical-idle='\$_SERVICECRITICAL\$' --verbose "
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu-detailed --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-idle='\$_SERVICEWARNINGIDLE\$' --critical-idle='\$_SERVICECRITICALIDLE\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_cpu-detailed;Cpu-Detailed;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_cpu-detailed;Cpu-Detailed;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;WARNING;20"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;WARNINGIDLE;20:"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;CRITICAL;10"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;CRITICALIDLE;10:"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;graphtemplate;CPU"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'"  
 +
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;graphtemplate;CPU"
 +
 
 +
#Ajout de la template service à la template d hôte
 +
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
*Ajout de la template service à la template d hôte
 
clapi  -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;OS-FreeBSD-SNMP-SLM"
 
 
 
===Disk-IO===  
 
===Disk-IO===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-IO;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=diskio --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONSS\$ \$_SERVICEEXTRAOPTIONS\$ --device='\$_SERVICEDISKNAME\$' --name --warning-read='\$_SERVICEWARNINGREAD\$' --critical-read='\$_SERVICECRITICALREAD\$' --warning-write='\$_SERVICEWARNINGWRITE\$' --critical-write='\$_SERVICECRITICALWRITE\$' "
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-IO;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=diskio --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --device='\$_SERVICEDISKNAME\$' --name --warning-read='\$_SERVICEWARNINGREAD\$' --critical-read='\$_SERVICECRITICALREAD\$' --warning-write='\$_SERVICEWARNINGWRITE\$' --critical-write='\$_SERVICECRITICALWRITE\$' "
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;Disk-IO;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;Disk-IO;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGREAD;''"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGREAD;''"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALREAD;''"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALREAD;''"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGWRITE;''"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGWRITE;''"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALWRITE;''"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALWRITE;''"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Inodes===  
 
===Inodes===  
*Création commande
+
{{rouge|ATTENTION:}} Besoin d activer "includeAllDisks 10%" on snmpd.conf.
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Inodes;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=inodes --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONSS\$ \$_SERVICEEXTRAOPTIONS\$ --diskpath='\$_SERVICEDISKNAME\$' --name --regexp --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$' --filter-device='\$_SERVICEFILTERDEVICE\$'"
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;enable_shell;0"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Inodes;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=inodes --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --diskpath='\$_SERVICEDISKNAME\$' --name --regexp --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$' --filter-device='\$_SERVICEFILTERDEVICE\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_activate;1"
 +
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Inodes;Inodes;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Inodes;Inodes;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Inodes;check_command;Check_OS_FreeBSD_SNMP_Inodes"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Inodes;check_command;Check_OS_FreeBSD_SNMP_Inodes"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;DISKNAME;'.*'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;DISKNAME;'.*'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;CRITICAL;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;CRITICAL;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;WARNING;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;WARNING;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;FILTERDEVICE;'^(?!(tmpfs|devpts|none|proc|sysfs|sunrpc|\/\/.*)$)'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;FILTERDEVICE;'^(?!(tmpfs|devpts|none|proc|sysfs|sunrpc|\/\/.*)$)'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'"  
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'"  
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Inodes;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Inodes;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Packet-Errors-Generic-Id===  
 
===Packet-Errors-Generic-Id===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;Packet-Errors-Generic-Id;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;Packet-Errors-Generic-Id;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;;''"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;;''"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
 
 
===Packet-Errors-Generic-Name===  
 
===Packet-Errors-Generic-Name===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;Packet-Errors-Generic-Name;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;Packet-Errors-Generic-Name;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;INTERFACEID;'^.*$'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;INTERFACEID;'^.*$'"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
 
===Packet-Errors-Global===  
 
===Packet-Errors-Global===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;INTERFACEID;'.*'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;INTERFACEID;'.*'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;EXTRAOPTIONS;'--verbose'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;EXTRAOPTIONS;'--verbose'"
 
   
 
   
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
 
===Traffic-Generic-Id===  
 
===Traffic-Generic-Id===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;Traffic-Generic-Id;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;Traffic-Generic-Id;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Id"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Id"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGIN;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGIN;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALIN;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALIN;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGOUT;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGOUT;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALOUT;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALOUT;'90'"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;graphtemplate;Traffic"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;graphtemplate;Traffic"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
 
===Traffic-Generic-Name===  
 
===Traffic-Generic-Name===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;Traffic-Generic-Name;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;Traffic-Generic-Name;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;INTERFACEID;'^.*$'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;INTERFACEID;'^.*$'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGIN;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGIN;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALIN;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALIN;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGOUT;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGOUT;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALOUT;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALOUT;'90'"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;graphtemplate;Traffic"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;graphtemplate;Traffic"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Traffic-Global===  
 
===Traffic-Global===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;check_command;Check_OS_FreeBSD_SNMP_Traffic-Global"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;check_command;Check_OS_FreeBSD_SNMP_Traffic-Global"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;INTERFACEID;'.*'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;INTERFACEID;'.*'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGIN;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGIN;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALIN;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALIN;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGOUT;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGOUT;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALOUT;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALOUT;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;EXTRAOPTIONS;'--verbose'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;EXTRAOPTIONS;'--verbose'"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;graphtemplate;Traffic"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;graphtemplate;Traffic"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
 
===Load===  
 
===Load===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Load;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=load --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Load;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=load --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Load;Load;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Load;Load;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;check_command;Check_OS_FreeBSD_SNMP_Load"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;check_command;Check_OS_FreeBSD_SNMP_Load"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;WARNING;'4,3,2'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;WARNING;'4,3,2'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;CRITICAL;'6,5,4'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;CRITICAL;'6,5,4'"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;graphtemplate;LOAD_Average"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;graphtemplate;LOAD_Average"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Load;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Load;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Memory===  
 
===Memory===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Memory;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=memory --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Memory;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=memory --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Memory;Memory;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Memory;Memory;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;check_command;Check_OS_FreeBSD_SNMP_Memory"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;check_command;Check_OS_FreeBSD_SNMP_Memory"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;WARNING;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;WARNING;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;CRITICAL;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;CRITICAL;'90'"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;graphtemplate;Memory"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;graphtemplate;Memory"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Memory;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Memory;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Process-Generic===  
 
===Process-Generic===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Process-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=processcount --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --process-name='\$_SERVICEPROCESSNAME\$' --process-path='\$_SERVICEPROCESSPATH\$' --process-args='\$_SERVICEPROCESSARGS\$' --regexp-name --regexp-path --regexp-args --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Process-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=processcount --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --process-name='\$_SERVICEPROCESSNAME\$' --process-path='\$_SERVICEPROCESSPATH\$' --process-args='\$_SERVICEPROCESSARGS\$' --regexp-name --regexp-path --regexp-args --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;Process-Generic;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;Process-Generic;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;CRITICAL;'1:'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;CRITICAL;'1:'"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Disk-Generic-Id===  
 
===Disk-Generic-Id===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKID\$' --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKID\$' --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;Disk-Generic-Id;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;Disk-Generic-Id;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Id"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Id"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;WARNING;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;WARNING;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;CRITICAL;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;CRITICAL;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;graphtemplate;Storage"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;graphtemplate;Storage"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Disk-Generic-Name===  
 
===Disk-Generic-Name===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;Disk-Generic-Name;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;Disk-Generic-Name;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Name"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Name"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;WARNING;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;WARNING;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;CRITICAL;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;CRITICAL;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;graphtemplate;Storage"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;graphtemplate;Storage"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
===Service-Disk-Global===  
+
===Disk-Global===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --regexp --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$ --critical-usage='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --regexp --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Global;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Global;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Global;command_locked;0"
 +
 
 +
#Création template service
 +
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;Disk-Global;generic-active-service-custom"
 +
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;check_command;Check_OS_FreeBSD_SNMP_Disk-Global"
 +
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;DISKNAME;'.*'"
 +
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;WARNING;'80'"
 +
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;CRITICAL;'90'"
 +
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;EXTRAOPTIONS;--verbose --filter-perfdata='storage.space|used|free'"
 +
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;graphtemplate;Storage"
  
*Création template service
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;Service-Disk-Global;generic-active-service-custom"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;check_command;Check_OS_FreeBSD_SNMP_Service-Disk-Global"
 
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;DISKNAME;'.*'"
 
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;WARNING;'80'"
 
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;CRITICAL;'90'"
 
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;EXTRAOPTIONS;'--verbose --filter-perfdata='storage.space|used|free''"
 
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;graphtemplate;Storage"
 
  
*Ajout de la template service à la template d hôte
 
clapi  -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;OS-FreeBSD-SNMP-SLM"
 
 
 
===Swap===  
 
===Swap===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Swap;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=swap --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage-prct='\$_SERVICEWARNING\$' --critical-usage-prct='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Swap;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=swap --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage-prct='\$_SERVICEWARNING\$' --critical-usage-prct='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Swap;Swap;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Swap;Swap;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;check_command;Check_OS_FreeBSD_SNMP_Swap"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;check_command;Check_OS_FreeBSD_SNMP_Swap"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;WARNING;'10'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;WARNING;'10'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;CRITICAL;'30'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;CRITICAL;'30'"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;graphtemplate;Memory"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;graphtemplate;Memory"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Swap;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Swap;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
 
===Tcpcon-Generic===  
 
===Tcpcon-Generic===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=tcpcon --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=tcpcon --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
  
 
===Ntp===  
 
===Ntp===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Ntp;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=time --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --ntp-hostname='\$_SERVICENTPADDR\$' --ntp-port='\$_SERVICENTPPORT\$' --warning-offset='\$_SERVICEWARNING\$' --critical-offset='\$_SERVICECRITICAL\$' --timezone='\$_SERVICETIMEZONE\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Ntp;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=time --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --ntp-hostname='\$_SERVICENTPADDR\$' --ntp-port='\$_SERVICENTPPORT\$' --warning-offset='\$_SERVICEWARNING\$' --critical-offset='\$_SERVICECRITICAL\$' --timezone='\$_SERVICETIMEZONE\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Ntp;Ntp;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Ntp;Ntp;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Ntp;check_command;Check_OS_FreeBSD_SNMP_Ntp"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Ntp;check_command;Check_OS_FreeBSD_SNMP_Ntp"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;WARNING;'-1:1'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;WARNING;'-1:1'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;CRITICAL;'-2:2'"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;CRITICAL;'-2:2'"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Ntp;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Ntp;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
===Uptime===  
 
===Uptime===  
*Création commande
+
<syntaxhighlight lang="shell" line>#Création commande
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Uptime;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=uptime --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
+
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Uptime;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=uptime --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;enable_shell;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_activate;1"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_locked;0"
+
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_locked;0"
  
*Création template service
+
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Uptime;Uptime;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Uptime;Uptime;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Uptime;check_command;Check_OS_FreeBSD_SNMP_Uptime"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Uptime;check_command;Check_OS_FreeBSD_SNMP_Uptime"
  
*Ajout de la template service à la template d hôte
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Uptime;OS-FreeBSD-SNMP-SLM"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Uptime;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 
   
 
   
 
[[Catégorie:Centreon]]
 
[[Catégorie:Centreon]]

Version actuelle datée du 29 avril 2020 à 22:17

Précédent

Plugin

/usr/lib/centreon/plugins/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin

Le template d’hôte

Nous regrouperons les services dans un template dhôte

1 clapi -o HTPL -a add -v "OS-FreeBSD-SNMP-SLM;OS-FreeBSD-SNMP-SLM;;;;"
2 clapi -o HTPL -a addtemplate -v "OS-FreeBSD-SNMP-SLM;generic-active-host-custom"

Cpu

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' "
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu;Cpu;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;WARNING;80"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;CRITICAL;90"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;graphtemplate;CPU"
13 
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM"

Cpu-Detailed

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu-detailed --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-idle='\$_SERVICEWARNINGIDLE\$' --critical-idle='\$_SERVICECRITICALIDLE\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_cpu-detailed;Cpu-Detailed;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;WARNINGIDLE;20:"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;CRITICALIDLE;10:"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'" 
13 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;graphtemplate;CPU"
14 
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;OS-FreeBSD-SNMP-SLM"

Disk-IO

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-IO;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=diskio --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --device='\$_SERVICEDISKNAME\$' --name --warning-read='\$_SERVICEWARNINGREAD\$' --critical-read='\$_SERVICECRITICALREAD\$' --warning-write='\$_SERVICEWARNINGWRITE\$' --critical-write='\$_SERVICECRITICALWRITE\$' "
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;Disk-IO;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGREAD;''"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALREAD;''"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGWRITE;''"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALWRITE;''"
14 
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;OS-FreeBSD-SNMP-SLM"

Inodes

ATTENTION: Besoin d activer "includeAllDisks 10%" on snmpd.conf.

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Inodes;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=inodes --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --diskpath='\$_SERVICEDISKNAME\$' --name --regexp --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$' --filter-device='\$_SERVICEFILTERDEVICE\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Inodes;Inodes;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Inodes;check_command;Check_OS_FreeBSD_SNMP_Inodes"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;DISKNAME;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;CRITICAL;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;WARNING;'80'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;FILTERDEVICE;'^(?!(tmpfs|devpts|none|proc|sysfs|sunrpc|\/\/.*)$)'"
14 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'" 
15 
16 #Ajout de la template service à la template d hôte
17 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Inodes;OS-FreeBSD-SNMP-SLM"

Packet-Errors-Generic-Id

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;Packet-Errors-Generic-Id;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;;''"
11 
12 #Ajout de la template service à la template d hôte
13 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;OS-FreeBSD-SNMP-SLM"

Packet-Errors-Generic-Name

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;Packet-Errors-Generic-Name;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;INTERFACEID;'^.*$'"
11 
12 #Ajout de la template service à la template d hôte
13 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;OS-FreeBSD-SNMP-SLM"

Packet-Errors-Global

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;INTERFACEID;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;EXTRAOPTIONS;'--verbose'"
12  
13 #Ajout de la template service à la template d hôte
14 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;OS-FreeBSD-SNMP-SLM"

Traffic-Generic-Id

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;Traffic-Generic-Id;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Id"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGIN;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALIN;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGOUT;'80'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALOUT;'90'"
14 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;graphtemplate;Traffic"
15 
16 #Ajout de la template service à la template d hôte
17 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;OS-FreeBSD-SNMP-SLM"

Traffic-Generic-Name

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;Traffic-Generic-Name;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;INTERFACEID;'^.*$'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGIN;'80'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALIN;'90'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGOUT;'80'"
14 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALOUT;'90'"
15 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;graphtemplate;Traffic"
16 
17 #Ajout de la template service à la template d hôte
18 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;OS-FreeBSD-SNMP-SLM"

Traffic-Global

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;check_command;Check_OS_FreeBSD_SNMP_Traffic-Global"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;INTERFACEID;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGIN;'80'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALIN;'90'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGOUT;'80'"
14 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALOUT;'90'"
15 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;EXTRAOPTIONS;'--verbose'"
16 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;graphtemplate;Traffic"
17 
18 #Ajout de la template service à la template d hôte
19 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;OS-FreeBSD-SNMP-SLM"

Load

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Load;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=load --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Load;Load;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;check_command;Check_OS_FreeBSD_SNMP_Load"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;WARNING;'4,3,2'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;CRITICAL;'6,5,4'"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;graphtemplate;LOAD_Average"
13 
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Load;OS-FreeBSD-SNMP-SLM"

Memory

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Memory;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=memory --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Memory;Memory;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;check_command;Check_OS_FreeBSD_SNMP_Memory"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;WARNING;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;CRITICAL;'90'"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;graphtemplate;Memory"
13 
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Memory;OS-FreeBSD-SNMP-SLM"

Process-Generic

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Process-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=processcount --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --process-name='\$_SERVICEPROCESSNAME\$' --process-path='\$_SERVICEPROCESSPATH\$' --process-args='\$_SERVICEPROCESSARGS\$' --regexp-name --regexp-path --regexp-args --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;Process-Generic;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;CRITICAL;'1:'"
11 
12 #Ajout de la template service à la template d hôte
13 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;OS-FreeBSD-SNMP-SLM"

Disk-Generic-Id

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKID\$' --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;Disk-Generic-Id;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Id"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;WARNING;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;CRITICAL;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
13 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;graphtemplate;Storage"
14 
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;OS-FreeBSD-SNMP-SLM"

Disk-Generic-Name

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;Disk-Generic-Name;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Name"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;WARNING;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;CRITICAL;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
13 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;graphtemplate;Storage"
14 
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;OS-FreeBSD-SNMP-SLM"

Disk-Global

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --regexp --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Global;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Global;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Global;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;Disk-Global;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;check_command;Check_OS_FreeBSD_SNMP_Disk-Global"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;DISKNAME;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;WARNING;'80'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;CRITICAL;'90'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;EXTRAOPTIONS;--verbose --filter-perfdata='storage.space|used|free'"
14 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;graphtemplate;Storage"
15 
16 #Ajout de la template service à la template d hôte
17 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;OS-FreeBSD-SNMP-SLM"

Swap

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Swap;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=swap --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage-prct='\$_SERVICEWARNING\$' --critical-usage-prct='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Swap;Swap;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;check_command;Check_OS_FreeBSD_SNMP_Swap"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;WARNING;'10'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;CRITICAL;'30'"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;graphtemplate;Memory"
13 
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Swap;OS-FreeBSD-SNMP-SLM"

Tcpcon-Generic

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=tcpcon --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic"
10 
11 #Ajout de la template service à la template d hôte
12 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;OS-FreeBSD-SNMP-SLM"

Ntp

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Ntp;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=time --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --ntp-hostname='\$_SERVICENTPADDR\$' --ntp-port='\$_SERVICENTPPORT\$' --warning-offset='\$_SERVICEWARNING\$' --critical-offset='\$_SERVICECRITICAL\$' --timezone='\$_SERVICETIMEZONE\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Ntp;Ntp;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Ntp;check_command;Check_OS_FreeBSD_SNMP_Ntp"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;WARNING;'-1:1'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;CRITICAL;'-2:2'"
12 
13 #Ajout de la template service à la template d hôte
14 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Ntp;OS-FreeBSD-SNMP-SLM"

Uptime

 1 #Création commande
 2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Uptime;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=uptime --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
 3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;enable_shell;0"
 4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_activate;1"
 5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_locked;0"
 6 
 7 #Création template service
 8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Uptime;Uptime;generic-active-service-custom"
 9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Uptime;check_command;Check_OS_FreeBSD_SNMP_Uptime"
10 
11 #Ajout de la template service à la template d hôte
12 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Uptime;OS-FreeBSD-SNMP-SLM"