Ad Widget

Collapse

Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pac-12
    Junior Member
    • Jul 2017
    • 1

    #1

    Discovery

    I have a discovery running and its working

    What I want to do is scan subnet for hosts with agents and drop them into one host group and apply template.

    Any other hosts that respond to ping but no agent should go into a different host group call unknown servers

    Discovery rule
    ip range - 172.16.40.0-255

    Checks
    ICMP ping
    Zabbix agent "system.uname"


    Action 1
    condition A received value like windows
    condition B service type= zabbix agent
    condition C Host IP = 172.16.40.0-255

    Operation 1
    Add host
    Add host to groups Windows servers
    Link template - template os windows

    Action 2
    service type = ICMP ping
    host ip = 172.16.40.0-255
    service type <> zabbix agent


    The discovery rule works and all agent machines end up in the windows group but also end up in the other group. Anything that responds to ping ends up in the other group. I only want machines that have no agent to end up in the other group.

    Any way to do what I am trying?
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    I hope someone comes along with a mechanism to accomplish this type of check; I have not found any. The problem is the test for agent is in the context of the returned data, which in this case (the ping) is indeed not the zabbix agent, it's a ping.

    I've the same problem trying to determine SNMPv1 vs. SNMPv2. Many or most SNMPv2 will respond to SNMPv1, but I want to test SNMPV1 only for ones not answering V2.

    I've given up and run most discoveries manually, enabling and disabling actions and rules, and using Netdisco for a lot of discovery. The rule/action structure is a bit limited.

    Comment

    Working...