Ad Widget

Collapse

Get Active Agent external IP Address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alvaroag
    Junior Member
    • Nov 2018
    • 1

    #1

    Get Active Agent external IP Address

    Hi. I have the following setup:

    - Zabbix Server running in a cloud VM with HA
    - More than 100 sites all around the country. Each sites has one server running Linux, with a Zabbix agent running.
    - Each site's internet service has different characteristics, from type, speed, stability, and static IP. Most of them don't have an static IP, so we won't relay on that. Thus, all the configuration is based on Active checks, both built-int as well as some custom.

    That said, what I want to do, if possible, is getting the last know IP for each site. I've been looking around for this, and found many posts which suggested using interface discovery from the agent. However, that is not what I'm looking for, as each server will only have some LAN IP connected to a router, which usually has the IP address(some even don't, as they are NATted by the ISP.

    I've checked all the documentation, but there seems to be no option for that. Have also tried checking the source code, but it's quite complex for me and it will take a while to check it far enough.

    So, any help on this will be really appreciated. Thanks.
  • Mike2K
    Member
    • Oct 2018
    • 62

    #2
    https://www.cyberciti.biz/faq/how-to...ne-on-a-linux/

    Use that as a command in the zabbix agent...

    Comment

    Working...