I wrote a little external script that can check the validity of {HOST.DNS}
The item function is:
It returns 1 if everything is OK and 0 if there's an error of some kind (INVALID).
The script doesn't just get the DNS name from the default DNS-server, but checks it directly at the Authorative server.
All this works fine....
I would like to have some additional functionality, but found out I'm missing the macro {HOST.IP1}
I would like to compare the DNS to the IP it is supposed to have according to the Zabbix interface.
If {HOST.DNS1} can be resolved, but it doesn't correspond {HOST.IP1} it returns a 2.
I have also changed the value mapping of "service state" and added an "Invalid" for the value of "2".
The problem is that I can't fully implement what I want to do as the macro {HOST.IP1} does not exist.
Can this be added or is there some workaround?
The item function is:
Code:
dnsverify[ {HOST.DNS1} ]
The script doesn't just get the DNS name from the default DNS-server, but checks it directly at the Authorative server.
All this works fine....
I would like to have some additional functionality, but found out I'm missing the macro {HOST.IP1}
I would like to compare the DNS to the IP it is supposed to have according to the Zabbix interface.
Code:
dnsverify[ {HOST.DNS1} {HOST.IP1} ]
I have also changed the value mapping of "service state" and added an "Invalid" for the value of "2".
The problem is that I can't fully implement what I want to do as the macro {HOST.IP1} does not exist.
Can this be added or is there some workaround?
Comment