Ad Widget

Collapse

How to check SWITCH is alive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Handi
    Junior Member
    • Aug 2009
    • 19

    #1

    How to check SWITCH is alive

    hi all.
    I'm just trying to use zabbix. I want to know how to find out the status of the SWITCH, whether he's alive or dead??

    I use the SWITCH AT-8500
    SNMP v2
    Last edited by Handi; 31-08-2009, 04:31.
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    Depends on how you define dead and alive.

    I assume there are OIDs telling you whether ports are up or down.

    And you can create a data with .nodata() to make sure device is answering SNMP queries.

    Comment


    • cesarsj
      cesarsj commented
      Editing a comment
      How did you apply nodata() with SNMP?
  • Handi
    Junior Member
    • Aug 2009
    • 19

    #3
    I mean how to know a switch is alive or dead, not the ports of the switch is.

    Comment

    • Calimero
      Senior Member
      • Nov 2006
      • 481

      #4
      ping ?
      monitoring whether it responds to SNMP queries (as I said above) ?

      You define what "dead" is and then tell zabbix how to monitor it.

      If you aren't specific, don't expect a definitive answer.

      Comment

      • Handi
        Junior Member
        • Aug 2009
        • 19

        #5
        for the example in monitoring PC
        {HOSTNAME} is unreachable
        can cause:
        - power is switch off
        - UTP cable is unplug

        Comment

        • Calimero
          Senior Member
          • Nov 2006
          • 481

          #6
          Originally posted by Handi
          for the example in monitoring PC
          {HOSTNAME} is unreachable
          can cause:
          - power is switch off
          - UTP cable is unplug
          Well it's the other way around, power off or network down may trigger "server is unreachable".

          Maybe you should try monitoring response to ICMP ping ? Is that what you want ?

          Comment

          • Handi
            Junior Member
            • Aug 2009
            • 19

            #7
            I've tried using icmpping.
            configure
            item
            create items
            but why the status "not Suported

            Comment

            • Calimero
              Senior Member
              • Nov 2006
              • 481

              #8
              Did you set item type to "Simple check" ?

              Comment

              • Handi
                Junior Member
                • Aug 2009
                • 19

                #9
                yes of course...

                but in the error column value:

                "/usr/sbin/fping: [2] No such file or directory"

                Comment

                • Calimero
                  Senior Member
                  • Nov 2006
                  • 481

                  #10
                  Mhh... did you install fping in the first place ?
                  Did you set FpingLocation= in zabbix_server.conf ?

                  Comment

                  • Handi
                    Junior Member
                    • Aug 2009
                    • 19

                    #11
                    yes i did
                    after work, the value of icmping never change always 0

                    Comment

                    • Calimero
                      Senior Member
                      • Nov 2006
                      • 481

                      #12
                      Mhh ... can you show us what perms fping has ?

                      ls -l /usr/sbin/fping

                      Comment

                      • Handi
                        Junior Member
                        • Aug 2009
                        • 19

                        #13
                        -rwxr-xr-x 1 root root 26322 2009-09-01

                        Comment

                        • Handi
                          Junior Member
                          • Aug 2009
                          • 19

                          #14
                          But now I was change to

                          -rwxrwxrwx 1 zabbix zabbix 26332

                          but is not work too

                          Comment

                          • Calimero
                            Senior Member
                            • Nov 2006
                            • 481

                            #15
                            Originally posted by Handi
                            But now I was change to

                            -rwxrwxrwx 1 zabbix zabbix 26332

                            but is not work too

                            fping must be setuid root.

                            chown root:root /usr/sbin/fping
                            chmod 4755 /usr/sbin/fping

                            Comment

                            Working...