Giter VIP home page Giter VIP logo

uwuscan's Introduction

uwuscan

uwuscan - a set of scripts for monitoring the status of network MFPs in the terminal.

Install

  1. Get the script:
git clone https://github.com/AnilAntari/uwuscan
  1. Create directories for log files:
sudo mkdir /var/uwuscan_log
  1. Installing the module:
sudo pacman -S perl-net-snmp perl-log-any

Or else

sudo apt-get install libnet-snmp-perl liblog-any-perl
  1. Copy the script directory to /etc and make them executable:
sudo cp -r uwuscan/ /etc/ && sudo chmod +x /etc/uwuscan/mfd/*
  1. Uncomment in main.sh the scripts you need;
  2. Specify the necessary ip addresses in the scripts;
  3. Add main.sh in your favorite time-based job scheduler.

Telegram Notifications

To enable notifications in a Telegram, install rust-script and enable attention.rs in main.sh

  1. Install rust-script

Using your package manager:

sudo pacman -S rust-script

Or using cargo:

# Don't forget to install rust/cargo
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm rust-script
  1. Uncomment these lines in main.sh and put your token and id in env vars
export LOGS_DIR = "/var/uwuscan_log"
export API_TOKEN = "Your telegram api token"
export CHAT_ID = "Your telegram chat id"
/etc/uwuscan/attention.rs

Configuring the script

In attention.rs in API_TOKEN, specify the bot token, and in CHAT_ID, specify your chat ID.

You can configure the trigger parameters for the bot:

entry.cartrige < 20 || entry.drum < 20

oid

snmpwalk installation

sudo apt-get install snmp

or

sudo pacman -S net-snmp

Search oid

sudo snmpwalk -v 2c -c public {ip-address}

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.