Giter Site home page Giter Site logo

Comments (14)

glensc avatar glensc commented on August 25, 2024

please see CONTRIBUTING.md in the repository how to report bugs. need debug data from your system to fix.

from nagios-plugin-check_raid.

ebourg avatar ebourg commented on August 25, 2024

Ok, I ran ./check_raid.pl -d and got this:

DEBUG EXEC: /proc/mdstat at ./check_raid.pl line 449.
DEBUG EXEC: /sbin/MegaCli -PDList -aALL -NoLog at ./check_raid.pl line 449.
DEBUG EXEC: /sbin/MegaCli -LdInfo -Lall -aALL -NoLog at ./check_raid.pl line 449.
DEBUG EXEC: /sbin/mpt-status -p at ./check_raid.pl line 449.
ioctl: No such device
Use of uninitialized value in substitution iterator at ./check_raid.pl line 430.
DEBUG EXEC: /sbin/mpt-status -i  at ./check_raid.pl line 449.
ioctl: No such device
DEBUG EXEC: /sbin/tw_cli info at ./check_raid.pl line 449.
UNKNOWN: megacli:[Volumes(1): DISK0.0:Optimal; Devices(3): 05=Hotspare 06,07=Online]; mpt:[Plugin error]; tw_cli:[No Adapters were found on this machine]

Running /sbin/mpt-status -p gives:

Checking for SCSI ID:0
ioctl: No such device

Let me know if you need more details.

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

share the output of each of those commands please. CONTRIBUTING.md has the info how you could do that.

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

also, need to distinguish what mpt-status prints to stderr, what to stdout, and what is it's exit code:

# mpt-status -p 1>stdout 2>stderr; echo $?

show me above result outcome, and the contents of stdout and stderr files

from nagios-plugin-check_raid.

ebourg avatar ebourg commented on August 25, 2024

The other commands are unrelated to this warning, I get the same result with check_raid.pl -p mpt and it invokes only mpt-status.

For some reason mpt-status now returns another error message on my system, but check_raid still complains about the same uninitialized value.

Here are the outputs:

check_raid.pl -d -p mpt :

DEBUG EXEC: /sbin/mpt-status -p at ./check_raid.pl line 449.
open /dev/mptctl: No such file or directory
  Try: mknod /dev/mptctl c 10 220
Make sure mptctl is loaded into the kernel
Use of uninitialized value in substitution iterator at ./check_raid.pl line 430.
DEBUG EXEC: /sbin/mpt-status -i  at ./check_raid.pl line 449.
open /dev/mptctl: No such file or directory
  Try: mknod /dev/mptctl c 10 220
Make sure mptctl is loaded into the kernel
UNKNOWN: mpt:[Plugin error]

mpt-status -p :

open /dev/mptctl: No such file or directory
  Try: mknod /dev/mptctl c 10 220
Make sure mptctl is loaded into the kernel

and mpt-status -p 1>stdout 2>stderr; echo $? returns 1.

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

please post those two files (stdout and stderr) as i asked. need to distinguish of those. i can't differenciate from your post what stream the output goes.

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

also, check your lsmod output, especially mpt* modules

from nagios-plugin-check_raid.

ebourg avatar ebourg commented on August 25, 2024

stdout is empty and stderr contains:

open /dev/mptctl: No such file or directory
  Try: mknod /dev/mptctl c 10 220
Make sure mptctl is loaded into the kernel

lsmod doesn't show any mpt* module

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

do you even need mpt-status there? uninstall the program so it won't initialize mpt plugin

from nagios-plugin-check_raid.

ebourg avatar ebourg commented on August 25, 2024

No I don't need it, but I can't uninstall it either. It comes bundled with my distribution (Proxmox).

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

i see. you can workaround by specifying plugin(s) to use with -p

from nagios-plugin-check_raid.

ebourg avatar ebourg commented on August 25, 2024

Yes that's what I did. But still, if someone needs mpt-status and has an error, he will get an 'uninitialized value' message instead of a proper plugin failure with a meaningful message.

from nagios-plugin-check_raid.

glensc avatar glensc commented on August 25, 2024

could you try this fix? it disables the plugin if mpt-status -p does not give any controller id out

from nagios-plugin-check_raid.

ebourg avatar ebourg commented on August 25, 2024

I no longer get the uninitialized warning with the commit 8e11af3, thank you Elan.

from nagios-plugin-check_raid.

Related Issues (20)

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.