Ad Widget

Collapse

How to monitor a Raspberry Pi with dynamic IP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paddyosullivan
    Junior Member
    • Jan 2020
    • 2

    #1

    How to monitor a Raspberry Pi with dynamic IP

    I have a couple of raspberries id like to monitor but they all change IP every day.

    What the the recommended way to monitor these guys. Zabbix server host configuration requests that you add an IP for the remote server

    Is there any way to just have a device check in and be identified just by its host name ?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you only set active checks on the Raspberry Pi to be monitored, you can monitor using the Zabbix agent by specifying individual host names(Hostname or HostnemeItem) in zabbix_agentd.conf on each Raspberry Pi. In the case of the active check, monitoring using the Zabbix agent is limited to the item type "Zabbix agent (active)".

    If you want to do a passive check, you may be able to set up with a hostname using mDNS. Recent versions of Raspbian can use mDNS by default. In order to use mDNS, the Zabbix server must also support mDNS.
    For CentOS 7, mDNS can be enabled by installing and setting the following packages.

    Code:
    # yum install nss-mdns
    # systemctl start avahi-daemon
    # systemctl enable avahi-daemon
    # firewall-cmd --add-service=mdns --zone=public --permanent
    # firewall-cmd --reload
    If mDNS is supported, use the host name configured on Raspbian as the DNS name for the agent interface in the host configuration. If you specified "rasphost" in Raspbian's /etc/hostname, try specifying the DNS name "rasphost.local". In other words, each Raspberry Pi must have a unique host name.
    Note also that when using mDNS, It will use the multicast address 224.0.0.251 and the UDP 5353 port. mDNS cannot be used for networks that do not reach the multicast.

    Comment

    Working...