Ad Widget

Collapse

Integrate with Phidgets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • topkoa
    Member
    • Oct 2007
    • 47

    #1

    Integrate with Phidgets

    Hi everyone,

    I hope I am posting this thread in the correct place- anyhow...

    I am a new user of Zabbix and have been slowly integrating it, however I wanted to extend Zabbix into the realm of physical monitoring.

    So...

    I found an interesting gadget called the Phidget Interface Kit (http://www.phidgets.com) where you can get USB devices that monitor anything from a simple analog switch to a temperature/magnetic/force/IR distance.. etc sensors. They have a C programming SDK so I went to work on integrating it with Zabbix.

    I have completed the first release of a Linux daemon that polls the phidget interface kit and feeds the data to the Zabbix linux agent:

    Download Phidget Interface Kit Daemon for Zabbix for free. IKD is a daemon that interfaces the Phidgets Interface Kit with the Zabbix Enterprise monitoring agent. It allows you to physically monitor analog sensors.


    If anyone is interested go have a look (I've released the daemon under the GPL).

    So far its working great for me with the door to my server room... I am thinking of putting it to use at my home as a security system. (i.e. doors, windows, basement temperature alerts before pipes burst from freezing while I'm on vacation, etc...)

    Cheers!
    -topkoa
  • welkin
    Senior Member
    • Mar 2007
    • 132

    #2
    I've looked around a bit on the phidgets site and found very interesting things.
    So i can go buy the 8/8/8 Card and e.g. 4 Temperature and 4 IR Sensors and have this Data drawn by an Agent into Zabbix? So how is your Daemon working together with Zabbix? Is there a client to the Daemon which can pull the Data from it, so Zabbix get it's Data via UserParameter (and any other Program could also get it's Data from this Client?)
    If this works as expected this is really great.

    mfg
    welkin

    Comment

    • topkoa
      Member
      • Oct 2007
      • 47

      #3
      By way of explanation...

      Hey there,

      To essentially answer your question- yes.

      The way my daemon works is as follows:

      The daemon runs and listens to the phidget interface 8/8/8 controller- I use the C++ library they provide on their site to compile it on linux.

      Get it here: (just use "make && make install", with sudo ofcourse)
      Phidgets: Sensors, controllers, and Data I/O boards that connect to a computer via USB and are controlled by your C, C#, Java or Python program!


      Since their library works on a "trigger" basis, all the daemon does is wait for a state change from the physical device and it simply writes a numerical value to the corresponding text file.. the format is [serial number of kit]_[input/sensor]_[index].txt (input is DIGITAL input, SENSOR is analog) analog would be your temperature sensor...

      i.e.: /var/phidgets/1234_sensor_0.txt

      so then, you put something like this into the UserParameter= on the zabbix_agentd.conf:

      UserParameter=Phidget_Sensor_0,cat /var/phidgets/1234_sensor_0.txt

      Then in the Zabbix server:

      Make a new ITEM:

      (Note: Options to change below: all others default)

      Description: "Phidget Sensor 0"
      Type: "ZABBIX agent"
      Key: "Phidget_Sensor_0"
      Type of information: "Numeric (integer 64bit)"
      Update Interval: "..your preference.."

      (and then clone for all the other interfaces...)

      And then make triggers/graphs/actions/add to screens.. etc...

      On a side note, if you want to monitor a door or window, you can use any magnetic sensor. I baught one of these for my test rig: (attached to a digital input)

      Security Contacts & AccessoriesThese high quality, high performance security contacts are great for doors, windows, or home automation sensors!United Security – Robust, Rugged, ReadyUnited Security Products (USP) has supplied quality products to the security alarm industry for more than 40 years, with proven performance in more than 100 million installations. Security systems professionals rely on USP for the most innovative products in the security industry. For your next installation, be sure to specify USP products.


      ....

      Let me know if you need any assistance setting it up.

      Cheers

      Comment

      • welkin
        Senior Member
        • Mar 2007
        • 132

        #4
        A great thing, thanks for the info. I will inform you up with my impressions , but i don't know if this setup is going to be used because i'm not the one who decides it
        mfg
        welkin

        Comment

        • topkoa
          Member
          • Oct 2007
          • 47

          #5
          to answer your second question

          (and any other Program could also get it's Data from this Client?)
          I just wanted to clarify, by way of answering your second question..

          Absolutely- any program that can look at a text file and aggregate data can use this program.

          So for instance, you could use cacti for example- or anything that uses rrdtool or equiv....

          There is no specific hard link between my daemon and zabbix.. As I stated above, all my program does is make the physical status of attached hardware available for reading by the zabbix agent or any other interested program.

          Comment

          Working...