Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ansible push script patrol inspection of Fujian Zhengtong

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

If you need more machines for push, you'd better use the database, but if there are fewer machines, you can write dead variables. Create a new ordinary user on the patrol host, be exempted from installation by the patrol host, add a new ansible-hosts inspection host, and multiple tenants can be isolated by docker.

Extension can be reused with yml role code with the database is very convenient, now update the inspection script as long as update the script on ansible-server, add new functions.

There is no database record if the host needs to be inspected without installation. If yml uses the copy module, use sh to execute the script, but the script module will not find the execution path.

I have also written a set of scripts for monitoring alarms, and are still writing them.

#! / bin/bash#yejunhai # 2020-2-27 # concurrent connections send WeCom alarm periodic inspection notification # alarm threshold can be customized # define time cur_time () {date "+% Y-%m-%d% H:%M:%S"} wx () {# generate alarm script sent to WeCom sh_name=$0cat > $sh_name.json

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report