Coder Social home page Coder Social logo

Comments (5)

toryzen avatar toryzen commented on May 18, 2024 1

1AgentIPip是没有获取固定127.0.0.1,主要是这边有一些多IP机器不好判断选用哪个,AgentName取得是机器名称,不是固定的
2我考虑下搞个共享配置
3这个配置预加载感觉意义不大,还是用dashbord界面修改就行了,smartping也有修改配置的接口(文档还没写上)
4很快就实现了

from smartping.

avyou avatar avyou commented on May 18, 2024 1

原来这个文件里已经支持可以手工写了,这样可以做成一个模板批量更新了
config-base.json { "Port": xxxx , "Name": "localhost", "Ip": "xxx.xxx.xxxx.xxx", "Password": "955gLaGQIb18", "Alerthistory": 7, "Alertcycle": 1, "Alertsound": "/alert.mp3", ....

from smartping.

avyou avatar avyou commented on May 18, 2024

同意 cell3 的将 agent Name, agent ip 写到配置文件,不然批量部署重复工作太多了,
如果写到 config.json这样,我每台机器都是同样配置,省了不少麻烦。

from smartping.

avyou avatar avyou commented on May 18, 2024

可以通过判断用户在 aggen list (targets)中的输入IP与本机所有IP对比,决定选用哪个agen ip

from smartping.

toryzen avatar toryzen commented on May 18, 2024

可以直接编辑配置文件的,默认程序启动的时候加载conf/config.json,如果不存在则加载conf/config-base.json,只要按照规则配置config.json文件即可

from smartping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.