amuject / pingus Goto Github PK
View Code? Open in Web Editor NEWA simple network ping tool in nodejs. Supports TCP / UDP / ICMP protocol.
Home Page: https://www.npmjs.com/package/pingus
License: MIT License
A simple network ping tool in nodejs. Supports TCP / UDP / ICMP protocol.
Home Page: https://www.npmjs.com/package/pingus
License: MIT License
Hi author, can you please support using multiple DNS servers instead of single one ? I'm using Pingus for monitoring internal services and it's depending on DNS servers to resolve internal domains. It would be great to have multiple DNS servers support as sometime one server would need to restart for patching or some problem then we can have other for backup.
Hi author, thanks for this awesome package. Can you please help on issue with ENOTFOUND when using with my internal hostname ? I have already specified a dns server but it's not working. I'm sure the hostname is resolved in terminal. my code:
import pingus from "pingus";
const ping = new pingus.PingICMP({
host: "my.myserver.abc.local",
ttl: 128,
bytes: 32,
dnsServer: "192.168.30.222",
resolveDNS: true,
}) as any;
ping.on("ready", (result) => {
console.log("ping\ttarget:\t", result.host);
console.log("\tips:\t", result.ips);
});
ping.send();
108 error make: *** [raw.target.mk:113: Release/obj.target/raw/src/raw.o] Error 1
108 error gyp ERR! build error
108 error gyp ERR! stack Error: make
failed with exit code: 2
108 error gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
108 error gyp ERR! stack at ChildProcess.emit (node:events:514:28)
108 error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
108 error gyp ERR! System Linux 5.15.111-1-pve
108 error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
108 error gyp ERR! cwd /opt/pingus/node_modules/raw-socket
108 error gyp ERR! node -v v20.5.1
108 error gyp ERR! node-gyp -v v9.4.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.