Comments (7)
add storage monitoring to the plugin
Do you mean VMFS datastores? No, this is not possible as this is not a physical element and therefore won't appear in the CIM elements. Physical drives however are usually in the CIM element list, as long as the server hardware supports it. But you see this from your output already.
exclusion of storage monitoring (with something like -nodisk)
Yes, you can use the -i
/--ignore
parameter together with -r
/--regex
parameter to ignore all drives. Something like this should do it:
./check_esxi_hardware.py -H esxiserver -U root -P pass -i "Drive,Disk" -r
from check_esxi_hardware.
Sorry, mentioning Datastores was probably a red herring - I was referring to the Physical Disks visible in the iDRAC and the associated Virtual Disk(s) created on the onboard PERC, which are mounted as local datastores in ESXi.
Your plugin does not seem to have the option to query the storage exclusively (by excluding all other options), other than the general alarm when there's a warning. There also doesn't seem to be any way of collecting perf history of storage for the same reason.
I will using your ignore commands to suppress the warnings on the individual cloned elements, but unless I'm missing something obvious (or you're suggesting to use -i and ignore everything except Drive and Disk, there's no current way I can set up a service clone that is just geared towards monitoring the storage elements.
from check_esxi_hardware.
I was referring to the Physical Disks
Yes, physical disks/drives are monitored, as long as they appear in the elements sent by the CIM server (use verbose mode to see the list of CIM elements). If the physical drives don't show up in the list, then you might need to install additional VIBs from the hardware vendor (Dell OpenManage Offline Bundle and VIB for ESXi).
query the storage exclusively
That's right, the plugin does check all the CIM elements and using the -i
list, you can define which elements to exclude from the check.
set up a service clone that is just geared towards monitoring the storage elements
Although using the ignore list to achieve this, I don't know what you are trying to achieve with this? Why not simply check all the cim elements (hardware parts) and get alerted if one element fails? The plugin notifies what kind of element/hardware failed. Maybe I haven't seen such a practical use case before...
from check_esxi_hardware.
It could be a force of habit of my wanting to know granular information + learning Icinga2 and pushing it as hard as possible.
I've run the verbose output and, yes, the drive information is clearly there - what was the reasoning behind not producing perf data for the drive that would justify a separate exclusion etc.
Obviously it's your plugin = your choice. Maybe I need to learn Python and fork it 😄
from check_esxi_hardware.
what was the reasoning behind not producing perf data for the drive
Because the drives don't have any perf data on a CIM level. They only show their current status. You could only get performance data such as I/O from the OS (ESXi).
So if I understand you correctly, your feature request would be an exclusive parameter to only monitor specific elements (the opposite of the ignore parameter)? Is that right? (even though I still don't see what's there to gain defining multiple service checks)
from check_esxi_hardware.
Yes, I've just reviewed the output and see that data is only what is displayed, which is annoying.
You'd imagine Dell exposing something like the capacity metrics & more SMART information would be sensible, but c'est la vie... I'm not sure what would be required to install additional VIBs - is that done by installing them onto ESXi or is this something installed on the server executing the script, like SNMP MIBs (in this case, Icinga2 running on Ubuntu 18.04)?
I guess the feature request would be an optional --no-disk parameter that behaves the same way as the other values, effectively ignoring disk-related items. Perf data would be an OK, WARN (for Predicted Failures) or CRITICAL result from each disk.
from check_esxi_hardware.
I'm going to close this issue as I've realised that the iDRAC monitoring plugin can grab all the information from the server via a more direct means.
Thanks for your work anyway 😄
from check_esxi_hardware.
Related Issues (20)
- error inconsistent with command line requirements
- clean up /tmp/<ip>_openssl.conf
- SSL problems with older ESXi HOT 5
- Controller Alarm not reported HOT 6
- The script doesn't work on Ubuntu 20.04 HOT 2
- Error on importing pywbem.cim_http and pywbem.cim_operations HOT 7
- was working fine with esxi 7.0 but not with 7.0.2 anymore HOT 4
- pywbem 1.0 and later no longer support "no_verification" in WBEMConnection HOT 1
- Connection error after ESXi upgrade HOT 8
- Unconfigured Disk flapping VMware ESXi 7.0.3 HOT 6
- cim_operations error HOT 10
- Run check_esxi_hardware.py with readonly user on esxi HOT 3
- ImportError: No module named pywbem | Ubuntu 20.04.03 HOT 7
- Run check_esxi_hardware.py with readonly user on esxi not working HOT 3
- check_esxi_hardware.py fails after ESXI upgrade HOT 6
- ignore certificate check HOT 3
- TypeError: can only concatenate str (not "NoneType") to str
- Is there any way to check HealthState or Status of NIC(vmnic)? HOT 1
- pkg_resources is deprecated HOT 1
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 check_esxi_hardware.