ubuntu BASH login IP [duplicate]

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

I would like to ask, how to find IP address of computer inside BASH-login script. I mean: /etc/bash.bashrc
When somebody is logging to Ubuntu it fire action with curl and send JSON-data containing username via Nagios to SMS&email. I would like to add information with IP address of just logged user. How to do it? Thanks!

X ITM Cloud News

Marisa

Leave a Reply

Next Post

Opendkim installation on Ubuntu Server 18.04 failing

Sun Aug 2 , 2020
Spread the love          After installing virtualmin, opendkim installation (apt install opendkim opendkim-tools) fails in a following way: Do you want to continue? [Y/n] Setting up opendkim (2.11.0~alpha-11build1) … Job for opendkim.service failed because a timeout was exceeded. See “systemctl status opendkim.service” and “journalctl -xe” for details. invoke-rc.d: initscript opendkim, action “start” […]
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM