Install in Nagios/IcingaĮdit your commands.cfg and add the following.This report analyzes the amount of space consumed by files of VMs on datastores and helps evaluate available datastore resources in the infrastructure. Remember that the include has a higher priority than the exclude.
check_usolved_vsphere_ -H 172.0.1.1 -U username -P password -C i:type=ds,i:status=critical,e:object=dsname03 check all datastores with critical alarms but don't show datastores with name dsname03 check_usolved_vsphere_ -H 172.0.1.1 -U username -P password -C i:type=esxĢ. Status = just show either warnings or criticalsĭatacenter = to filter alarms for a specific datacenter Name = to filter for a specific alarm message Object = to check a specific object name like a vm name Type = just check vms, ds or esx hosts alarms If you use windows login make sure to escape the backslash like domainname\\\\username Here are all arguments that can be used with this plugin: -H, -hostname=HOST View extended output for more information. The output could look like this: Critical - 2 alarms found. check_usolved_vsphere_ -H 172.0.1.1 -U username -P password -C i:type=ds,i:status=critical Warning - Data storage disk on DATASTORE5 (DATACENTER1: Datastore)Ĭritical - SimpliVity OmniCube Available Physical Capacity 10 Percent or Less on ESX3 (DATACENTER1: HostSystem)Ĭritical - SimpliVity Datacenter Available Physical Capacity 10 Percent or Less on SERVER2 (DATACENTER1: Datacenter) Warning - Data storage disk on DATASTORE4 (DATACENTER1: Datastore) Warning - Data storage disk on DATASTORE3 (DATACENTER1: Datastore) Warning - CPU-Usage of Virtual Machine on SERVER3 (DATACENTER2: VirtualMachine)Ĭritical - CPU-Usage of Virtual Machine on SERVER1 (DATACENTER2: VirtualMachine)Ĭritical - Data storage disk on DATASTORE1 (DATACENTER1: Datastore)Ĭritical - Data storage disk on DATASTORE2 (DATACENTER1: Datastore) View extended output for more information.Ĭritical - Network-Uplink-Redundancy lost on ESX1 (DATACENTER1: HostSystem) The output could look like this: Critical - 10 alarms found. check_usolved_vsphere_ -H 172.0.1.1 -U username -P password If you are in the Nagios plugin directory execute this command. Upload the tar.gz to your Nagios/Icinga server and install it.
If you get errors while executing the plugin install the missing modules. If you have at least Perl 5 and the VMWare Perl SDK installed this plugin should run out-of-the-box.
Just copy the file check_usolved_vsphere_ into your Nagios plugin directory.įor example into the path /usr/local/nagios/libexec/Īdd execution permission for the nagios user on check_usolved_vsphere_alarms.php. If you're already using alarm rules in vSphere this plugin may help you to have your monitoring in one place instead of two. You can filter the alarms with various options for ex- and including items.
This Perl Nagios/Icinga plugin retrieves all alarms from VMWare vSphere.