Plugin Apps-OPNSense-SNMP : Différence entre versions

De SLM - MediaWiki
Ligne 46 : Ligne 46 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-IO;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-IO;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
   
 
   
===Packet-Errors-Global===  
+
===Packet-Errors===
 +
====Packet-Errors-Global====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom"
Ligne 76 : Ligne 77 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-LAN;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-LAN;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Traffic-Global===  
+
===Traffic===
 +
====Traffic-Global====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom"
Ligne 91 : Ligne 93 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
   
 
   
===Traffic-Generic-WAN===  
+
====Traffic-WAN====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;Traffic-Generic-WAN;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;Traffic-WAN;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
+
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;INTERFACEID;igb1"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;INTERFACEID;igb1"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;WARNINGIN;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;WARNINGIN;'80'"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;CRITICALIN;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;CRITICALIN;'90'"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;WARNINGOUT;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;WARNINGOUT;'80'"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;CRITICALOUT;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;CRITICALOUT;'90'"
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;graphtemplate;Traffic"
+
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;graphtemplate;Traffic"
  
 
#Ajout de la template service à la template d hôte
 
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-WAN;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
+
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Traffic-Generic-LAN===  
+
====Traffic-LAN====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;Traffic-Generic-LAN;generic-active-service-custom"
+
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;Traffic-LAN;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
+
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;INTERFACEID;igb1"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;INTERFACEID;igb1"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;WARNINGIN;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;WARNINGIN;'80'"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;CRITICALIN;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;CRITICALIN;'90'"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;WARNINGOUT;'80'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;WARNINGOUT;'80'"
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;CRITICALOUT;'90'"
+
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;CRITICALOUT;'90'"
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;graphtemplate;Traffic"
+
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;graphtemplate;Traffic"
  
 
#Ajout de la template service à la template d hôte
 
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-Generic-LAN;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
+
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
 
===Load===  
 
===Load===  
Ligne 141 : Ligne 143 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Memory;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Memory;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
   
 
   
===Process-Generic===  
+
===Process===
 +
====Process-Generic====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-Generic;Process-Generic;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-Generic;Process-Generic;generic-active-service-custom"
Ligne 150 : Ligne 153 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-Generic;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-Generic;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Process-lighttpd===  
+
====Process-lighttpd====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;Process-lighttpd;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;Process-lighttpd;generic-active-service-custom"
Ligne 160 : Ligne 163 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Process-nginx===  
+
====Process-nginx====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-nginx;Process-nginx;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-nginx;Process-nginx;generic-active-service-custom"
Ligne 170 : Ligne 173 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-nginx;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-nginx;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Process-openvpn===  
+
====Process-openvpn====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;Process-openvpn;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;Process-openvpn;generic-active-service-custom"
Ligne 180 : Ligne 183 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Process-pf===  
+
====Process-pf====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-pf;Process-pf;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-pf;Process-pf;generic-active-service-custom"
Ligne 190 : Ligne 193 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-pf;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-pf;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Process-SysLog_Distant===  
+
====Process-SysLog_Distant====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;Process-SysLog_Distant;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;Process-SysLog_Distant;generic-active-service-custom"
Ligne 200 : Ligne 203 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Process-SysLog_Local===  
+
====Process-SysLog_Local====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;Process-SysLog_Local;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;Process-SysLog_Local;generic-active-service-custom"
Ligne 210 : Ligne 213 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Process-Unbound DNS===  
+
====Process-Unbound DNS====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;Process-Unbound DNS;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;Process-Unbound DNS;generic-active-service-custom"
Ligne 220 : Ligne 223 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
   
 
   
===Disk-Generic-Name===  
+
===Disk===  
<syntaxhighlight lang="shell" line>#Création template service
+
====Disk-root====  
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-Generic-Name;Disk-Generic-Name;generic-active-service-custom"
 
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Name"
 
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-Generic-Name;WARNING;'80'"
 
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-Generic-Name;CRITICAL;'90'"
 
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-Generic-Name;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
 
clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-Generic-Name;graphtemplate;Storage"
 
 
 
#Ajout de la template service à la template d hôte
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-Generic-Name;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
 
===Disk-root===  
 
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-root;Disk-root;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-root;Disk-root;generic-active-service-custom"
Ligne 245 : Ligne 237 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-root;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-root;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Disk-tmp===  
+
====Disk-tmp====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;Disk-tmp;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;Disk-tmp;generic-active-service-custom"
Ligne 258 : Ligne 250 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Disk-var===  
+
====Disk-var====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-var;Disk-var;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-var;Disk-var;generic-active-service-custom"
Ligne 270 : Ligne 262 :
 
#Ajout de la template service à la template d hôte
 
#Ajout de la template service à la template d hôte
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-var;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-var;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
+
 
===Tcpcon-Generic===  
+
===Tcpcon===
 +
====Tcpcon-Generic====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom"
Ligne 279 : Ligne 272 :
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Generic;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
 
clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Generic;APP-OPNSense-SNMP-SLM"</syntaxhighlight>
  
===Tcpcon-Nginx===  
+
====Tcpcon-Nginx====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;Tcpcon-Nginx;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;Tcpcon-Nginx;generic-active-service-custom"
Ligne 288 : Ligne 281 :
 
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;EXTRAOPTIONS;--service='Nginx,,,443,,,,10,20'"</syntaxhighlight>
 
clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;EXTRAOPTIONS;--service='Nginx,,,443,,,,10,20'"</syntaxhighlight>
  
===Tcpcon-SSH===  
+
====Tcpcon-SSH====  
 
<syntaxhighlight lang="shell" line>#Création template service
 
<syntaxhighlight lang="shell" line>#Création template service
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-SSH;Tcpcon-SSH;generic-active-service-custom"
 
clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-SSH;Tcpcon-SSH;generic-active-service-custom"

Version du 20 avril 2020 à 12:42

Précédent

Pré-requis

Nécessite d avoir installé les commandes freebsd: Plugin_OS-FreeBSD-snmp

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 "APP-OPNSense-SNMP-SLM;APP-OPNSense-SNMP-SLM;;;;"
2 clapi -o HTPL -a addtemplate -v "APP-OPNSense-SNMP-SLM;generic-active-host-custom"

Cpu

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Cpu;Cpu;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Cpu;WARNING;80"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Cpu;CRITICAL;90"
6 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Cpu;graphtemplate;CPU"
7 
8 #Ajout de la template service à la template d hôte
9 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Cpu;APP-OPNSense-SNMP-SLM"

Cpu-Detailed

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_cpu-detailed;Cpu-Detailed;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Cpu-Detailed;WARNINGIDLE;20:"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Cpu-Detailed;CRITICALIDLE;10:"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Inodes;EXTRAOPTIONS;'--verbose'" 
 7 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Cpu-Detailed;graphtemplate;CPU"
 8 
 9 #Ajout de la template service à la template d hôte
10 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Cpu-Detailed;APP-OPNSense-SNMP-SLM"

Disk-IO

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-IO;Disk-IO;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-IO;WARNINGREAD;''"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-IO;CRITICALREAD;''"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-IO;WARNINGWRITE;''"
 7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-IO;CRITICALWRITE;''"
 8 
 9 #Ajout de la template service à la template d hôte
10 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-IO;APP-OPNSense-SNMP-SLM"

Packet-Errors

Packet-Errors-Global

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-Global;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-Global;INTERFACEID;'.*'"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-Global;EXTRAOPTIONS;'--verbose'"
6  
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-Global;APP-OPNSense-SNMP-SLM"

Packet-Errors-WAN

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-WAN;Packet-Errors-WAN;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-WAN;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-WAN;INTERFACEID;igb0"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-WAN;EXTRAOPTIONS;'--verbose'"
6  
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-WAN;APP-OPNSense-SNMP-SLM"

Packet-Errors-LAN

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-LAN;Packet-Errors-LAN;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-LAN;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-LAN;INTERFACEID;igb1"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-LAN;EXTRAOPTIONS;'--verbose'"
6  
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Packet-Errors-LAN;APP-OPNSense-SNMP-SLM"

Traffic

Traffic-Global

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;check_command;Check_OS_FreeBSD_SNMP_Traffic-Global"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;INTERFACEID;'.*'"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;WARNINGIN;'80'"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;CRITICALIN;'90'"
 7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;WARNINGOUT;'80'"
 8 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;CRITICALOUT;'90'"
 9 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;EXTRAOPTIONS;'--verbose'"
10 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;graphtemplate;Traffic"
11 
12 #Ajout de la template service à la template d hôte
13 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-Global;APP-OPNSense-SNMP-SLM"

Traffic-WAN

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;Traffic-WAN;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;INTERFACEID;igb1"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;WARNINGIN;'80'"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;CRITICALIN;'90'"
 7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;WARNINGOUT;'80'"
 8 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;CRITICALOUT;'90'"
 9 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;graphtemplate;Traffic"
10 
11 #Ajout de la template service à la template d hôte
12 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-WAN;APP-OPNSense-SNMP-SLM"

Traffic-LAN

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;Traffic-LAN;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;INTERFACEID;igb1"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;WARNINGIN;'80'"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;CRITICALIN;'90'"
 7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;WARNINGOUT;'80'"
 8 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;CRITICALOUT;'90'"
 9 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;graphtemplate;Traffic"
10 
11 #Ajout de la template service à la template d hôte
12 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Traffic-LAN;APP-OPNSense-SNMP-SLM"

Load

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Load;Load;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Load;check_command;Check_OS_FreeBSD_SNMP_Load"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Load;WARNING;'4,3,2'"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Load;CRITICAL;'6,5,4'"
6 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Load;graphtemplate;LOAD_Average"
7 
8 #Ajout de la template service à la template d hôte
9 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Load;APP-OPNSense-SNMP-SLM"

Memory

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Memory;Memory;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Memory;check_command;Check_OS_FreeBSD_SNMP_Memory"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Memory;WARNING;'80'"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Memory;CRITICAL;'90'"
6 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Memory;graphtemplate;Memory"
7 
8 #Ajout de la template service à la template d hôte
9 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Memory;APP-OPNSense-SNMP-SLM"

Process

Process-Generic

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-Generic;Process-Generic;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-Generic;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-Generic;CRITICAL;'1:'"
5 
6 #Ajout de la template service à la template d hôte
7 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-Generic;APP-OPNSense-SNMP-SLM"

Process-lighttpd

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;Process-lighttpd;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;PROCESSNAME;lighttpd"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;CRITICAL;'1:'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-lighttpd;APP-OPNSense-SNMP-SLM"

Process-nginx

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-nginx;Process-nginx;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-nginx;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-nginx;PROCESSNAME;nginx"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-nginx;CRITICAL;'3:'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-nginx;APP-OPNSense-SNMP-SLM"

Process-openvpn

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;Process-openvpn;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;PROCESSNAME;openvpn"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;CRITICAL;'1:'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-openvpn;APP-OPNSense-SNMP-SLM"

Process-pf

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-pf;Process-pf;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-pf;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-pf;PROCESSPATH;/usr/local/sbin/filterlog "
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-pf;CRITICAL;'1:'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-pf;APP-OPNSense-SNMP-SLM"

Process-SysLog_Distant

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;Process-SysLog_Distant;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;PROCESSNAME;syslog-ng"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;CRITICAL;'1:'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Distant;APP-OPNSense-SNMP-SLM"

Process-SysLog_Local

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;Process-SysLog_Local;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;PROCESSNAME;syslogd"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;CRITICAL;'1:'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-SysLog_Local;APP-OPNSense-SNMP-SLM"

Process-Unbound DNS

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;Process-Unbound DNS;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;PROCESSNAME;unbound"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;CRITICAL;'1:'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Process-Unbound DNS;APP-OPNSense-SNMP-SLM"

Disk

Disk-root

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-root;Disk-root;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-root;check_command;Check_OS_FreeBSD_SNMP_Disk-Global"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-root;DISKNAME;'/'"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-root;WARNING;'80'"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-root;CRITICAL;'90'"
 7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-root;EXTRAOPTIONS;--verbose --filter-perfdata='storage.space|used|free'"
 8 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-root;graphtemplate;Storage"
 9 
10 #Ajout de la template service à la template d hôte
11 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-root;APP-OPNSense-SNMP-SLM"

Disk-tmp

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;Disk-tmp;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;check_command;Check_OS_FreeBSD_SNMP_Disk-Global"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;DISKNAME;'/tmp'"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;WARNING;'80'"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;CRITICAL;'90'"
 7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;EXTRAOPTIONS;--verbose --filter-perfdata='storage.space|used|free'"
 8 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;graphtemplate;Storage"
 9 
10 #Ajout de la template service à la template d hôte
11 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-tmp;APP-OPNSense-SNMP-SLM"

Disk-var

 1 #Création template service
 2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Disk-var;Disk-var;generic-active-service-custom"
 3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-var;check_command;Check_OS_FreeBSD_SNMP_Disk-Global"
 4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-var;DISKNAME;'/var'"
 5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-var;WARNING;'80'"
 6 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-var;CRITICAL;'90'"
 7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Disk-var;EXTRAOPTIONS;--verbose --filter-perfdata='storage.space|used|free'"
 8 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Disk-var;graphtemplate;Storage"
 9 
10 #Ajout de la template service à la template d hôte
11 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Disk-var;APP-OPNSense-SNMP-SLM"

Tcpcon

Tcpcon-Generic

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Generic;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic"
4 
5 #Ajout de la template service à la template d hôte
6 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Generic;APP-OPNSense-SNMP-SLM"

Tcpcon-Nginx

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;Tcpcon-Nginx;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic"
4 
5 #Ajout de la template service à la template d hôte
6 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;APP-OPNSense-SNMP-SLM"
7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Tcpcon-Nginx;EXTRAOPTIONS;--service='Nginx,,,443,,,,10,20'"

Tcpcon-SSH

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Tcpcon-SSH;Tcpcon-SSH;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Tcpcon-SSH;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic"
4 
5 #Ajout de la template service à la template d hôte
6 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Tcpcon-SSH;APP-OPNSense-SNMP-SLM"
7 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Tcpcon-SSH;EXTRAOPTIONS;--service='ssh,,,8022,,,,5,10'"

Ntp

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Ntp;Ntp;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Ntp;check_command;Check_OS_FreeBSD_SNMP_Ntp"
4 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Ntp;WARNING;'-1:1'"
5 clapi -o STPL -a setmacro -v "Stpl_APP_OPNSense_SNMP_Ntp;CRITICAL;'-2:2'"
6 
7 #Ajout de la template service à la template d hôte
8 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Ntp;APP-OPNSense-SNMP-SLM"

Uptime

1 #Création template service
2 clapi -o STPL -a add -v "Stpl_APP_OPNSense_SNMP_Uptime;Uptime;generic-active-service-custom"
3 clapi -o STPL -a setparam -v "Stpl_APP_OPNSense_SNMP_Uptime;check_command;Check_OS_FreeBSD_SNMP_Uptime"
4 
5 #Ajout de la template service à la template d hôte
6 clapi -o STPL -a addhost -v "Stpl_APP_OPNSense_SNMP_Uptime;APP-OPNSense-SNMP-SLM"