I'm checking many computers that have IP's directly on the Internet. For me it's important to know when some device has an IP added or deleted.
I wanted something similar to the various vfs.file.cksum[*] checks that are already in the standard Linux template.
I therefore created these 2 items and a trigger.
item
trigger
I hope it can be of help to others.
Maybe someone knows something better?
I wanted something similar to the various vfs.file.cksum[*] checks that are already in the standard Linux template.
I therefore created these 2 items and a trigger.
Code:
UserParameter=net.ipv4.cksum,ifconfig | grep -B1 ' inet ' | md5sum | tr -cd 0-9 | cut -b1-10 UserParameter=net.ipv4,ifconfig | grep -B1 ' inet ' | grep -o -e 'addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*' -e '^[a-z0-9:]*'
Code:
net.ipv4 type text interval 1800 net.ipv4.cksum type numeric interval 600
Code:
ipv4 interfaces have been changed on server {HOSTNAME}
net.ipv4.cksum.diff(0)}>0
Maybe someone knows something better?