Hello,
I am a but struggling with my setup.
My goal is to discover network devices on a subnet and based on the type create an item for it in Zabbix with the template etc and also register the device in PHPIPAM
That first part works great.
Just create the discovery rule and bind it to a discovery action.
The hostname is based on the data I retrieved with the snmp querie and fetching .1.3.6.1.2.1.1.5.0 from the device which is the hostname
But now the fun part.
I want to also populate my external IPAM with at least the ip address and hostname
It seems that using a mediatype and call my pythonscript should work.
The mediatype currently has "phpipam_add_host.py" as script with {DISCOVERY.DEVICE.IPADDRESS} {DISCOVERY.DEVICE.DNS}

That works, but only when reverse dns is populated for this device, if there is no reverse dns record than the {DISCOVERY.DEVICE.DNS} is empty
In IPAM I do get the ip address registered, but no hostname
I am facing the challenge that I want to use the value read with .1.3.6.1.2.1.1.5.0 as discovery item for the hostname, but I do not see what parameter value could be used.
From what I understand there is no such thing as {hostname} as the host is not yet created completely in Zabbix.
Any ideas on how to set this up?
John
I am a but struggling with my setup.
My goal is to discover network devices on a subnet and based on the type create an item for it in Zabbix with the template etc and also register the device in PHPIPAM
That first part works great.
Just create the discovery rule and bind it to a discovery action.
The hostname is based on the data I retrieved with the snmp querie and fetching .1.3.6.1.2.1.1.5.0 from the device which is the hostname
But now the fun part.
I want to also populate my external IPAM with at least the ip address and hostname
It seems that using a mediatype and call my pythonscript should work.
The mediatype currently has "phpipam_add_host.py" as script with {DISCOVERY.DEVICE.IPADDRESS} {DISCOVERY.DEVICE.DNS}
That works, but only when reverse dns is populated for this device, if there is no reverse dns record than the {DISCOVERY.DEVICE.DNS} is empty
In IPAM I do get the ip address registered, but no hostname
I am facing the challenge that I want to use the value read with .1.3.6.1.2.1.1.5.0 as discovery item for the hostname, but I do not see what parameter value could be used.
From what I understand there is no such thing as {hostname} as the host is not yet created completely in Zabbix.
Any ideas on how to set this up?
John