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

De SLM - MediaWiki
 
(18 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
[[Plugins | Retour]]
+
<html><a href="#null" onclick="javascript:history.back();">Précédent</a></html>
  
 
==Plugin==
 
==Plugin==
 
/usr/lib/centreon/plugins/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin
 
/usr/lib/centreon/plugins/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin
  
==HOST==  
+
==Le template d’hôte==  
*Creation de la template d'hote
+
Nous regrouperons les services dans un template dhôte
clapi -o HTPL -a add -v "OS-FreeBSD-snmp;OS-FreeBSD-snmp;;;;"
+
<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;generic-active-host-custom"
+
clapi -o HTPL -a addtemplate -v "OS-FreeBSD-SNMP-SLM;generic-active-host-custom"</syntaxhighlight>
  
 +
===Cpu===
 +
<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\$ \$_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;command_activate;1"
 +
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0"
  
==cpu==
+
#Création template service
*Creation commande
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu;Cpu;generic-active-service-custom"
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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' "
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu"
clapi -o CMD -a setparam -v "check_os_freebsd_snmp_cpu;enable_shell;0"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;WARNING;80"
clapi -o CMD -a setparam -v "check_os_freebsd_snmp_cpu;command_activate;1"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;CRITICAL;90"
clapi -o CMD -a setparam -v "check_os_freebsd_snmp_cpu;command_locked;0"
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;graphtemplate;CPU"
  
*Creation template service
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a add -v "stpl_os_freebsd_snmp_cpu;cpu;generic-active-service-custom"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
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;CRITICAL;90"
 
clapi -o STPL -a setparam -v "stpl_os_freebsd_snmp_cpu;graphtemplate;CPU"
 
  
*Ajout de la template service à la template d'hote
+
===Cpu-Detailed===
clapi -o STPL -a addhost -v "stpl_os_freebsd_snmp_cpu;OS-FreeBSD-snmp"
+
<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\$ \$_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;command_activate;1"
 +
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_locked;0"
  
==cpu-detailed==
+
#Création template service
*Creation commande
+
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_cpu-detailed;Cpu-Detailed;generic-active-service-custom"
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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --warning-idle='\$_SERVICEWARNING\$' --critical-idle='\$_SERVICECRITICAL\$' --verbose "
+
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed"
clapi -o CMD -a setparam -v "check_os_freebsd_snmp_cpu-detailed;enable_shell;0"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;WARNINGIDLE;20:"
clapi -o CMD -a setparam -v "check_os_freebsd_snmp_cpu-detailed;command_activate;1"
+
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;CRITICALIDLE;10:"
clapi -o CMD -a setparam -v "check_os_freebsd_snmp_cpu-detailed;command_locked;0"
+
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"
  
*Creation template service
+
#Ajout de la template service à la template d hôte
clapi -o STPL -a add -v "stpl_os_freebsd_snmp_cpu-detailed;cpu;generic-active-service-custom"
+
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
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;CRITICAL;10"
 
clapi -o STPL -a setparam -v "stpl_os_freebsd_snmp_cpu-detailed;graphtemplate;CPU"
 
  
*Ajout de la template service à la template d'hote
+
===Disk-IO===
clapi -o STPL -a addhost -v "stpl_os_freebsd_snmp_cpu-detailed;OS-FreeBSD-snmp"
+
<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\$ \$_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;command_activate;1"
 +
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0"
  
 +
#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 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;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;CRITICALWRITE;''"
  
 +
#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"</syntaxhighlight>
 +
 +
===Inodes===
 +
{{rouge|ATTENTION:}} Besoin d activer "includeAllDisks 10%" on snmpd.conf.
 +
<syntaxhighlight lang="shell" line>#Création commande
 +
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;enable_shell;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
 +
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 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;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;EXTRAOPTIONS;'--verbose'"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Packet-Errors-Generic-Id===
 +
<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 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_locked;0"
 +
 +
#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 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;;''"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Packet-Errors-Generic-Name===
 +
<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 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_locked;0"
 +
 +
#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 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;'^.*$'"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Packet-Errors-Global===
 +
<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 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_locked;0"
 +
 +
#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 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;EXTRAOPTIONS;'--verbose'"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Traffic-Generic-Id===
 +
<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 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_locked;0"
 +
 +
#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 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;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;CRITICALOUT;'90'"
 +
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
 +
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 +
 +
===Traffic-Generic-Name===
 +
<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 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_locked;0"
 +
 +
#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 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;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;WARNINGOUT;'80'"
 +
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"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Traffic-Global===
 +
<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 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_locked;0"
 +
 +
#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 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;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;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;EXTRAOPTIONS;'--verbose'"
 +
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;graphtemplate;Traffic"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Load===
 +
<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 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_locked;0"
 +
 +
#Création template service
 +
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 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 setparam -v "Stpl_OS_FreeBSD_SNMP_Load;graphtemplate;LOAD_Average"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Memory===
 +
<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='\$_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;command_activate;1"
 +
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_locked;0"
 +
 +
#Création template service
 +
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 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 setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;graphtemplate;Memory"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Process-Generic===
 +
<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 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_locked;0"
 +
 +
#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 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:'"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Disk-Generic-Id===
 +
<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 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_locked;0"
 +
 +
#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 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;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 setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;graphtemplate;Storage"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Disk-Generic-Name===
 +
<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 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_locked;0"
 +
 +
#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 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;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 setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;graphtemplate;Storage"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Disk-Global===
 +
<syntaxhighlight lang="shell" line>#Création commande
 +
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_Disk-Global;enable_shell;0"
 +
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_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"
 +
 +
#Ajout de la template service à la template d hôte
 +
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Global;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 +
 +
===Swap===
 +
<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 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_locked;0"
 +
 +
#Création template service
 +
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 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 setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;graphtemplate;Memory"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Tcpcon-Generic===
 +
<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 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_locked;0"
 +
 +
#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 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
 +
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;OS-FreeBSD-SNMP-SLM"</syntaxhighlight>
 +
 +
===Ntp===
 +
<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 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_locked;0"
 +
 +
#Création template service
 +
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 setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;WARNING;'-1:1'"
 +
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;CRITICAL;'-2:2'"
 +
 +
#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"</syntaxhighlight>
 +
 +
===Uptime===
 +
<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 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_locked;0"
 +
 +
#Création template service
 +
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"
 +
 +
#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"</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"