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

De SLM - MediaWiki
Ligne 4 : Ligne 4 :
 
/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 nommé OS-Linux-ssh
  clapi -o HTPL -a add -v "OS-FreeBSD-snmp;OS-FreeBSD-snmp;;;;"
+
  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"
  
 +
===Cpu===
 +
*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 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"
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"
+
*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 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;WARNING;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;CRITICAL;10"
  clapi -o CMD -a setparam -v "check_os_freebsd_snmp_cpu-detailed;command_locked;0"
+
  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"
  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"
+
===Disk-IO===
  clapi -o STPL -a setmacro -v "stpl_os_freebsd_snmp_cpu-detailed;CRITICAL;10"
+
*Création commande
  clapi -o STPL -a setparam -v "stpl_os_freebsd_snmp_cpu-detailed;graphtemplate;CPU"
+
  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 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"
  
*Ajout de la template service à la template d'hote
+
*Création template service
  clapi  -o STPL -a addhost -v "stpl_os_freebsd_snmp_cpu-detailed;OS-FreeBSD-snmp"
+
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"
 +
 +
===Inodes===
 +
*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\$ \$_HOSTEXTRAOPTIONSS\$ \$_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"
 +
 +
===Packet-Errors-Generic-Id===
 +
*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"
 +
 +
===Packet-Errors-Generic-Name===
 +
*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"
 +
 +
===Packet-Errors-Global===
 +
*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"
 +
 +
===Traffic-Generic-Id===
 +
*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"
 +
 +
===Traffic-Generic-Name===
 +
*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"
 +
 +
===Traffic-Global===
 +
*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"
 +
 +
===Load===
 +
*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"
 +
 +
===Memory===
 +
*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 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"
 +
 +
===Process-Generic===
 +
*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"
 +
 +
===Disk-Generic-Id===
 +
*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"
 +
 +
===Disk-Generic-Name===
 +
*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"
 +
 +
===Service-Disk-Global===
 +
*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 setparam -v "Check_OS_FreeBSD_SNMP_Service-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_Service-Disk-Global;command_locked;0"
 +
 +
*Création template service
 +
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;Service-Disk-Global;generic-active-service-custom"
 +
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===
 +
*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"
 +
 +
===Tcpcon-Generic===
 +
*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"
 +
 +
===Ntp===
 +
*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"
 +
 +
===Uptime===
 +
*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"
 +
 
[[Catégorie:Centreon]]
 
[[Catégorie:Centreon]]

Version du 9 avril 2020 à 07:39

Retour

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 nommé OS-Linux-ssh

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"

Cpu

  • 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 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"
  • Création template service
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 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 hôte
clapi  -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM"

Cpu-Detailed

  • 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 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"
  • 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 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 hôte
clapi  -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;OS-FreeBSD-SNMP-SLM"

Disk-IO

  • 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 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"

Inodes

  • 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\$ \$_HOSTEXTRAOPTIONSS\$ \$_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"

Packet-Errors-Generic-Id

  • 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"

Packet-Errors-Generic-Name

  • 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"	

Packet-Errors-Global

  • 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"

Traffic-Generic-Id

  • 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"

Traffic-Generic-Name

  • 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"

Traffic-Global

  • 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"

Load

  • 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"

Memory

  • 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 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"

Process-Generic

  • 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"

Disk-Generic-Id

  • 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"

Disk-Generic-Name

  • 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"

Service-Disk-Global

  • 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 setparam -v "Check_OS_FreeBSD_SNMP_Service-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_Service-Disk-Global;command_locked;0"
  • Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;Service-Disk-Global;generic-active-service-custom"
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

  • 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"

Tcpcon-Generic

  • 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"

Ntp

  • 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"

Uptime

  • 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"