Ad Widget

Collapse

SNMPTT on Zabbix Appliance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jsantiago
    Member
    • May 2012
    • 39

    #1

    SNMPTT on Zabbix Appliance

    Hi Experts,

    May I ask if anyone of you here were able to add SNMPTT on the Zabbix Appliance?

    My goal is to monitor windows services such as web, dns, active directory, file. etc. I have a working environment about 15 servers running in an appliance, all configured with SNMP no Zabbix Agent on this scenario.

    Through googling and reading stumbled upon SNMPTT: http://snmptt.sourceforge.net/docs/s...TT.CONF-FORMAT

    But got stuck up here:
    For daemon mode:

    To manually start snmptt, use:
    snmptt --daemon

    Can't locate Config/Inifiles.pm in @INC......................

    My question:

    1. Is there a better way to monitor windows services without installing zabbix agent?

    2. Is there a better documentation for SNMPTT?

    3. Is there someone successful in implementing snmptraps?

    If anyone of you could point out the correct documentation I'd be very glad and it is very much appreciated.

    Thank you.
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    I've not used SNMPTT, but based on the error message it looks like you're missing a perl module. If I had to make a guess, I'd say its a module that let's perl read INI files. Try looking for a module called "inifiles," or something like that.

    Comment

    • jsantiago
      Member
      • May 2012
      • 39

      #3
      Hi Heaje,

      Thanks for the reply. I'm a newbee in both linux and zabbix actually.

      Found this from somewhere: zypper install perl-Config-Inifiles
      And it solved the previous error message, and as always another error came in:
      There seems to be another SNMPTT process (pid 3449) running.
      You may want to kill it and delete the .pid file (/var/run/snmptt.pid). Aborting...

      Died at /usr/sbin/snmptt line 668.

      Now why would I have this error, is what I'm trying to find out.

      May I ask, are you able to monitor windows services effectively without using SNMPTT? What tool did you use?

      Do you have links to where I could read on about this?
      Last edited by jsantiago; 20-03-2013, 03:14.

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        That error looks like it is looking for a configuration file at the path it gave in the error message. Either the file doesn't exist, or the user running the script doesn't have rights to the file.

        As for using something other than snmptt, I use the zabbix agent on both my Linux and windows servers. It works just fine. The zabbix agent on windows does support monitoring services. Once I'm on a proper computer, I can give you some documentation links to know the proper zabbix keys.

        Comment

        • jsantiago
          Member
          • May 2012
          • 39

          #5
          Thank you Heaje,

          Yes it's been really rough times but it's fine, part of the learning process.

          I've actually managed to make that error disappear. Now it seems I'm moving forward to securing SNMPTT, but still I can sense that I'm following these instructions blindly.

          So I guess I need to reconsider using zabbix agent to monitor windows services.
          Thank you for your inputs, greatly appreciated.

          Comment

          • jsantiago
            Member
            • May 2012
            • 39

            #6
            Hi heaje,

            I was wondering if I could ask some of your documentation for the proper zabbix keys? This would greatly help me do some comparison on which is better, SNMP or Zabbix Agent.

            Hope to hear from you soon and Thank you.

            Regards,

            Jem

            Originally posted by heaje
            That error looks like it is looking for a configuration file at the path it gave in the error message. Either the file doesn't exist, or the user running the script doesn't have rights to the file.

            As for using something other than snmptt, I use the zabbix agent on both my Linux and windows servers. It works just fine. The zabbix agent on windows does support monitoring services. Once I'm on a proper computer, I can give you some documentation links to know the proper zabbix keys.

            Comment

            • heaje
              Senior Member
              Zabbix Certified Specialist
              • Sep 2009
              • 325

              #7
              Sorry I was so slow to get to this. Here is the relevant part of the documentation about what you want: https://www.zabbix.com/documentation...agent/win_keys.

              Pay particular attention to the "service_state" key. It shows how to monitor windows services (using the Zabbix Agent). For example, to get the current state of the "Zabbix Agent" service in Windows, you could use the key "service_state[Zabbix Agent]".

              Comment

              • jsantiago
                Member
                • May 2012
                • 39

                #8
                hello heaje,

                Will definitely give this a try. Hopefully we'll get an approval to use zabbix agent rather than snmp.

                Thank you.

                Comment

                • amil
                  Junior Member
                  • Jan 2014
                  • 1

                  #9
                  Originally posted by jsantiago
                  Thank you Heaje,

                  Yes it's been really rough times but it's fine, part of the learning process.

                  I've actually managed to make that error disappear. Now it seems I'm moving forward to securing SNMPTT, but still I can sense that I'm following these instructions blindly.

                  So I guess I need to reconsider using zabbix agent to monitor windows services.
                  Thank you for your inputs, greatly appreciated.
                  Can you share how you made this problem disappear?
                  I'm experiencing the same thing.

                  It appears that when I send the test trap, snmptrapd detects it, and snmptt attempts to start but it is already running.

                  Code:
                  2014-07-31 18:36:03 0.0.0.0(via UDP: [127.0.0.1]:39766->[127.0.0.1]) TRAP, SNMP v1, community public#012#011.1.3.6.1.6.3.1.1.5.3 Enterprise Specific Trap (33) Uptime: 0:00:00.55#012#011.1.3.6.1.6.3.1.1.5.3 = STRING: "teststring000"
                  SNMPTT v1.4 started
                  There seems to be another SNMPTT process (pid 16969) running.
                  You may want to kill it and delete the .pid file (/var/run/snmptt.pid).  Aborting...

                  Comment

                  Working...