Ad Widget

Collapse

Auto discovery action with snmp check.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgrzegorski
    Junior Member
    • Jan 2023
    • 14

    #1

    Auto discovery action with snmp check.

    Need some help setting up discovery action or some way to debug it, im on fresh zabbix installation 7.0.1.
    i have set up discovery
    Click image for larger version

Name:	image.png
Views:	321
Size:	37.3 KB
ID:	488377
    and it works, as in monitoring ->discovery i see all my things
    Click image for larger version

Name:	image.png
Views:	281
Size:	23.0 KB
ID:	488379So now i want to auto add them to my hosts. The snmp check when done manually against my switches always returns sw_xxxx. And i want to use it as visible name for switches

    Click image for larger version

Name:	image.png
Views:	282
Size:	22.9 KB
ID:	488380
    Click image for larger version

Name:	image.png
Views:	280
Size:	23.0 KB
ID:	488381
    Unfortunately this part doesn't work. I would appreciate if someone could help or maybe point me where i can even debug what zabbix is doing. Like on discovry page i see it found snmp but not waht value zabbix recived etc.​​​
    Attached Files
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by mgrzegorski
    I would appreciate if someone could help or maybe point me where i can even debug what zabbix is doing. Like on discovry page i see it found snmp but not waht value zabbix recived etc.​​
    If you look at the manual page for zabbix_server, you'll see that there is a runtime-control option to dynamically increase the log level for either everything or for certain process "types". One of those process types is "discoverer". This means you can tell zabbix_server to log much more detailed log messages to zabbix_server.log file by doing something like:

    Code:
    sudo zabbix_server -R log_level_increase=discoverer
    sudo zabbix_server -R log_level_increase=discoverer
    Assuming that you use the default setting for DebugLevel (3 = Warnings) in your zabbix_server.conf, that would keep it at 3 for most parts of zabbix but dynamically increase it to 5 (extended debugging) for the discoverer process type. Just remember to decrease it again when you've collected the information you need.

    Keep in mind that those log messages can be difficult to interpret in many cases, especially if you don't follow along through the source code.

    Comment

    Working...