Ad Widget

Collapse

Access Zabbix items via SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • villyaraujo
    Junior Member
    • Sep 2024
    • 1

    #1

    Access Zabbix items via SNMP

    Hello,

    I am monitoring several parameters via Zabbix and would like to do the following:

    - Access the Zabbix item from another server via SNMP.

    How can I do this?

    Thanks
  • alton1990
    Junior Member
    • Sep 2024
    • 1

    #2
    Originally posted by villyaraujo
    Hello,

    I am monitoring several parameters via Zabbix and would like to do the following:

    - Access the Zabbix item from another server via SNMP.

    How can I do this?

    Thanks
    Hello, villyaraujo

    To access a Zabbix item from another server via SNMP, you can follow these steps:

    Ensure SNMP is Enabled: Make sure SNMP is enabled on the Zabbix server. You can do this by configuring the Zabbix server with SNMP support using the --with-net-snmp flag during installation see here: https://www.zabbix.com/documentation...itemtypes/snmp.
    Identify the SNMP OID: Find the SNMP Object Identifier (OID) for the item you want to monitor. You can use the snmpwalk command to list all available OIDs on the Zabbix server:
    ​snmpwalk -v 2c -c public <Zabbix_server_IP>
    ​Replace <Zabbix_server_IP> with the IP address of your Zabbix server. This command will list all SNMP OIDs and their current values.
    Configure SNMP on the Monitoring Server: On the server from which you want to access the Zabbix item, configure SNMP to query the Zabbix server. You can use the snmpget command to retrieve specific OIDs:
    ​snmpget -v 2c -c public <Zabbix_server_IP> <OID>
    ​Replace <OID> with the specific OID you want to monitor see above link.
    Add SNMP Item in Zabbix: In the Zabbix frontend, add a new SNMP item to the host configuration. Specify the OID and other necessary parameters like SNMP version, community string, etc.
    Test the Configuration: Ensure that the SNMP queries are working correctly by testing the configuration. You should see the monitored values being updated in the Zabbix frontend.

    If you encounter any issues, make sure the SNMP service is running on both servers and that there are no firewall rules blocking SNMP traffic.

    ​Best Regard,
    Alton Krause

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4806

      #3
      Originally posted by alton1990

      Hello, villyaraujo

      To access a Zabbix item from another server via SNMP, you can follow these steps:

      Ensure SNMP is Enabled: Make sure SNMP is enabled on the Zabbix server. You can do this by configuring the Zabbix server with SNMP support using the --with-net-snmp flag during installation see here: https://www.zabbix.com/documentation...itemtypes/snmp.
      Identify the SNMP OID: Find the SNMP Object Identifier (OID) for the item you want to monitor. You can use the snmpwalk command to list all available OIDs on the Zabbix server:
      snmpwalk -v 2c -c public <Zabbix_server_IP>
      ​Replace <Zabbix_server_IP> with the IP address of your Zabbix server. This command will list all SNMP OIDs and their current values.
      Configure SNMP on the Monitoring Server: On the server from which you want to access the Zabbix item, configure SNMP to query the Zabbix server. You can use the snmpget command to retrieve specific OIDs:
      ​snmpget -v 2c -c public <Zabbix_server_IP> <OID>
      ​Replace <OID> with the specific OID you want to monitor see above link.
      Add SNMP Item in Zabbix: In the Zabbix frontend, add a new SNMP item to the host configuration. Specify the OID and other necessary parameters like SNMP version, community string, etc.
      Test the Configuration: Ensure that the SNMP queries are working correctly by testing the configuration. You should see the monitored values being updated in the Zabbix frontend.

      If you encounter any issues, make sure the SNMP service is running on both servers and that there are no firewall rules blocking SNMP traffic.

      ​Best Regard,
      Alton Krause
      What a load on BS... Did you even read the question?

      But all that aside.. Zabbxi does not expose items/values over snmp... Theoretically you could build something for snmp server, that obtains a value and shows it out over SNMP.... BUt I guess it is too much work for one item..:P

      Comment

      Working...