Ad Widget

Collapse

A hardware ZABBIX Agent made with Arduino Mega

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Greg750
    Junior Member
    • Apr 2013
    • 2

    #16
    This is great! Any info on the case? Also how could I get fahrenheit out of this?

    Comment

    • Zaniwoop
      Senior Member
      • Jan 2010
      • 232

      #17
      It's called maths.

      Create a calculated item.

      Comment

      • Greg750
        Junior Member
        • Apr 2013
        • 2

        #18
        Zaniwoop,

        Your response is both insulting and useful:

        "It's called maths." = insulting/unnecessary.

        "Create a calculated item." = useful and, the only answer you needed to give.

        I'm new to Zabbix so I had no idea you could create a Calculated item. There was no need to make an insulting comment.

        Comment

        • Zaniwoop
          Senior Member
          • Jan 2010
          • 232

          #19
          Sorry, didn't mean to insult.

          You can read about calculated items at https://www.zabbix.com/documentation...pes/calculated

          Formula to C to F:
          Code:
          Tf = (9/5)*Tc+32
          where Tf is temp in Fahrenheit and Tc is temp in Celsius

          Comment

          • Colttt
            Senior Member
            Zabbix Certified Specialist
            • Mar 2009
            • 878

            #20
            is it possible to add some sensors to replace somthing like that: http://www.knurrusa.com/vmchk/Knurr-...-II%C2%AE.html
            ??

            and why do you use arduino instead of raspberry pi??
            Debian-User

            Sorry for my bad english

            Comment

            • levkov
              Junior Member
              • Jun 2010
              • 12

              #21
              Yes. You can add more sensors and monitor every physical parameter that can be measured.

              Comment

              • chasgoj
                Junior Member
                • Jun 2013
                • 2

                #22
                Remote commands?

                Hi,
                it is possible to add support for simple remote commands? For example turn on and off some digital pin(s). I want to use your great project for rack monitoring and create action if temperature rise above defined value then turn on fan in rack. I know that it is possible to hardcode this but it is not that flexibile.

                PS: I am trying to do that but I don't understand zabbix protocol and so trying sniff network packets between zabbix server and arduino. No luck so far

                Thanks for your reply.

                <- chasgoj ->
                Last edited by chasgoj; 25-06-2013, 15:48.

                Comment

                • chasgoj
                  Junior Member
                  • Jun 2013
                  • 2

                  #23
                  Got it

                  I finally get some time to check it out and got solution. Is is very simply and no modification to your code is even needed.

                  if(cmd.equals("system.run[\"Re1off\",\"nowait\"]")) is the solution.
                  Just replace Re1off with cmd in zabbix remote command

                  Edit: maybe a little edit to code. i change #define MAX_CMD_LENGTH to 40
                  I tested code on Uno R3 and it works like a charm, but you can't use digital pins 10-12 (ISP pins on Uno) so DHT must be connected to other pin (if use 11 then ethernetshield not working).
                  Last edited by chasgoj; 24-08-2013, 07:50. Reason: missing some info

                  Comment

                  • Colttt
                    Senior Member
                    Zabbix Certified Specialist
                    • Mar 2009
                    • 878

                    #24
                    is it maybe possible to use a pt100 with it?
                    Debian-User

                    Sorry for my bad english

                    Comment

                    • alfsolli
                      Junior Member
                      Zabbix Certified Trainer
                      Zabbix Certified Specialist
                      • Aug 2010
                      • 19

                      #25
                      Originally posted by Colttt
                      is it maybe possible to use a pt100 with it?
                      Sure, from what I can read, this is basically reading analogue voltage and translating to temperature based on a scale.

                      Of course, you can't simply connect it and expect it to work. The conversion code for arduino must be written, and most likely a calibration routine.

                      in the PT100 case, you apply a given voltage in one end, and measure voltage in the other to figure out the resistance.
                      At 0 degrees C, the resistance is 100Ohm, and will increase 0,385Ohm/C in a close to linear fashion.


                      You probably knew that, but since I read up on it, I thought I'd share with everyone.

                      Comment

                      • Colttt
                        Senior Member
                        Zabbix Certified Specialist
                        • Mar 2009
                        • 878

                        #26
                        thanks for reply!

                        one question, why arduino mega? and not arduino ethernet?
                        Debian-User

                        Sorry for my bad english

                        Comment

                        • sadman
                          Senior Member
                          • Dec 2010
                          • 1611

                          #27
                          Hello.
                          I rewrote the code of Arduino Zabbix agent and expanded his functionality.
                          Old Arduino releases (ATmega 186) was supported with W5100 shield. ENC28J60 shield supported too, but with Arduino based on ATmega 328.


                          Have fun. Sorry for my English.

                          Comment

                          Working...