VMware Horizon Community
chadg156
Contributor
Contributor

Monitoring View Server

Im looking for a way to setup a policy to moinitor View with my RMM tool.  Does anyone know of a list of Event ID's genereated by view that I can moinitor for?  List in like a tech guide?

0 Kudos
6 Replies
kooltechies
Expert
Expert

What is that you want to monitor ? View events are logged in the View Event DB for all the View operations. One of the good tools you can use to monitor VMware View environments are through VCOPS (with View Adaptor) .

https://www.vmware.com/products/desktop_virtualization/vcenter-operations-manager-view/overview.html

Blog : http://thinkingloudoncloud.com || Twitter : @kooltechies || P.S : If you think that the answer is correct/helpful please consider rewarding points.
0 Kudos
chadg156
Contributor
Contributor

I run an MSP so I have a boat load of Vmware installs that I monitor SNMP traps and gets from the hosts and vcenter.  I've created policies based on the list of Traps that can be thrown from hosts and vcenter.  I've been putting in View installs and see that it logs to the event viewer.  To develop my policy I need a list of all the events that it could log.  Then I can monitor the logs for these events.

I'd prefer to not have to put in various tools based on the install that my RMM is in place and I just need the proper information to pull.

I hope that made a bit more sense and didnt seem rambling Smiley Happy

0 Kudos
kooltechies
Expert
Expert

Makes sense 🙂 this should help you.

http://myvirtualcloud.net/?p=1452

http://www.run-virtual.com/?p=768

Blog : http://thinkingloudoncloud.com || Twitter : @kooltechies || P.S : If you think that the answer is correct/helpful please consider rewarding points.
0 Kudos
chadg156
Contributor
Contributor

I have the Event DB setup...

I'm looking for events that are logged...for example, when the Administror logs in with a bad password you get the following in the Event Log

Log:  Application

Source:  Vmware View

Event ID: 104

ADMIN_LOGIN_FAIL
User login attempt has failed to authenticate to View Administrator
Attributes:
Source=com.vmware.vdi.admin.ui.LoginBean
Time=Sat Jan 26 13:45:12 EST 2013
Severity=AUDIT_FAIL
Node=server.local.lan
Module=Admin
Acknowledged=true

What will I get if there is an issues with creating new VDI vm's in the pool?  What is logged if something goes wrong and new VDI vm's aren;t being created?  Things like that....there has to be a lis of these logged events.  Maybe Smiley Happy  I guess what I need to do it just simulate failures and go from there.

0 Kudos
chadg156
Contributor
Contributor

Hmmm...

This is getting closer...just need ot match a few things up.

http://www.manualslib.com/manual/407693/Vmware-View-4-5-Integration-Guide.html?page=14#manual

0 Kudos
AngstNU
Contributor
Contributor

I am working into powershell scripts to monitor sessions of active users in view, this powershell script use by nagios to send alerst via email and sms.

right now the missing part is the performance graph although there is data but not displayed as graph.

here is the script

# Define Critical & Warning levels to alert back to Nagios.
$Critical = 10
$Warning = 8
###############################################################################################
# Set variables to 0
$Count = 0
# Set Nagios State
$returnStateOK = 0
$returnStateWarning = 1
$returnStateCritical = 2
# Add VMware View PowerShell Snapin.
add-PSSnapin "VMware.View.Broker"
# Collect Desktop Information
ForEach ($Result in Get-RemoteSession -pool_id DS7 | Select state)
{
if ($Result.state -eq "CONNECTED")
{
$Count = $Count + 1
}
elseif ($Result.state -eq "Error")
{
$Count = $Count + 1
}
elseif ($Result.state -eq "Agent unreachable")
{
$Count = $Count + 1
}
}
### PerformanceData Output
$NagiosPerfData = "|Active sessions=" + $Count + ";8;10;0"
$NagiosPerfData = $NagiosPerfData -replace " ", ""
if ($Count -ge $Critical)
{
###CRITICAL STATE
Write-Host "Activesessions="$Count" "$NagiosPerfData
((Get-RemoteSession -pool_id DS7)|Where-Object{$_.state -eq "CONNECTED"}) | select username, duraTion #starTime
exit $returnStateCritical
}
elseif ($Count -ge $Warning)
{
###WARNING STATE
Write-Host "Activesessions="$Count" "$NagiosPerfData
((Get-RemoteSession -pool_id DS7)|Where-Object{$_.state -eq "CONNECTED"}) | select username, duraTion #starTime
exit $returnStateWarning
}
else
{
###OK STATE
Write-Host "Activesessions="$Count" "$NagiosPerfData
((Get-RemoteSession -pool_id DS7)|Where-Object{$_.state -eq "CONNECTED"}) | select username, duraTion #starTime
}
exit $returnStateOk
0 Kudos