Manjul Rai <manjul.rai <at> gmail.com> writes:

> 
> 
> Hello,
>  
> I have read the man pages and it seems that the monitor statement 
only accepts one expression.  I would love to find out if there is any way 
to do AND/OR logic in the monitor statement.
>  
> Challenge: Linux system has multiple interfaces; however, only a few are 
both admin and operationally up.  The rest are both admin and 
operationally down.
> Current solution: The standard link monitoring statements work off 
of the ifOperStatus.  For example, the following lines will generate 
linkDownTraps when the ifOperStatus is detected to be down (2):
>  
>     notificationEvent linkUpTrap linkUp ifIndex ifAdminStatus 
ifOperStatus ifName ifDescr
> 
>     notificationEvent linkDownTrap linkDown ifIndex ifAdminStatus 
ifOperStatus ifName ifDescr
> 
> 
>     monitor -u snmpdTrapUser -t -r 30 -e linkUpTrap "Generate linkUp" 
ifOperStatus != 2
> 
>     monitor -u snmpdTrapUser -t -r 30 -e linkDownTrap "Generate 
linkDown" ifOperStatus == 2
> Since, some of my interfaces will be both admin and operationally 
down, I only want to generate linkDownTraps IFF the interface is 
ifAdminStatus == UP AND ifOperStatus == DOWN.
>  
> Question: Is it possible to do something like the following:
>    monitor -u snmpdTrapUser -t -r 30 -e linkDownTrap "Generate 
linkDown" ifAdminStatus != 2 and ifOperStatus == 2
>  
> I know that the monitor statement does not support AND logic, but I 
am looking for any ideas on how to do this.
>  
> thanks,
> Manjul
> 
> 
> 
> 
> -------------------------------------------------------------------------
-----
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. 
Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> 
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users <at> lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> 

Is there someone have a workaround for this?



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to