Sending traps

"Wesley Naves de Faria" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi coders,
    I created a mib that check an service of my server and set the flag of the services as OK(0), Warning(1), Critical(2) NoResponse(3).

  So, i need that when change the state of flag the snmp send a trap. I tried to use the monitor in snmpd.conf, but if i put lines ( flag == 0 or == 1 or == 2 or == 3 ) to check is make 4 time.

How i can check the 4 states, and send a trap when to change the status making the check only 1 time to each 40 seconds  ?

-------------
Wesley Naves de Faria
Analista de suporte
FreeBSD/OpenBSD/Linux
AGANP - Agência Goiana de Administração Negócios Públicos
Contato: +55 (0XX62) 3201-6582
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.