Thx Box293 for your response and very nice script !
However, I have a couple of questions about the following commands :
Code: Select all
./box293_check_vmware.pl --server M.y.I.P --check Guest_Snapshot --datacenter 'MyDataCenter' --warning snapshot_age:5 --critical snapshot_age:15
Returns : Can't call method "name" on an undefined value at ./box293_check_vmware.pl line 2920.
Is this a bug or am I missing a parameter ?
Code: Select all
./box293_check_vmware.pl --server M.y.I.P --check Cluster_Resource_Info --cluster 'MyCluster' --reporting_si CPU_Speed:MHz,Memory_Size:MB
Returns : OK: Cluster 'Cluster DCO - NFR' [Hosts {Total: 8} {Available: 8}] [{Cores (Total: 96)
(Available: 0)} {CPU (Free: 229,576 MHz)
(Used: 0 MHz) (Effective: 229,576 MHz) (Total: 255,936 MHz)}] [Memory {Free: 578,414 MB} {Used: 546,415 MB} {Effective: 1,124,829 MB} {Total: 1,179,565.8 MB}]|'Hosts Total'=8 'Hosts Available'=8 'Cores Total'=96 'Cores Available'=0 'CPU Free'=229576MHz 'CPU Used'=0MHz 'CPU Effective'=229576MHz 'CPU Total'=255936MHz 'Memory Free'=578414MB 'Memory Used'=546415MB 'Memory Effective'=1124829MB 'Memory Total'=1179565.8MB
What do you understand under Available cores 0 & Used Mhz 0 ?
These 2 never seem to change on several Clusters.