Ad Widget

Collapse

SNMP Trap and multiple payload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • allrise
    Junior Member
    • Mar 2009
    • 18

    #16
    Originally posted by melpheos
    I think this was written on the Brent Jones website. Anyway, if you haven't done so you have to put here the path of your snmptt.conf.x file you have converted with snmpttconvert.

    You should also check the snmptrapd log file on your zabbix server to see what reaches the server (need to enable logging on snmptrapd.conf file
    hi!!
    I configured snmptt.ini file as u mentioned in ur last post. Still no result on zabbix UI.. I even checked log files in that i can see proper traps are getting received on zabbix server..
    Last edited by allrise; 06-04-2009, 15:58.

    Comment

    • allrise
      Junior Member
      • Mar 2009
      • 18

      #17
      Originally posted by melpheos
      I think this was written on the Brent Jones website. Anyway, if you haven't done so you have to put here the path of your snmptt.conf.x file you have converted with snmpttconvert.

      You should also check the snmptrapd log file on your zabbix server to see what reaches the server (need to enable logging on snmptrapd.conf file
      hi!! i am totally confused.. i can see all trap in my log files which lies in /var/log/snmptrapd.log.

      i have also configure all key item as given in post http://www.brentrjones.com/?p=13

      and also put the path where my snmptt.conf lies ( in brentrjones it is snmptt.conf.dell)

      [TrapFiles]
      snmptt_conf_files =/usr/local/share/snmp/snmptt.conf
      END


      i have put my zabbix_sender command in the end of snmptt.conf

      but still there is not result on zabbix UI.

      Can u guide me on this plzzz

      Comment

      • melpheos
        Member
        • Dec 2008
        • 64

        #18
        Try to send manually a trap with zabbix_sender to your zabbix server. What is the result ?

        Comment

        • allrise
          Junior Member
          • Mar 2009
          • 18

          #19
          Originally posted by melpheos
          Try to send manually a trap with zabbix_sender to your zabbix server. What is the result ?
          hi!! manually if I am trying to send "test trap" through zabbix_sender command than i am getting output (Latest data) on zabbix UI..

          Is just that zabbix_sender command its not getting called in snmptt.conf ( in case brentrjones snmptt.conf.dell)..

          I tried to look more in log file after enabling debug option.. what i found that it is not able to find EXEC zabbix_sender command in snmptt.conf even tho I have mentioned it in the file..

          Wat could be reason behind it??
          Last edited by allrise; 06-04-2009, 18:49.

          Comment

          • melpheos
            Member
            • Dec 2008
            • 64

            #20
            Originally posted by allrise
            hi!! manually if I am trying to send "test trap" through zabbix_sender command than i am getting output (Latest data) on zabbix UI..

            Is just that zabbix_sender command its not getting called in snmptt.conf ( in case brentrjones snmptt.conf.dell)..

            I tried to look more in log file after enabling debug option.. what i found that it is not able to find EXEC zabbix_sender command in snmptt.conf even tho I have mentioned it in the file..

            Wat could be reason behind it??
            what is the error message for the unability to run the EXEC command ?

            Also have you enable the unkown trap logger to see it the trap does not go there.

            Can you post the output of your debug file ? (clean the ip addresses first )

            Comment

            • allrise
              Junior Member
              • Mar 2009
              • 18

              #21
              Originally posted by melpheos
              what is the error message for the unability to run the EXEC command ?

              Also have you enable the unkown trap logger to see it the trap does not go there.

              Can you post the output of your debug file ? (clean the ip addresses first )
              hi!! this is an error i am getting
              EXEC line : EXEC line not defined
              this error, i found in snmptt.debug.. can u suggest solution for this..

              As already mentioned in my previous post i have mentioned zabbix_sender in my snmptt.conf than also this error is occurring in snmptt.debug file...

              hey if its fine with you.. can u please share ur snmptt.conf.x and snmptt.ini files

              thanks in advance..
              Last edited by allrise; 07-04-2009, 09:36.

              Comment

              • melpheos
                Member
                • Dec 2008
                • 64

                #22
                Can you confirm that the EXEC command is in the snmptt.x.conf (sorry my mistake, two months without touching this and you forget the filename) file and not snmpd.conf file.

                This is the line i have in my snmptt.esx.conf file

                EXEC /usr/sbin/zabbix_sender -v -z zabbixserver -p 10051 -s "$3" -k vpxdTrap -o "$5 $6"

                In my snmptt.dell.conf file i have

                EXEC /usr/sbin/zabbix_sender -v -z zabbixserver -p 10051 -s "$A" -k "$o" -o "$3"

                Comment

                • allrise
                  Junior Member
                  • Mar 2009
                  • 18

                  #23
                  Originally posted by melpheos
                  Can you confirm that the EXEC command is in the snmptt.x.conf (sorry my mistake, two months without touching this and you forget the filename) file and not snmpd.conf file.

                  This is the line i have in my snmptt.esx.conf file

                  EXEC /usr/sbin/zabbix_sender -v -z zabbixserver -p 10051 -s "$3" -k vpxdTrap -o "$5 $6"

                  In my snmptt.dell.conf file i have

                  EXEC /usr/sbin/zabbix_sender -v -z zabbixserver -p 10051 -s "$A" -k "$o" -o "$3"
                  hi!!

                  i have mentioned this command in snmptt.conf ( which is same as urs my snmptt.esx.conf)

                  EXEC /usr/local/sbin/zabbix_sender -v -z localhost -p 10051 -s Default_Trapper -k snmptraps -o "$aA / $A :: $s :: $N - $Fz"

                  Comment

                  • allrise
                    Junior Member
                    • Mar 2009
                    • 18

                    #24
                    Originally posted by melpheos
                    Can you confirm that the EXEC command is in the snmptt.x.conf (sorry my mistake, two months without touching this and you forget the filename) file and not snmpd.conf file.

                    This is the line i have in my snmptt.esx.conf file

                    EXEC /usr/sbin/zabbix_sender -v -z zabbixserver -p 10051 -s "$3" -k vpxdTrap -o "$5 $6"

                    In my snmptt.dell.conf file i have

                    EXEC /usr/sbin/zabbix_sender -v -z zabbixserver -p 10051 -s "$A" -k "$o" -o "$3"
                    Sorry for troubling you, even I am also new to SMPTT.. can u explain wat does "$3" -k vpxdTrap -o "$5 $6" mean?
                    Last edited by allrise; 07-04-2009, 09:48.

                    Comment

                    • melpheos
                      Member
                      • Dec 2008
                      • 64

                      #25
                      Originally posted by allrise
                      Sorry for troubling you, even I am also new to SMPTT.. can u explain wat does "$3" -k vpxdTrap -o "$5 $6" mean?
                      This is relative to the various line in the SNMP trap received... It's of no use for you but you can find the documentation on this on the SNMPTT documentation page

                      Comment

                      • allrise
                        Junior Member
                        • Mar 2009
                        • 18

                        #26
                        Originally posted by melpheos
                        This is relative to the various line in the SNMP trap received... It's of no use for you but you can find the documentation on this on the SNMPTT documentation page
                        hi!! thanks for info.. but i was successfull in configuring the SNMPTT it was very tedious but i somehow manage to configure it.. i thank you for all ur help...

                        Comment

                        Working...