Ad Widget

Collapse

Notification when SNMP host unreachable?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • herta
    Senior Member
    • Sep 2011
    • 101

    #1

    Notification when SNMP host unreachable?

    When Zabbix cannot contact a Zabbix Agent, it will mark the event in the System status on the Dashboard, and it can send a notification.

    Can the same be done for systems being monitored through SNMP?

    We have a number of systems behind a firewall that blocks ICMP, and SNMP-monitoring is our only option. We are looking for a way to detect when such a system fails.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    i think you can use nodata
    Debian-User

    Sorry for my bad english

    Comment

    • herta
      Senior Member
      • Sep 2011
      • 101

      #3
      Originally posted by Colttt
      i think you can use nodata
      Thanks, but we tried that. It looks like zabbix does not evaluate items when it cannot reach the host.

      It's frustrating. The fact that the SNMP icon turns red indicates that the info about the host being unreachable is available somewhere. I just cannot find where that might be.

      Comment

      • Heilig
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2013
        • 366

        #4
        Additionally, you can check the availability of port 161 (up/down) and regarding its accessibility judge about availability of the host.
        Update: or from a database by query get the host status.
        Last edited by Heilig; 08-05-2013, 16:09.

        Comment

        • herta
          Senior Member
          • Sep 2011
          • 101

          #5
          Hello Heilig,

          Originally posted by Heilig
          Additionally, you can check the availability of port 161 (up/down) and regarding its accessibility judge about availability of the host.
          How would you accomplish that? when zabbix cannot contact a host, it cannot get new values for its items and therefore will not launch the trigger.

          Originally posted by Heilig
          Update: or from a database by query get the host status.
          So, basically, run an external script on the zabbix server that checks whether new data have been entered for those hosts in the zabbix database? Or alternatively, run an external script on the zabbix server that tries to get a single snmp value from those hosts?

          Comment

          • Heilig
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2013
            • 366

            #6
            Originally posted by herta
            How would you accomplish that? when zabbix cannot contact a host, it cannot get new values for its items and therefore will not launch the trigger.
            Zabbix can connect to a host on SNMP port (161), am I right? If so, you can use simple or telnet checks for getting port status (zabbix agent is not needed for this checks).
            So, basically, run an external script on the zabbix server that checks whether new data have been entered for those hosts in the zabbix database? Or alternatively, run an external script on the zabbix server that tries to get a single snmp value from those hosts?
            No. You can use ODBC or some script to get snmp agent state for necessary host from zabbix DB.
            Look at "hosts" table in Zabbix DB, column name "snmp_available", if value 1 - snmp agent is Ok on server and has green "snmp icon" in zabbix frontend.

            Comment

            • herta
              Senior Member
              • Sep 2011
              • 101

              #7
              Originally posted by Heilig
              Zabbix can connect to a host on SNMP port (161), am I right? If so, you can use simple or telnet checks for getting port status (zabbix agent is not needed for this checks).
              A Simple check with net.tcp.service[telnet,,] indeed seems to do the trick.

              Thanks, Heilig.

              Comment

              Working...