Hy I tried that and It worked. But I have a new problem.
I changed my file like this:

monitor -r 10 -o dskPath      -o dskErrorMsg   "dskTable alert"
dskErrorFlag  != 0
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?

Thanks you very much..


On Thu, Jul 31, 2008 at 11:24 AM, Dave Shield
<[EMAIL PROTECTED]> wrote:
> 2008/7/31 Osvaldo Alvarez Pozo <[EMAIL PROTECTED]>:
>>  I have a problem sending snmptraps. I check disk space, and load. I
>> want to send a trap in case on disk space probleme, an another when
>> disk space is normal again.
>
>> monitor -r 80 -o prNames      -o prErrMessage  "procTable" prErrorFlag   != 0
>> monitor -r 80 -o prNames      -o prErrMessage  "procTable" prErrorFlag   == 0
>
> Try using distinct names for the "problem" and "clear" monitor entries:
>
> monitor -r 80 -o ....  "procTable alert" prErrorFlag   != 0
> monitor -r 80 -o ....  "procTable clear" prErrorFlag   == 0
>
>
> I suspect (though I haven't checked the code), that the second monitor
> entry is being rejected as a duplicate entry.
>
> 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

Reply via email to