Plugin OS-FreeBSD-snmp : Différence entre versions
De SLM - MediaWiki
Ligne 6 : | Ligne 6 : | ||
==Le template d’hôte== | ==Le template d’hôte== | ||
Nous regrouperons les services dans un template dhôte nommé OS-Linux-ssh | Nous regrouperons les services dans un template dhôte nommé OS-Linux-ssh | ||
− | <syntaxhighlight lang="shell"> clapi -o HTPL -a add -v "OS-FreeBSD-SNMP-SLM;OS-FreeBSD-SNMP-SLM;;;;" | + | <syntaxhighlight lang="shell">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"</syntaxhighlight> | clapi -o HTPL -a addtemplate -v "OS-FreeBSD-SNMP-SLM;generic-active-host-custom"</syntaxhighlight> | ||
===Cpu=== | ===Cpu=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' " | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' " | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;enable_shell;0" | ||
Ligne 16 : | Ligne 16 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu;Cpu;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu;Cpu;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;check_command;Check_OS_FreeBSD_SNMP_Cpu" | ||
Ligne 23 : | Ligne 23 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;graphtemplate;CPU" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu;graphtemplate;CPU" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Cpu-Detailed=== | ===Cpu-Detailed=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu-detailed --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-idle='\$_SERVICEWARNING\$' --critical-idle='\$_SERVICECRITICAL\$' --verbose " | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=cpu-detailed --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-idle='\$_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;enable_shell;0" | ||
Ligne 33 : | Ligne 33 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu-Detailed;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;Cpu-Detailed;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;Cpu-Detailed;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;check_command;Check_OS_FreeBSD_SNMP_Cpu-Detailed" | ||
Ligne 40 : | Ligne 40 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;graphtemplate;CPU" | 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" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Cpu-Detailed;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Disk-IO=== | ===Disk-IO=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-IO;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=diskio --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --device='\$_SERVICEDISKNAME\$' --name --warning-read='\$_SERVICEWARNINGREAD\$' --critical-read='\$_SERVICECRITICALREAD\$' --warning-write='\$_SERVICEWARNINGWRITE\$' --critical-write='\$_SERVICECRITICALWRITE\$' " | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-IO;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=diskio --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --device='\$_SERVICEDISKNAME\$' --name --warning-read='\$_SERVICEWARNINGREAD\$' --critical-read='\$_SERVICECRITICALREAD\$' --warning-write='\$_SERVICEWARNINGWRITE\$' --critical-write='\$_SERVICECRITICALWRITE\$' " | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;enable_shell;0" | ||
Ligne 50 : | Ligne 50 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;Disk-IO;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;Disk-IO;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO" | ||
Ligne 58 : | Ligne 58 : | ||
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALWRITE;''" | clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALWRITE;''" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Inodes=== | ===Inodes=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Inodes;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=inodes --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --diskpath='\$_SERVICEDISKNAME\$' --name --regexp --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$' --filter-device='\$_SERVICEFILTERDEVICE\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Inodes;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=inodes --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --diskpath='\$_SERVICEDISKNAME\$' --name --regexp --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$' --filter-device='\$_SERVICEFILTERDEVICE\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;enable_shell;0" | ||
Ligne 68 : | Ligne 68 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_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 add -v "Stpl_OS_FreeBSD_SNMP_Inodes;Inodes;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Inodes;check_command;Check_OS_FreeBSD_SNMP_Inodes" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Inodes;check_command;Check_OS_FreeBSD_SNMP_Inodes" | ||
Ligne 77 : | Ligne 77 : | ||
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'" | clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Inodes;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Inodes;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Packet-Errors-Generic-Id=== | ===Packet-Errors-Generic-Id=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;enable_shell;0" | ||
Ligne 87 : | Ligne 87 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;Packet-Errors-Generic-Id;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;Packet-Errors-Generic-Id;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id" | ||
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;;''" | clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;;''" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Id;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Packet-Errors-Generic-Name=== | ===Packet-Errors-Generic-Name=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;enable_shell;0" | ||
Ligne 102 : | Ligne 102 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;Packet-Errors-Generic-Name;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;Packet-Errors-Generic-Name;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name" | ||
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;INTERFACEID;'^.*$'" | clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;INTERFACEID;'^.*$'" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Generic-Name;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Packet-Errors-Global=== | ===Packet-Errors-Global=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-errors --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-discard='\$_SERVICEWARNINGINDISCARD\$' --critical-in-discard='\$_SERVICECRITICALINDISCARD\$' --warning-out-discard='\$_SERVICEWARNINGOUTDISCARD\$' --critical-out-discard='\$_SERVICECRITICALOUTDISCARD\$' --warning-in-error='\$_SERVICEWARNINGINERROR\$' --critical-in-error='\$_SERVICECRITICALINERROR\$' --warning-out-error='\$_SERVICEWARNINGOUTERROR\$' --critical-out-error='\$_SERVICECRITICALOUTERROR\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;enable_shell;0" | ||
Ligne 117 : | Ligne 117 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Packet-Errors-Global;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;Packet-Errors-Global;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;check_command;Check_OS_FreeBSD_SNMP_Packet-Errors-Global" | ||
Ligne 123 : | Ligne 123 : | ||
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;EXTRAOPTIONS;'--verbose'" | clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;EXTRAOPTIONS;'--verbose'" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Packet-Errors-Global;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Traffic-Generic-Id=== | ===Traffic-Generic-Id=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;enable_shell;0" | ||
Ligne 133 : | Ligne 133 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Id;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;Traffic-Generic-Id;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;Traffic-Generic-Id;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Id" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Id" | ||
Ligne 142 : | Ligne 142 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;graphtemplate;Traffic" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;graphtemplate;Traffic" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Id;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Traffic-Generic-Name=== | ===Traffic-Generic-Name=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;enable_shell;0" | ||
Ligne 152 : | Ligne 152 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Generic-Name;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;Traffic-Generic-Name;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;Traffic-Generic-Name;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Traffic-Generic-Name" | ||
Ligne 162 : | Ligne 162 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;graphtemplate;Traffic" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;graphtemplate;Traffic" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Generic-Name;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Traffic-Global=== | ===Traffic-Global=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Traffic-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=interfaces --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --interface='\$_SERVICEINTERFACEID\$' --name --add-status --add-traffic --critical-status='\$_SERVICECRITICALSTATUS\$' --warning-in-traffic='\$_SERVICEWARNINGIN\$' --critical-in-traffic='\$_SERVICECRITICALIN\$' --warning-out-traffic='\$_SERVICEWARNINGOUT\$' --critical-out-traffic='\$_SERVICECRITICALOUT\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;enable_shell;0" | ||
Ligne 172 : | Ligne 172 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Traffic-Global;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;Traffic-Global;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;check_command;Check_OS_FreeBSD_SNMP_Traffic-Global" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;check_command;Check_OS_FreeBSD_SNMP_Traffic-Global" | ||
Ligne 183 : | Ligne 183 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;graphtemplate;Traffic" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;graphtemplate;Traffic" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Traffic-Global;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Load=== | ===Load=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Load;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=load --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Load;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=load --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;enable_shell;0" | ||
Ligne 193 : | Ligne 193 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Load;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Load;Load;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Load;Load;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;check_command;Check_OS_FreeBSD_SNMP_Load" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;check_command;Check_OS_FreeBSD_SNMP_Load" | ||
Ligne 200 : | Ligne 200 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;graphtemplate;LOAD_Average" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Load;graphtemplate;LOAD_Average" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Load;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Load;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Memory=== | ===Memory=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Memory;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=memory --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Memory;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=memory --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-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;enable_shell;0" | ||
Ligne 210 : | Ligne 210 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Memory;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Memory;Memory;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Memory;Memory;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;check_command;Check_OS_FreeBSD_SNMP_Memory" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;check_command;Check_OS_FreeBSD_SNMP_Memory" | ||
Ligne 217 : | Ligne 217 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;graphtemplate;Memory" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Memory;graphtemplate;Memory" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Memory;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Memory;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Process-Generic=== | ===Process-Generic=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Process-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=processcount --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --process-name='\$_SERVICEPROCESSNAME\$' --process-path='\$_SERVICEPROCESSPATH\$' --process-args='\$_SERVICEPROCESSARGS\$' --regexp-name --regexp-path --regexp-args --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Process-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=processcount --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --process-name='\$_SERVICEPROCESSNAME\$' --process-path='\$_SERVICEPROCESSPATH\$' --process-args='\$_SERVICEPROCESSARGS\$' --regexp-name --regexp-path --regexp-args --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;enable_shell;0" | ||
Ligne 227 : | Ligne 227 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Process-Generic;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;Process-Generic;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;Process-Generic;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;check_command;Check_OS_FreeBSD_SNMP_Process-Generic" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;check_command;Check_OS_FreeBSD_SNMP_Process-Generic" | ||
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;CRITICAL;'1:'" | clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;CRITICAL;'1:'" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Process-Generic;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Disk-Generic-Id=== | ===Disk-Generic-Id=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKID\$' --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKID\$' --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;enable_shell;0" | ||
Ligne 242 : | Ligne 242 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Id;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;Disk-Generic-Id;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;Disk-Generic-Id;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Id" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Id" | ||
Ligne 250 : | Ligne 250 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;graphtemplate;Storage" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;graphtemplate;Storage" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Id;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Disk-Generic-Name=== | ===Disk-Generic-Name=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;enable_shell;0" | ||
Ligne 260 : | Ligne 260 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-Generic-Name;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;Disk-Generic-Name;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;Disk-Generic-Name;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Name" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;check_command;Check_OS_FreeBSD_SNMP_Disk-Generic-Name" | ||
Ligne 268 : | Ligne 268 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;graphtemplate;Storage" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;graphtemplate;Storage" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-Generic-Name;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Service-Disk-Global=== | ===Service-Disk-Global=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=storage --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --storage '\$_SERVICEDISKNAME\$' --name --regexp --display-transform-src='\$_SERVICETRANSFORMSRC\$' --display-transform-dst='\$_SERVICETRANSFORMDST\$' --warning-usage='\$_SERVICEWARNING\$ --critical-usage='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_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;enable_shell;0" | ||
Ligne 278 : | Ligne 278 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Service-Disk-Global;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_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 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 setparam -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;check_command;Check_OS_FreeBSD_SNMP_Service-Disk-Global" | ||
Ligne 287 : | Ligne 287 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;graphtemplate;Storage" | 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" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Service-Disk-Global;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Swap=== | ===Swap=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Swap;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=swap --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage-prct='\$_SERVICEWARNING\$' --critical-usage-prct='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Swap;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=swap --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-usage-prct='\$_SERVICEWARNING\$' --critical-usage-prct='\$_SERVICECRITICAL\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;enable_shell;0" | ||
Ligne 297 : | Ligne 297 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Swap;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Swap;Swap;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Swap;Swap;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;check_command;Check_OS_FreeBSD_SNMP_Swap" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;check_command;Check_OS_FreeBSD_SNMP_Swap" | ||
Ligne 304 : | Ligne 304 : | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;graphtemplate;Memory" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Swap;graphtemplate;Memory" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Swap;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Swap;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Tcpcon-Generic=== | ===Tcpcon-Generic=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=tcpcon --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=tcpcon --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;enable_shell;0" | ||
Ligne 314 : | Ligne 314 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Tcpcon-Generic;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;Tcpcon-Generic;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;check_command;Check_OS_FreeBSD_SNMP_Tcpcon-Generic" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Tcpcon-Generic;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Ntp=== | ===Ntp=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Ntp;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=time --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --ntp-hostname='\$_SERVICENTPADDR\$' --ntp-port='\$_SERVICENTPPORT\$' --warning-offset='\$_SERVICEWARNING\$' --critical-offset='\$_SERVICECRITICAL\$' --timezone='\$_SERVICETIMEZONE\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Ntp;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=time --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --ntp-hostname='\$_SERVICENTPADDR\$' --ntp-port='\$_SERVICENTPPORT\$' --warning-offset='\$_SERVICEWARNING\$' --critical-offset='\$_SERVICECRITICAL\$' --timezone='\$_SERVICETIMEZONE\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;enable_shell;0" | ||
Ligne 328 : | Ligne 328 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Ntp;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Ntp;Ntp;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Ntp;Ntp;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Ntp;check_command;Check_OS_FreeBSD_SNMP_Ntp" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Ntp;check_command;Check_OS_FreeBSD_SNMP_Ntp" | ||
Ligne 334 : | Ligne 334 : | ||
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;CRITICAL;'-2:2'" | clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Ntp;CRITICAL;'-2:2'" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Ntp;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Ntp;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
===Uptime=== | ===Uptime=== | ||
− | + | <syntaxhighlight lang="shell">#Création commande | |
clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Uptime;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=uptime --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | clapi -o CMD -a ADD -v "Check_OS_FreeBSD_SNMP_Uptime;2;\$CENTREONPLUGINS\$/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin --mode=uptime --hostname=\$HOSTADDRESS\$ --snmp-version=\$_HOSTSNMPVERSION\$ --snmp-community=\$_HOSTSNMPCOMMUNITY\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning='\$_SERVICEWARNING\$' --critical='\$_SERVICECRITICAL\$'" | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;enable_shell;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;enable_shell;0" | ||
Ligne 344 : | Ligne 344 : | ||
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_locked;0" | clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Uptime;command_locked;0" | ||
− | + | #Création template service | |
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Uptime;Uptime;generic-active-service-custom" | clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Uptime;Uptime;generic-active-service-custom" | ||
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Uptime;check_command;Check_OS_FreeBSD_SNMP_Uptime" | clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Uptime;check_command;Check_OS_FreeBSD_SNMP_Uptime" | ||
− | + | #Ajout de la template service à la template d hôte | |
− | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Uptime;OS-FreeBSD-SNMP-SLM" | + | clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Uptime;OS-FreeBSD-SNMP-SLM"</syntaxhighlight> |
[[Catégorie:Centreon]] | [[Catégorie:Centreon]] |
Version du 10 avril 2020 à 08:56
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
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\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' "
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Cpu;command_locked;0"
#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\$ \$_HOSTEXTRAOPTIONS\$ \$_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\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --device='\$_SERVICEDISKNAME\$' --name --warning-read='\$_SERVICEWARNINGREAD\$' --critical-read='\$_SERVICECRITICALREAD\$' --warning-write='\$_SERVICEWARNINGWRITE\$' --critical-write='\$_SERVICECRITICALWRITE\$' "
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Disk-IO;command_locked;0"
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;Disk-IO;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;check_command;Check_OS_FreeBSD_SNMP_Disk-IO"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGREAD;''"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALREAD;''"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;WARNINGWRITE;''"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;CRITICALWRITE;''"
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Disk-IO;OS-FreeBSD-SNMP-SLM"
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\$ \$_HOSTEXTRAOPTIONS\$ \$_SERVICEEXTRAOPTIONS\$ --diskpath='\$_SERVICEDISKNAME\$' --name --regexp --warning-usage='\$_SERVICEWARNING\$' --critical-usage='\$_SERVICECRITICAL\$' --filter-device='\$_SERVICEFILTERDEVICE\$'"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;enable_shell;0"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_activate;1"
clapi -o CMD -a setparam -v "Check_OS_FreeBSD_SNMP_Inodes;command_locked;0"
#Création template service
clapi -o STPL -a add -v "Stpl_OS_FreeBSD_SNMP_Inodes;Inodes;generic-active-service-custom"
clapi -o STPL -a setparam -v "Stpl_OS_FreeBSD_SNMP_Inodes;check_command;Check_OS_FreeBSD_SNMP_Inodes"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;DISKNAME;'.*'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;CRITICAL;'90'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;WARNING;'80'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;FILTERDEVICE;'^(?!(tmpfs|devpts|none|proc|sysfs|sunrpc|\/\/.*)$)'"
clapi -o STPL -a setmacro -v "Stpl_OS_FreeBSD_SNMP_Inodes;EXTRAOPTIONS;'--verbose'"
#Ajout de la template service à la template d hôte
clapi -o STPL -a addhost -v "Stpl_OS_FreeBSD_SNMP_Inodes;OS-FreeBSD-SNMP-SLM"
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"