Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Los umbrales se ejecutarán en el siguiente ciclo de sondeo o cuando se hayan configurado para ejecutarse. Puede ejecutarlos a demanda desde la línea de comandos con el siguiente comando (meatball es mi enrutador, así que cámbielo según el nombre de su dispositivo).

Además de ejecutar un perl -c en consola al archivo que se ha modificado para asegurar que la sintaxis esté correcta, en este caso al archivo Common-threshold.nmis:

Code Block
/usr/local/nmis8nmis9/bin/nmis.pl type=threshold debug-cli act=schedule job.type=update job.node=meatball job.verbosity=9 job.force=true node=meatballdebug=9
/ruta/del/archivo/perl -c Common-threshold.nmis

Agregar un nuevo bloque de selección

Ahora necesitamos volver a agregar el que secuestramostomamos al principio. Para ello, añadimos un nuevo bloque de selección y hacemos clic en "Agregar".

...

Ahora tenemos el antiguo umbral secuestrado que tomamos al principio, creado nuevamente, listo para el umbral de baja velocidad.

...

Acerca de los controles de umbral

Umbrales simples

En el NMIS, un umbral simple se define de la siguiente manera:

...

En el archivo /usr/local/nmis8nmis9/models-custom/Common-threshold.nmis esto se ve así:

...

Los controles son pequeños fragmentos de código que se evaluarán cuando sea necesario, por lo que es posible que desees hacer los siguientes tipos de cosasevaluaciones.


Result

Control

Apply the threshold to all devices in the group "Sales"

$group eq "Sales"

Apply the threshold to all devices starting with the IP address 192.168

$host =~ /192\.168/

Apply the threshold to all Cisco IOS devices

$sysDescr =~ /Cisco IOS/

Use this threshold if the interface speed is between 1 and 5 megabits/second

$ifSpeed <= 5000000 and $ifSpeed >= 1000000

Use this threshold if the interface speed is 10 megabits

$ifSpeed == 10000000

Use this threshold if the interface speed is 100 megabits

$ifSpeed == 100000000

Use this threshold if the interface speed is 1 gigabits

$ifSpeed == 1000000000

Use this threshold if the disk is larger than 100 gigabytes

$hrDiskSize >= 104857600000

...

Hay dos opciones: reducir la configuración de amortiguación a un nivel inferior, por ejemplo, al 1 %, que debería ser suficiente, o desactivar la función. Puede editar esto en la interfaz gráfica de usuario (en la sección "globales") o modificar directamente la configuración en nmis8nmis9/conf/Config.nmis.

Para reducirlo al 1%, cambie los valores de configuración a:

...