Comments (14)
please see CONTRIBUTING.md in the repository how to report bugs. need debug data from your system to fix.
from nagios-plugin-check_raid.
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.
share the output of each of those commands please. CONTRIBUTING.md has the info how you could do that.
from nagios-plugin-check_raid.
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.
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.
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.
also, check your lsmod
output, especially mpt*
modules
from nagios-plugin-check_raid.
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.
do you even need mpt-status there? uninstall the program so it won't initialize mpt plugin
from nagios-plugin-check_raid.
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.
i see. you can workaround by specifying plugin(s) to use with -p
from nagios-plugin-check_raid.
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.
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.
I no longer get the uninitialized warning with the commit 8e11af3, thank you Elan.
from nagios-plugin-check_raid.
Related Issues (20)
- arcconf should report UNKNOWN by default if no raid volumes are found
- arcconf: bbu monitoring for flash+battery/supercap adaptec modules HOT 1
- arcconf: doesn't handle logical device status: Impacted (Build/Verify with fix : 90 %) HOT 2
- Allow to ignore plugins
- No remote servers RAID status: check_raid UNKNOWN HOT 16
- Possible to hide "OK" results or just showing "OK" and not all devices? HOT 4
- Error runing plug-in on debian 10 HOT 10
- remote monitor HOT 1
- Use of StorCli instead of MegaCli HOT 5
- [bug] with parsing mdadm output => Unexpected parse
- Sudo error on centos
- WARNING: megacli:[Volumes(1): DISK0.0:Optimal, WriteCache:DISABLED HOT 2
- arcconf: parse error HOT 6
- Unexpected parse at ./check_raid.pl line 3578, <$fh> line 6. HOT 1
- HP ssacli - consider predictive failure information HOT 6
- HP ssacli - rebuilding shouldn't perhaps still be warning state? HOT 6
- HP ssacli -
- Error with P440AR RAID controller. How to solve, what to change? Please advice. HOT 6
- "NOT PARSED" and "Can't locate object method" errors HOT 2
- Feature Request mdstat: Warn when auto-read-only array detected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagios-plugin-check_raid.