Plugin OS-FreeBSD-snmp
De SLM - MediaWiki
Sommaire
- 1 Plugin
- 2 Le template d’hôte
- 2.1 Cpu
- 2.2 Cpu-Detailed
- 2.3 Disk-IO
- 2.4 Inodes
- 2.5 Packet-Errors-Generic-Id
- 2.6 Packet-Errors-Generic-Name
- 2.7 Packet-Errors-Global
- 2.8 Traffic-Generic-Id
- 2.9 Traffic-Generic-Name
- 2.10 Traffic-Global
- 2.11 Load
- 2.12 Memory
- 2.13 Process-Generic
- 2.14 Disk-Generic-Id
- 2.15 Disk-Generic-Name
- 2.16 Service-Disk-Global
- 2.17 Swap
- 2.18 Tcpcon-Generic
- 2.19 Ntp
- 2.20 Uptime
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
1 clapi -o HTPL -a add -v "OS-FreeBSD-SNMP-SLM;OS-FreeBSD-SNMP-SLM;;;;"
2 clapi -o HTPL -a addtemplate -v "OS-FreeBSD-SNMP-SLM;generic-active-host-custom"
Cpu
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' "
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu;Cpu;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;WARNING;80"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu;CRITICAL;90"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;graphtemplate;CPU"
13
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM"
Cpu-Detailed
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu-detailed --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-idle='\$_SERVICEWARNINGIDLE\$' --critical-idle='\$_SERVICECRITICALIDLE\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_cpu-detailed;Cpu-Detailed;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;WARNINGIDLE;20:"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;CRITICALIDLE;10:"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'"
13 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;graphtemplate;CPU"
14
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;OS-FreeBSD-SNMP-SLM"
Disk-IO
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-IO;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=diskio --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --device='\$_SERVICEDISKNAME\$' --name --warning-read='\$_SERVICEWARNINGREAD\$' --critical-read='\$_SERVICECRITICALREAD\$' --warning-write='\$_SERVICEWARNINGWRITE\$' --critical-write='\$_SERVICECRITICALWRITE\$' "
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;Disk-IO;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGREAD;''"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALREAD;''"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGWRITE;''"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALWRITE;''"
14
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;OS-FreeBSD-SNMP-SLM"
Inodes
ATTENTION: Besoin d'activer "includeAllDisks 10%" on snmpd.conf.
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Inodes;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=inodes --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --diskpath='\$_SERVICEDISKNAME\$' --name --regexp --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$' --filter-device='\$_SERVICEFILTERDEVICE\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Inodes;Inodes;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Inodes;check_command;Check_OS_FreeBSD_SNMP_Inodes"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;DISKNAME;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;CRITICAL;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;WARNING;'80'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;FILTERDEVICE;'^(?!(tmpfs|devpts|none|proc|sysfs|sunrpc|\/\/.*)$)'"
14 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'"
15
16 #Ajout de la template service à la template d hôte
17 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Inodes;OS-FreeBSD-SNMP-SLM"
Packet-Errors-Generic-Id
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;Packet-Errors-Generic-Id;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;;''"
11
12 #Ajout de la template service à la template d hôte
13 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;OS-FreeBSD-SNMP-SLM"
Packet-Errors-Generic-Name
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;Packet-Errors-Generic-Name;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;INTERFACEID;'^.*$'"
11
12 #Ajout de la template service à la template d hôte
13 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;OS-FreeBSD-SNMP-SLM"
Packet-Errors-Global
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;INTERFACEID;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;EXTRAOPTIONS;'--verbose'"
12
13 #Ajout de la template service à la template d hôte
14 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;OS-FreeBSD-SNMP-SLM"
Traffic-Generic-Id
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;Traffic-Generic-Id;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Id"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGIN;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALIN;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;WARNINGOUT;'80'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;CRITICALOUT;'90'"
14 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;graphtemplate;Traffic"
15
16 #Ajout de la template service à la template d hôte
17 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;OS-FreeBSD-SNMP-SLM"
Traffic-Generic-Name
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;Traffic-Generic-Name;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;INTERFACEID;'^.*$'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGIN;'80'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALIN;'90'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;WARNINGOUT;'80'"
14 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;CRITICALOUT;'90'"
15 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;graphtemplate;Traffic"
16
17 #Ajout de la template service à la template d hôte
18 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;OS-FreeBSD-SNMP-SLM"
Traffic-Global
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;check_command;Check_OS_FreeBSD_SNMP_Traffic-Global"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;INTERFACEID;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGIN;'80'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALIN;'90'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;WARNINGOUT;'80'"
14 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;CRITICALOUT;'90'"
15 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;EXTRAOPTIONS;'--verbose'"
16 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;graphtemplate;Traffic"
17
18 #Ajout de la template service à la template d hôte
19 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;OS-FreeBSD-SNMP-SLM"
Load
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Load;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=load --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Load;Load;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;check_command;Check_OS_FreeBSD_SNMP_Load"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;WARNING;'4,3,2'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Load;CRITICAL;'6,5,4'"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;graphtemplate;LOAD_Average"
13
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Load;OS-FreeBSD-SNMP-SLM"
Memory
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Memory;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=memory --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Memory;Memory;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;check_command;Check_OS_FreeBSD_SNMP_Memory"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;WARNING;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Memory;CRITICAL;'90'"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;graphtemplate;Memory"
13
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Memory;OS-FreeBSD-SNMP-SLM"
Process-Generic
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Process-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=processcount --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --process-name='\$_SERVICEPROCESSNAME\$' --process-path='\$_SERVICEPROCESSPATH\$' --process-args='\$_SERVICEPROCESSARGS\$' --regexp-name --regexp-path --regexp-args --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;Process-Generic;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;check_command;Check_OS_FreeBSD_SNMP_Process-Generic"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;CRITICAL;'1:'"
11
12 #Ajout de la template service à la template d hôte
13 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;OS-FreeBSD-SNMP-SLM"
Disk-Generic-Id
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKID\$' --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;Disk-Generic-Id;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Id"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;WARNING;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;CRITICAL;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
13 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;graphtemplate;Storage"
14
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;OS-FreeBSD-SNMP-SLM"
Disk-Generic-Name
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;Disk-Generic-Name;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Name"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;WARNING;'80'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;CRITICAL;'90'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;EXTRAOPTIONS;'--filter-perfdata='storage.space|used|free''"
13 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;graphtemplate;Storage"
14
15 #Ajout de la template service à la template d hôte
16 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;OS-FreeBSD-SNMP-SLM"
Service-Disk-Global
1 #Création commande
2 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\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;Service-Disk-Global;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;check_command;Check_OS_FreeBSD_SNMP_Service-Disk-Global"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;DISKNAME;'.*'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;WARNING;'80'"
12 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;CRITICAL;'90'"
13 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;EXTRAOPTIONS;'--verbose --filter-perfdata='storage.space|used|free''"
14 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;graphtemplate;Storage"
15
16 #Ajout de la template service à la template d hôte
17 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;OS-FreeBSD-SNMP-SLM"
Swap
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Swap;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=swap --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage-prct='\$_SERVICEWARNING\$' --critical-usage-prct='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Swap;Swap;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;check_command;Check_OS_FreeBSD_SNMP_Swap"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;WARNING;'10'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Swap;CRITICAL;'30'"
12 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;graphtemplate;Memory"
13
14 #Ajout de la template service à la template d hôte
15 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Swap;OS-FreeBSD-SNMP-SLM"
Tcpcon-Generic
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=tcpcon --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic"
10
11 #Ajout de la template service à la template d hôte
12 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;OS-FreeBSD-SNMP-SLM"
Ntp
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Ntp;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=time --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --ntp-hostname='\$_SERVICENTPADDR\$' --ntp-port='\$_SERVICENTPPORT\$' --warning-offset='\$_SERVICEWARNING\$' --critical-offset='\$_SERVICECRITICAL\$' --timezone='\$_SERVICETIMEZONE\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Ntp;Ntp;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Ntp;check_command;Check_OS_FreeBSD_SNMP_Ntp"
10 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;WARNING;'-1:1'"
11 clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;CRITICAL;'-2:2'"
12
13 #Ajout de la template service à la template d hôte
14 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Ntp;OS-FreeBSD-SNMP-SLM"
Uptime
1 #Création commande
2 clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Uptime;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=uptime --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'"
3 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;enable_shell;0"
4 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_activate;1"
5 clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_locked;0"
6
7 #Création template service
8 clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Uptime;Uptime;generic-active-service-custom"
9 clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Uptime;check_command;Check_OS_FreeBSD_SNMP_Uptime"
10
11 #Ajout de la template service à la template d hôte
12 clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Uptime;OS-FreeBSD-SNMP-SLM"