Michael Lineback wrote:
> I am not receiving any traps from my disk monitors.     I am getting
> the error field populated by the Disk monitors.      I do have the
> disk section of the snmd.conf file set to report the disks.
>
> disk /u01 50%
>
> monitor -i -r 30 -o dskPath.1 -o dskErrorMsg.1 "u01 file system"
> dskErrorFlag.1 !=0
>
> The monitor poputlates the dskEntry,dskErrorMsg:5 with "/u01:less than
> 50% free (=40%).    Which is correct for populating the mib sections.
>
> I am not getting any snmptraps from this but I know snmptrap variables
> are correct as I get traps from the snmpdaemon when it goes up or
> down.     Any ideas to get the data to my monitoring server  would be
> helpful.
>
> Thanks
Let me show you an example, which currently working:

# Internal user for monitoring/notification purposes
createUser _peer MD5 "auth_pass_phrase"
rwuser _peer

# Traps behaviour definitions
trapcommunity    [community]
trap2sink        [nmsaddr]:[nmsport]

# Main section
agentSecName _peer

notificationEvent dsk_full DISMAN-EVENT-MIB::mteTriggerFired -o
UCD-SNMP-MIB::dskPath -o UCD-SNMP-MIB::dskDevice -o
UCD-SNMP-MIB::dskErrorMsg
monitor -e dsk_full -r 60 "dskFulll" UCD-SNMP-MIB::dskErrorFlag == 1

disk /u01 50%

Note a spaces around == operator in "monitor" clause. Do not forget
about this requirement. Also, I think that you must delete that
"hanging" -i option without subsequent OID. Finally, you use -o
parameter and simultaneously specify subidentifier in OID - that's
possibly competing options.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to