Build precise queries to find exactly what you need
Press ESC to close
This plugin is just the job! It worked a treat and along with the contribution from nicola.sarobba (made against the previous version) about using a non-root user (see below), this has made my day.
One of the 8 hosts I’m checking, shows up some weird results (no server details): –
“OK Server: ”
Running with ” -v” shows lots of this kind of thing: –
# /usr/local/nagios/libexec/check_esxi_hardware.py -H vmserver01 -U nagios -P ‘wonkydonky’ -I uk -v -V dell
20130807 23:31:26 Connection to https://vmserver01 20130807 23:31:26 Check classe OMC_SMASHFirmwareIdentity 20130807 23:31:26 Unknown CIM Error: (1, u’ThreadPool — Failed to enqueue request. Too many queued requests already: vmware_base, active 5, queued 11 ‘)
20130807 23:33:52 Check classe VMware_StorageExtent 20130807 23:33:53 Check classe VMware_Controller 20130807 23:33:55 Check classe VMware_StorageVolume 20130807 23:33:57 Check classe VMware_Battery 20130807 23:33:59 Check classe VMware_SASSATAPort OK – Server:
When I log in to vSphere it’s looking quite like the server has some problems (health check shows all “unknown”), so not really the script’s fault, though a “WARNING: couldn’t get any info or similar” might be more appropriate?
Comments to other reviewers now: –
## turner2151uk, have you tried “escaping” the exclaimation mark like this?
Pa55w0rD!s
## Perematko, nicola.sarobba suggested this (which worked a treat for me): –
in vSphere – create a nagios user – add this user to the root group – Assign the “No access” role to the nagios user
## Pentangle, perhaps it’s not executable? I had to do the following to get it to run: –
“chmod +x check_esxi_hardware.py”
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!