python - I want to make a batch ping tool. What method is faster and better?
怪我咯
怪我咯 2017-06-12 09:20:41
0
6
917

There are about thousands of machines, so it is best to support machine name detection. What method is everyone using?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(6)
世界只因有你

Linux writes shell scripts directly
Windows uses dos scripts

学习ing

Just write a script for this kind of batch

扔个三星炸死你

ansible?

为情所困

My company has recently implemented a ping monitoring tool. It is an open source tool and has some memory leaks. I have modified it slightly. I put it on one of my test vps. The download address is 118.184.56.18/ping.zip. The speed may be a bit slow. After you unzip it, add the machine you want to ping in config.json under conf in the directory, and be sure to change the Type to C. If you have many machines, you can consider writing a script to add them to the configuration in batches. But I found that if json is compressed, the program cannot run, and I don't know how to deal with it. This program is for continuous ping monitoring and will also generate a graphical interface on port 8899. If you only want to do a single monitoring, you can adjust the monitoring interval to a longer time, then run and wait to generate the results (sqlite in the db directory adds the records you want) and then kill the program. Then read the database and you can see a series of ping data. However, if you have thousands of machines pinging at the same time, they may consume more resources. Because this program uses the native ping of Linux system

女神的闺蜜爱上我

python's nmap moudle may help you I think

滿天的星座

Hmm. . . Try Smokeping?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template