Ad Widget

Collapse

Help adding switches

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • velosprinter
    Junior Member
    • Jul 2008
    • 19

    #1

    Help adding switches

    I have been going crazy trying to get the right configuration for simple checks on switches and just can't figure out what is missing. I currently have 16 Windows servers and 3 Linux servers that monitor perfectly. However they all have agents.

    I have several dozen switches that I would like to ping check to see that they are alive. More information would be good but small steps for now.

    I can ping the switches without problem from the Zabbix server.

    The problem seems to be in adding the host.
    I put in the Name, IP, connect to:IP, and zero (0) as the port. I have also tried ports 22, 23, 25, 161, 1993, 10050 but no luck.

    Under Hosts it keeps coming back as:
    Availability: Not available
    Error: Timeout while connecting to [IP of my switch:161]
    Port was set to 0

    Log errors:
    Code:
      1478:20080723:072538 Timeout while answering request
      1477:20080723:072538 Timeout while connecting to [***.**.129.21:161]                          1477:20080723:072538 Host [ 5th SW]: first network error, wait for 15 seconds
      1477:20080723:072538 Parameter [Host_Infomation] will be checked after 300 seconds on host [ 5th SW]
      1479:20080723:072538 Timeout while answering request                                          1475:20080723:072538 Timeout while answering request
      1476:20080723:072539 Timeout while answering request                                          1478:20080723:072539 Timeout while connecting to [***.**.129.21:161]
      1478:20080723:072539 Host [5th SW]: first network error, wait for 15 seconds              1478:20080723:072539 Parameter [Uptime] will be checked after 120 seconds on host [5th S
    W]                                                                                              1479:20080723:072539 Timeout while connecting to [***.**.129.21:161]
      1479:20080723:072539 Host [ 5th SW]: first network error, wait for 15 seconds              1479:20080723:072539 Parameter [Inside_ifInBytes] will be checked after 240 seconds on host
    [5th SW]                                                                                    1475:20080723:072539 Timeout while connecting to [***.**.129.21:161]
      1475:20080723:072539 Host [5th SW]: first network error, wait for 15 seconds              1475:20080723:072539 Parameter [Connections] will be checked after 240 seconds on host [
    5th SW]                                                                                         1476:20080723:072540 Timeout while connecting to [***.**.129.21:161]
      1476:20080723:072540 Host [5th SW]: first network error, wait for 15 seconds              1476:20080723:072540 Parameter [FreeProcMem] will be checked after 240 seconds on host [
    5th SW]                                                                                         1499:20080723:072603 Timeout while answering request
      1499:20080723:072604 Timeout while connecting to [***.**.129.21:161]
    If I can get this working the trigger would be:
    {5th SW:icmpping.last(0)}=0

    Thank you in advance for your help.
  • cristhiano
    Member
    • Nov 2007
    • 48

    #2
    Hi,

    Try:

    nmap -sU -p 161 ip_of_switch

    and see if port 161 is up. If not, the snmp server of switch not enable.

    Can you do:

    snmpwalk -c name_your_community -v 1 ip_of_switch

    If not, name of SNMP community is wrong.

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 567

      #3
      Originally posted by velosprinter
      I have several dozen switches that I would like to ping check to see that they are alive. More information would be good but small steps for now.
      What template are you linking the host to when creating it? When I want a simple ping check, I use the Template_Standalone, and uncheck everything except ICMP.

      Comment

      • velosprinter
        Junior Member
        • Jul 2008
        • 19

        #4
        Ok I added
        Code:
        snmp community public RO
        to the switch config and the connection is made and some data comes in from the switch.

        Hosts says Monitored / Available

        Available Free Processor Memory 25 Jul 14:39:55 1.34 Gb +37.38 Kb
        Host_Infomation 25 Jul 14:25:26 Cisco IOS Software, ... -
        Outside ifInBytes 25 Jul 14:40:00 4.90 Kb +164 b
        Outside ifOutBytes 25 Jul 14:40:02 165.73 b +94.13 b
        Ping Check 25 Jul 14:40:31 0 -
        Uptime 25 Jul 14:40:35 1y1m7d4h10m14s +32s


        However, no ping
        {5th SW:icmpping.last(0)}=0
        Yes I get an alarm because "Ping Check 25 Jul 14:40:31 0"

        snmpwalk -c name_your_community -v 1 ip_of_switch
        gives a ton of data but this seems most relevent:

        Code:
        SNMPv2-MIB::snmpInPkts.0 = Counter32: 2547
        SNMPv2-MIB::snmpOutPkts.0 = Counter32: 2547
        SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
        SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
        SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
        SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
        SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0
        SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0
        SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0
        SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0
        SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0
        SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 0
        SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0
        SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 56
        SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 2505
        SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
        SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0
        SNMPv2-MIB::snmpInTraps.0 = Counter32: 0
        SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0
        SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 1
        SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0
        SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0
        SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0
        SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0
        SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0
        SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 2571
        SNMPv2-MIB::snmpOutTraps.0 = Counter32: 0
        SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
        SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0
        SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0
        Any ideas on notifying if the switch is down?

        Comment

        • velosprinter
          Junior Member
          • Jul 2008
          • 19

          #5
          Solved!!!

          I wrote a guide on how to do this in the Cookbook section:

          Comment

          Working...