Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full custom for HP and other hardware raid's #724

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ziut3k-dev
Copy link

No description provided.

@AnalogJ
Copy link
Owner

AnalogJ commented Nov 26, 2024

not sure what this is supposed to do? Can you provide some additional context?
Those commands need to run by default

@Ziut3k-dev
Copy link
Author

time="2024-12-10T15:35:18+01:00" level=info msg="Executing command: smartctl --xall --json --device cciss /dev/sda" type=metrics
{
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
3
],
"svn_revision": "5338",
"platform_info": "x86_64-linux-6.8.12-4-pve",
"build_info": "(local build)",
"argv": [
"smartctl",
"--xall",
"--json",
"--device",
"cciss",
"/dev/sda"
],
"messages": [
{
"string": "/dev/sda: Unknown device type 'cciss'",
"severity": "error"
},
{
"string": "=======> VALID ARGUMENTS ARE: ata, scsi[+TYPE], nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, sntasmedia, sntjmicron[,NSID], sntrealtek, intelliprop,N[+TYPE], jmb39x[-q],N[,sLBA][,force][+TYPE], jms56x,N[,sLBA][,force][+TYPE], marvell, areca,N/E, 3ware,N, hpt,L/M/N, megaraid,N, aacraid,H,L,ID, cciss,N, auto, test <=======",
"severity": "error"
}
],
"exit_status": 1
},
"local_time": {
"time_t": 1733841318,
"asctime": "Tue Dec 10 15:35:18 2024 CET"
}
}
time="2024-12-10T15:35:18+01:00" level=error msg="smartctl returned an error code (1) while processing sda\n" type=metrics

@Ziut3k-dev
Copy link
Author

/opt/scrutiny/config# cat config.yaml
version: 1
host:
id: "srv02"
devices:

  • device: /dev/sda
    type:
    • 'cciss,0'
    • 'cciss,1'
  • device: /dev/sdb
    type:
    • 'cciss,0'
    • 'cciss,1'
  • device: /dev/sdc
    type:
    • 'cciss,0'
    • 'cciss,1'
  • device: /dev/sdd
    type:
    • 'cciss,0'
    • 'cciss,1'
  • device: /dev/sde
    type:
    • 'cciss,0'
    • 'cciss,1'
  • device: /dev/sdf
    type:
    • 'cciss,0'
    • 'cciss,1'
      log:
      file: '/var/log/sc_log.log' #absolute or relative paths allowed, eg. web.log
      level: INFO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants