> - Downloads
> - Example: SNMP Monitoring of Multiple MIB Objects
> - Related Topics
> - SNMP Monitoring on C Series Controllers
> - Configuring an SNMP Alarm on a C Series Controller (SRC CLI)
> - Configuration Statements for Customized SRC SNMP Monitors

> ## Example: SNMP Monitoring of Multiple MIB Objects

> You can configure SNMP to monitor a column of a MIB table and configure SNMP notifications to include MIB objects located in the same row as the object that generates the event. This example shows how to configure an alarm to generate an event in response to error conditions and send notifications that contain both the number of router errors and router timeouts .

> This example uses the juniSaeRouterTable shown in Table 1. SNMP monitors the juniSaeRouterMsgErrors branch, and sends a notification object (juniSdxMibs.24.2.1) for the objects in the same row as the object attached to the notification: juniSaeRouterMsgTimeouts and juniSaeRouterMsgErrors. The monitor generates an event named routerErrorEvent for the column juniSaeRouterMsgErrors.

> Table 1: Example Table for juniSaeRouterTable Object

> juniSaeRouterClinetId | juniSaeRouterMsgErrors | juniSaeRouterMsgTimeouts
> --- | --- | ---
> default@router1 | 100 | 5
> default@router2 | 11 | 0
> default@router3 | 52 | 2
> ... | ... | ...

> The following example shows the configuration for this scenario.

> `
> snmp monitor {
>   alarm saeRouterErrors {
>     variable juniSaeRouterMsgErrors;
>     //strict-oid;
>     event routerErrorEvent;
>     …
>   }
>   event routerErrorEvent notification {
>     oid juniSdxMibs.24.2.1
>     wildcarded-object [juniSaeRouterMsgErrors,
>     juniSaeRouterMsgTimeouts]
>   }
> }
> `

> #### Published: 2009-09-10

> Copyright © 2009, Juniper Networks, Inc. All rights reserved. Trademark Notice.

Copyright © 2009, Juniper Networks, Inc. All rights reserved. Trademark Notice.