Re: sending snmp traps
"Osvaldo Alvarez Pozo" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi. I notice that the OID sent when there is a disk space problem is the same as the one send when proces is not running. How could I make monitor to send differents OID for each resources monitored. Im am interested on disk space cpu load & proc. the following line " monitor -r 10 -o dskPath -o dskAvail -o dskTotal "dskTable " dskErrorFlag 0 1" makes snmpd to send: .1.3.6.1.2.1.88.2.0.2 when dskErrorFlag=1 .1.3.6.1.2.1.88.2.0.3 when dskErrorFlag=0 if I do the same for cpu load or swap memory I get the same values. I thing it could be logical, but that does not help to diferenciate the problem base on OIDs. Any Idea?? Thanks On Thu, Jul 31, 2008 at 3:54 PM, Osvaldo Alvarez Pozo <[email protected]> wrote: > Ok I got a solution. > > monitor -r 10 -o dskPath -o dskAvail -o dskTotal "dskTable " > dskErrorFlag 0 1 > > so when dskErrorFlag=1 I get .1.3.6.1.2.1.88.2.0.2 > and when dskErrorFlag=0 I get .1.3.6.1.2.1.88.2.0.3 > > Thanks > > > > On Thu, Jul 31, 2008 at 3:04 PM, Dave Shield <[email protected]> wrote: >> 2008/7/31 Osvaldo Alvarez Pozo <[email protected]>: >>> monitor -r 11 -o dskPath -o dskErrorMsg "dskTable clear " >>> dskErrorFlag == 0 >>> >>> now i get my trap, but the only problem is that it has almost the >>> same message WARNING: :Disk Space low dskTable clear (null) (null) >>> dskErrorFlag.1 0 /boot, and the OID is the same. >>> How could I send a diskOkMSg like OID? >> >> Use different '-o' options for the two monitors. >> E.g. omit 'dskErrorMsg' from the "dksTable clear" entry. >> >> Why would you be interested in an error message if the error has gone away? >> >> Dave >> > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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