AnsweredAssumed Answered

Heartbeat trap alert

Question asked by kevinyizhou on Apr 21, 2019
Latest reply on Apr 23, 2019 by kevinyizhou

For Spectrum 10.2 running on Solaris, we use snmptrap to generate a snmp heartbeat trap to monitor Spectrum server status via the following shell script:

 

/usr/sfw/bin/snmptrap -v 1 -c public $SSSERVER .1.3.6.1.4.1.1.590.2 $AGENTHOST 6 1 '' .1.3.6.1.4.1.1.590.2.1.1 s $SENDTIME .1.3.6.1.4.1.590.2.1.2 s "pulse"

 

But it won't work on Linux, it gave the following error:

s: Bad variable type ("1")

 

Here is the AlertMap info for this custom alert:

 

#HeartBeat_pulse                                   Timestamp

1.3.6.1.4.1.1.590.2.6.1     0x053609ae  1.3.6.1.4.1.1.590.2.1.1(1,0)\

                                                                # Message

                                                                1.3.6.1.4.1.1.590.2.1.2(2,0)

 

Could not figure out what variable type it should be.(have tried all 6 types of, none of them work).

 

Any help is much appreciated.

Thanks,

Kevin

Outcomes