GithubHelp home page GithubHelp logo

amuject / pingus Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 3.0 4.88 MB

A simple network ping tool in nodejs. Supports TCP / UDP / ICMP protocol.

Home Page: https://www.npmjs.com/package/pingus

License: MIT License

JavaScript 28.69% TypeScript 71.31%
icmp ipscanner javascript nodejs ping portscan portscanner tcp udp wol

pingus's People

Contributors

rotu avatar wnynya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pingus's Issues

Use multiple dns servers

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.

ENOTFOUND when using with internal hostname

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();

npm can't add module due to gyp compilation error. Node 20, Ubuntu 22.04

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

2023-10-06T18_57_16_650Z-debug-0.log

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.