Git Product home page Git Product logo

nvme-ssd-hdd-s.m.a.r.t-monitoring's Issues

Crontab issue "smartctl: not found" on Proxmox servers

  1. I added script to crontab:

Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh

  1. and then I recieve error when it's execute:
sh: 10: smartctl: not found
sh: 2: smartctl: not found
  1. but when I execute direct from CLI there is no errors:
    wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh

  2. smartctl is installed

!root@pve1:~# which smartctl
/usr/sbin/smartctl
!root@pve1:~# smartctl -v
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.11.22-7-pve] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=======> ARGUMENT REQUIRED FOR OPTION: v
=======> VALID ARGUMENTS ARE:
	help
	N,raw8[:012345rvwz][,ATTR_NAME]
	N,raw16[:012345rvwz][,ATTR_NAME]
	N,raw48[:012345rvwz][,ATTR_NAME]
	N,hex48[:012345rvwz][,ATTR_NAME]
	N,raw56[:012345rvwz][,ATTR_NAME]
	N,hex56[:012345rvwz][,ATTR_NAME]
	N,raw64[:012345rvwz][,ATTR_NAME]
	N,hex64[:012345rvwz][,ATTR_NAME]
	N,raw16(raw16)[:012345rvwz][,ATTR_NAME]
	N,raw16(avg16)[:012345rvwz][,ATTR_NAME]
	N,raw24(raw8)[:012345rvwz][,ATTR_NAME]
	N,raw24/raw24[:012345rvwz][,ATTR_NAME]
	N,raw24/raw32[:012345rvwz][,ATTR_NAME]
	N,sec2hour[:012345rvwz][,ATTR_NAME]
	N,min2hour[:012345rvwz][,ATTR_NAME]
	N,halfmin2hour[:012345rvwz][,ATTR_NAME]
	N,msec24hour32[:012345rvwz][,ATTR_NAME]
	N,tempminmax[:012345rvwz][,ATTR_NAME]
	N,temp10x[:012345rvwz][,ATTR_NAME]
	9,halfminutes
	9,minutes
	9,seconds
	9,temp
	192,emergencyretractcyclect
	193,loadunload
	194,10xCelsius
	194,unknown
	197,increasing
	198,offlinescanuncsectorct
	198,increasing
	200,writeerrorcount
	201,detectedtacount
	220,temp
<=======

Use smartctl -h to get a usage summary
  1. Problem occurs only on my Proxmox 7.2-7 servers
  • Linux Distribution: Debian GNU/Linux 11 (bullseye)
  • Linux Kernel: 5.11.22-7-pve

I like the proyect but...

I like the project I love to share my disk info, but I like be able to use all the data from other and will be great be more transparent with all the data collected.

Maybe some big data will be on order but nobody want to share their data with no exact information how to be used or by who.

Regards!

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.