What is the correct way to exclude VMWare folders from the new script netscan?
I am trying to use the netscan to discover VM/ESXi hosts within my vCenter applicances. I want to exclude a few specific folders when viewing from "VM and Templates" view. It looks like it supports excluding folders based on the doc, VMware vSphere Monitoring | LogicMonitor I have added this filter attribute 'vcenter.folder' and in the scan it looks like this. This doesnt seem to work though. Ive tried both 'contain' and 'notcontain' and neither are excluding these folders. Any ideas?35Views0likes1CommentVMWare Check Datastores for unusual files/file extensions.
I am looking to implement a some form of monitoring for when files on a datastore become renamed or appear with file extensions that are not part of a predefined list(.vmdk, .vmx, etc...). The 2 ways I am considering are via a config source or just a regular datasource and I am trying to weigh out the pros and cons of each. I don't think using SSH with a config source will work because our monitoring accounts are all read only and I'm not sure if that level of permissions includes SSH access. On the other hand a config source can check quickly and effectively where as using a datasource with Active Discovery is limited to 15 minutes if it were in fact wanting to discover new instances of files with abnormal file extensions. Can you implement a config source that uses the SDK like the legacy VMWare modules in lieu of SSH? Looks like you can. That might be the way to go. Looks like I would want to use "HostDatastoreBrowser" from the SDK. What would you guys do?34Views4likes0CommentsNew VMware modules dropped
Did anybody else notice the ~44 new and ~5 updated modules around VMware dropping in the last hour or so? Does anyone know how to implement these new modules? Since there was talk of making the instances into resources I don’t want to just bring them in without knowing how it’s going to mess with my device list (which is tightly bound to billing for us).857Views30likes41CommentsExcluding VMware VMs from instance discovery
When we add a vCenter into Logic Monitor, the VMs in it’s managed clusters are discovered as instances of underneath datasources applied to the vCenter, like: VMware VM Status VMware VM Snapshots VMware VM Performance Sometimes there are VMs that we have no interest in monitoring, so we don’t want them to be picked up by these datasources. At the moment, we’re manually adding an Instance Group, putting those VMs in the group and then disabling alerts, which is quite a manual process. Ideally we’d like LM to not discover VMs that have had a specific tag/value applied to them in vCenter. I think we should be able to do this by modifying the Groovy script used for Active Discovery on these data sources, but I’m not sure how to go about that. Has anyone managed to do something similar? DaveSolved428Views29likes16CommentsDatasource to get Uptime of VMWare vCenter Appliance
I cannot find a DataSource to build off to grab the uptime of our vCenter appliances. I am able to get ESXi hosts uptimes with: import com.vmware.vim25.mo.*; import com.santaba.agent.groovyapi.esx.ESX; def host = hostProps.get("system.hostname"); def user = hostProps.get("esx.user"); def pass = hostProps.get("esx.pass"); def addr = hostProps.get("esx.url") ?: "https://${host}/sdk"; def svc = new ESX(); svc.open(addr, user, pass, 10 * 1000); // Timeout in 10 seconds def rootFolder = svc.getServiceInstance().getRootFolder(); def hosts = new InventoryNavigator(rootFolder).searchManagedEntities("HostSystem"); hosts.each { esx -> def uptimeinSeconds = esx.summary.quickStats; println "UpTimeInSeconds=${uptimeinSeconds.uptime}"; } return 0; but cannot seem to adapt this for vCenter Appliances. Any help would be appreciated!324Views1like1CommentChecking Reboot of VMs
Has anyone had any luck monitoring VMStatus for reboots without using the DaysSinceLastReboot? as this gives a false reading, as it kicks in when the VM is vMotioned. I have tried the GuestState but it looks like the GuestOS isnt in the state for long enough for that to trigger22Views0likes1Comment