Can I monitor vCenter tags and create an alert if a computer doesn't have one?
Hi, We use vCenter to manage our VMs. We have the hosts in LM. We currently have a process where we get an email every morning that has VMs that don’t have any tags. We use Tags to manage backup schedules and things so not having any tags is bad. Anyway, I’m wondering if that’s something that we could use LM to monitor. I don’t need to confirm what the tag is, I just need to know if any VM doesn’t have any tags at all. Is that something we can do with the build-in checks LM does or is that something that would have to be created by hand? Thanks.Solved329Views28likes5CommentsDatasource 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!324Views1like1Comment