Plugin OS-FreeBSD-snmp : Différence entre versions
De SLM - MediaWiki
(→CPU) |
|||
Ligne 1 : | Ligne 1 : | ||
+ | [[Plugins | Retour]] | ||
+ | |||
+ | ==Plugin== | ||
/usr/lib/centreon/plugins/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin | /usr/lib/centreon/plugins/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin | ||
− | + | ==HOST== | |
− | |||
− | |||
*Creation de la template d'hote | *Creation de la template d'hote | ||
clapi -o HTPL -a add -v "OS-FreeBSD-snmp;OS-FreeBSD-snmp;;;;" | clapi -o HTPL -a add -v "OS-FreeBSD-snmp;OS-FreeBSD-snmp;;;;" | ||
Ligne 9 : | Ligne 10 : | ||
− | + | ==cpu== | |
*Creation commande | *Creation 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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --warning-average='\$_SERVICEWARNING\$' --critical-average='\$_SERVICECRITICAL\$' " | ||
Ligne 26 : | Ligne 27 : | ||
clapi -o STPL -a addhost -v "stpl_os_freebsd_snmp_cpu;OS-FreeBSD-snmp" | clapi -o STPL -a addhost -v "stpl_os_freebsd_snmp_cpu;OS-FreeBSD-snmp" | ||
− | + | ==cpu-detailed== | |
*Creation commande | *Creation 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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --warning-idle='\$_SERVICEWARNING\$' --critical-idle='\$_SERVICECRITICAL\$' --verbose " |
Version du 1 avril 2020 à 07:49
Sommaire
Plugin
/usr/lib/centreon/plugins/centreon_plugins.pl --plugin=os::freebsd::snmp::plugin
HOST
- Creation de la template d'hote
clapi -o HTPL -a add -v "OS-FreeBSD-snmp;OS-FreeBSD-snmp;;;;" clapi -o HTPL -a addtemplate -v "OS-FreeBSD-snmp;generic-active-host-custom"
cpu
- Creation 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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --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"
- Creation 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'hote
clapi -o STPL -a addhost -v "stpl_os_freebsd_snmp_cpu;OS-FreeBSD-snmp"
cpu-detailed
- Creation 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$ $_HOSTOPTIONS$ $_SERVICEOPTION$ --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"
- Creation template service
clapi -o STPL -a add -v "stpl_os_freebsd_snmp_cpu-detailed;cpu;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'hote
clapi -o STPL -a addhost -v "stpl_os_freebsd_snmp_cpu-detailed;OS-FreeBSD-snmp"