Step-By-Step: OMS Log Analytics MySQL Linux Monitoring

Hello All!

This post is step-by-step Guide How to configure monitoring of MySQL on Linux by OMS/Log Analytics Agent.

  1. You have to install library: libmysqlclient20 – without this lib OMS Agent will NOT discover MySQL instance installed in OS
  2. (OPTIONAL) Next you need to reinstall Agent if it has been installed before step.1 in order to make Agent discover MySQL and install mysqlcim providers.
  3. Next you need to Setup creds for mysqlcim provider

 

          sudo su omsagent -c ‘/opt/microsoft/mysql-cimprov/bin/mycimprovauth default 127.0.0.1 <username> <password>’

 Note: 

Authentication file location

The MySQL OMI Authentication File should be located in the following location and named “mysql-auth”:

/var/opt/microsoft/mysql-cimprov/auth/omsagent/mysql-auth

The file (and auth/omsagent directory) should be owned by the omsagent user.

/opt/omi/bin/service_control restart

Alternatively, you can specify the required MySQL credentials in a file, by creating the file: /var/opt/microsoft/mysql-cimprov/auth/omsagent/mysql-auth.

USERNAME should have appropriate credential in MySQL

*Note: To grant permissions to a MySQL monitoring user the granting user must have the ‘GRANT option’ privilege as well as the privilege being granted. *

In order for the MySQL User to return performance data the user will need access to the following queries

SHOW GLOBAL STATUS;

SHOW GLOBAL VARIABLES:

In addition to these queries the MySQL user requires SELECT access to the following default tables: information_schema, mysql. These privileges can be granted by running the following grant commands.

GRANT SELECT ON information_schema.* TO ‘monuser’@’localhost’;

GRANT SELECT ON mysql.* TO ‘monuser’@’localhost’;

4. In order to check if mysqlcim provider works fine:

sudo su omsagent -c ‘/opt/omi/bin/omicli ei root/mysql MySQL_Server’

You should see something like:

instance of MySQL_Server

{

[Key] ProductIdentifyingNumber=ubuntu-16-04:127.0.0.1:3306

[Key] ProductName=MySQL

[Key] ProductVendor=Oracle

[Key] ProductVersion=5.7.18

[Key] SystemID=0

[Key] CollectionID=Linux

ConfigurationFile=/etc/mysql/my.cnf

ErrorLogFile=/var/log/mysql/error.log

Hostname=ubuntu-16-04

BindAddress=127.0.0.1

Port=3306

SocketFile=/var/run/mysqld/mysqld.sock

DataDirectory=/var/lib/mysql/

OperatingStatus=OK

}

5. In OMS Workspace you should Enable Performance metrics to collect:

 

Then after some time you should able to see that omsagent.conf file has been updated and new Performance metrics have been added

 

In order to apply you need to restart Agent:

sudo /opt/microsoft/omsagent/bin/service_control restart

 

Happy Monitoring!

THE USE OF THE WEBPAGES OF artempro.ru IS ON YOUR OWN RISK. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, COURSE OF DEALING OR USAGE OF TRADE. artempro.ru AG IS NOT LIABLE FOR ANY WARRANTY CLAIMS OR DAMAGES, IRRESPECTIVE OF THE LEGAL CAUSE, WHETHER IN CONTRACT, WARRANTY, FAILURE OF A REMEDY TO ACHIEVE ITS INTENDED OR ESSENTIAL PURPOSES, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, INDEMNITY OR ANY OTHER LEGAL THEORY AND IN PARTICULAR SHALL NOT BE LIABLE FOR DAMAGES INCURRED AS A RESULT OF CONSULTATION, ASSISTANCE IN SETTING-UP PROCEDURES, BUSINESS INTERRUPTION OR SOFTWARE DEFECTS, EXCEPT WHERE LIABILITY IS MANDATORY FOR DAMAGES TO PRIVATELY USED PROPERTY OR BECAUSE OF VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS OR DUE TO INTENT, GROSS NEGLIGENCE OR FAILURE TO CONFORM TO EXPRESS WARRANTIES. HOWEVER, LIABILITY FOR DAMAGES ARISING FROM THE VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS SHALL BE LIMITED TO THE FORESEEABLE DAMAGE NORMALLY COVERED BY A CONTRACT EXCEPT IN CASES OF WILFUL MISCONDUCT OR GROSS NEGLIGENCE.

 

OMS Log Analytics Ubuntu 16.04 on-boarding undefined symbol: SSLv3_method

Hello All,

Just short post about issue during Ubuntu 16.04 on-boarding to OMS (Log Analytics).

First of all check this Microsoft/OMS-Agent-for-Linux – on this page you can find list of supported versions of Linux Operating Systems and links to many useful resources regarding OMS Agent on Linux.

Second if you try to on-board your Azure Ubuntu 16.04 VM to OMS right out-of-the-box – everything with work fine.

Third…here comes an error

But assume that you have installed PHP 5.6 from added repository as described here: this involves adding repository which contains OpenSSL build without SSLv3 support.

This will lead to following error during install of OMS Linux Agent

Configuring OMI service …
Created symlink from /etc/systemd/system/multi-user.target.wants/omid.service to /lib/systemd/system/omid.service.
Setting up scx (1.6.3.48) …
Setting up omsagent (1.2.0.148) …
-e info Reading onboarding params from: /etc/omsagent-onboard.conf
-e info Reusing previous agent GUID
/opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’: /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/x86_64-linux/openssl.so: undefined symbol: SSLv3_method – /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/x86_64-linux/openssl.so (LoadError)
from /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’
from /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/openssl.rb:17:in `<top (required)>’
from /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’
from /opt/microsoft/omsagent/ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require’
from /opt/microsoft/omsagent/bin/auth_key.rb:2:in `<main>’

OR it will lead to failure IF you upgrade OpenSSL package with

apt-get update

apt-get upgrade

And here is how we could solve issue:

  • if you have OMS Agent installed and upgraded OpenSSL to one from repository – > Agent fail to start

Downgrade to previous version of OpenSSL:

#Check installed and previous version

apt-cache policy openssl
openssl:
Installed: 1.0.2j-1+deb.sury.org~xenial+1
Candidate: 1.0.2j-1+deb.sury.org~xenial+1
Version table:
*** 1.0.2j-1+deb.sury.org~xenial+1 500
500 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
1.0.2g-1ubuntu4.5 500
500 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
1.0.2g-1ubuntu4 500
500 http://azure.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

#Install OpenSSL from Ubuntu repository

apt-get install openssl=1.0.2g-1ubuntu4.5

#Restart Agent and check status

scxadmin -restart

scxadmin -status

omiserver: is running
omiagent: 1 instance running

  • IF you want to on-board but and received error after running install script:

#Uninstall OMS Agent:

sudo dpkg -P omsconfig
sudo dpkg -P omsagent
sudo /opt/microsoft/scx/bin/uninstall


#Install OpenSSL from Ubuntu repository

apt-get install openssl=1.0.2g-1ubuntu4.5

#Install OMS Agent again:

sudo sh ./omsagent-<DOWNLOADED_SCRIPT_VERSION>.sh --install -w <workspaceid> -s <shared key>

Happy Monitoring!

THE USE OF THE WEBPAGES OF artempro.ru IS ON YOUR OWN RISK. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, COURSE OF DEALING OR USAGE OF TRADE. artempro.ru AG IS NOT LIABLE FOR ANY WARRANTY CLAIMS OR DAMAGES, IRRESPECTIVE OF THE LEGAL CAUSE, WHETHER IN CONTRACT, WARRANTY, FAILURE OF A REMEDY TO ACHIEVE ITS INTENDED OR ESSENTIAL PURPOSES, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, INDEMNITY OR ANY OTHER LEGAL THEORY AND IN PARTICULAR SHALL NOT BE LIABLE FOR DAMAGES INCURRED AS A RESULT OF CONSULTATION, ASSISTANCE IN SETTING-UP PROCEDURES, BUSINESS INTERRUPTION OR SOFTWARE DEFECTS, EXCEPT WHERE LIABILITY IS MANDATORY FOR DAMAGES TO PRIVATELY USED PROPERTY OR BECAUSE OF VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS OR DUE TO INTENT, GROSS NEGLIGENCE OR FAILURE TO CONFORM TO EXPRESS WARRANTIES. HOWEVER, LIABILITY FOR DAMAGES ARISING FROM THE VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS SHALL BE LIMITED TO THE FORESEEABLE DAMAGE NORMALLY COVERED BY A CONTRACT EXCEPT IN CASES OF WILFUL MISCONDUCT OR GROSS NEGLIGENCE.

SCOM Global Service Monitor

Hello All!

Pretty short post about System Center Operations Manager Global Service Monitor feature.

Microsoft have pretty useful service called Global Service Monitor(GSM) which could help you to monitor yours external Web Sites from different Locations for Availability.

But some times you can have External Resource but with Limited access from specific White-list and if you want to setup GSM to monitor that resource you can use list of IP from following MS link: IP addresses used by Application Insights  to make ACL Rules on Firewall.

Hope that info will help you set more secure monitoring.

SCOM Skype for Business 2015 Management Pack QoE Monitoring Issue

Hi All!

First all, please make sure that you install/update to latest Skype for Business 2015 Management Pack (SfBMP) version from Microsoft Site. (9319.247 at moment then I am writing Post)

Check SfBMP documentation from MS and make sure that you Enabled Proxy for Agents in SCOM Console or through Powershell.

On SfB level: you need to define Network Site, Network Region, Network Subnet – for  this SfBMP this information have to be configured.

OK let’s assume that you set all prerequisites and SfB Servers from you Topology were discovered with appropriate Roles.

But what about QoE Monitoring? If there is no info in Detail View for Instances:

screeen-8

 

You have to define thresholds for OoE Discovery according to your SLA’s for Example like that:

qoe_overides

Here is some insights:

If we checked that QoE Discovery code in Exported Management Pack we will notice following comment:

#############################################################################

# 1. Discover problematic QoE instances. ( Healthy instances are not discovered at all )

# 2. For each QoE instance, set values of Attributes with alerting context.

#    ( These will be used at Analysis step )

So you will see nothing in views if threshold values are too high (by default for Warn State =14 for Critical State=20) So if you NEED to have info in views you have to setup pretty low threshold values.

And at the End:

screeen-1

Happy Monitoring!

THE USE OF THE WEBPAGES OF artempro.ru IS ON YOUR OWN RISK. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, COURSE OF DEALING OR USAGE OF TRADE. artempro.ru  IS NOT LIABLE FOR ANY WARRANTY CLAIMS OR DAMAGES, IRRESPECTIVE OF THE LEGAL CAUSE, WHETHER IN CONTRACT, WARRANTY, FAILURE OF A REMEDY TO ACHIEVE ITS INTENDED OR ESSENTIAL PURPOSES, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, INDEMNITY OR ANY OTHER LEGAL THEORY AND IN PARTICULAR SHALL NOT BE LIABLE FOR DAMAGES INCURRED AS A RESULT OF CONSULTATION, ASSISTANCE IN SETTING-UP PROCEDURES, BUSINESS INTERRUPTION OR SOFTWARE DEFECTS, EXCEPT WHERE LIABILITY IS MANDATORY FOR DAMAGES TO PRIVATELY USED PROPERTY OR BECAUSE OF VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS OR DUE TO INTENT, GROSS NEGLIGENCE OR FAILURE TO CONFORM TO EXPRESS WARRANTIES. HOWEVER, LIABILITY FOR DAMAGES ARISING FROM THE VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS SHALL BE LIMITED TO THE FORESEEABLE DAMAGE NORMALLY COVERED BY A CONTRACT EXCEPT IN CASES OF WILFUL MISCONDUCT OR GROSS NEGLIGENCE.

SCSM 2012 R2 HTML 5 Self Service Portal Enumeration List Order

Hello All!

First of all Microsoft presented HTML 5 Self Service Portal (SSP)  for SCSM almost year ago. There were 3 Updates released after that. Latest Update description has information about Enum List issue fix:

  • Enums in list don’t appear in the same order as they are shown in the console.

I checked that issue with Out of Box lists (i.e. Incident Classification, Incident urgency…):

I changed Order in Incident Classification List and Add additional Entry in SCSM Console

scsm_ssp

 

After checked Enum List Order on SSP  – but nothing changed in List Order or List Items

After I killed process and Entered SSP again Enum List for Incident Classification was in correct State

ssp_taskmgr

scsm_ssp2

 

Main Idea if you expect to see changes for List Order on SSP as fast as possible you have to kill w3wp.exe process responsible for SSP Application in Task Manager on Internet Information Service (IIS) Server. This step described in MS Technet.

Next if you’re using Custom made Enum List for yours Applications, Offerings e.t.c and you develop management pack in Visual Studio/NotePad++ you probably will just Copy/Paste Entities and after that change IDs and you could face situation that in SCSM Console List will be in Correct order but on SSP it will be NOT same:

Cause of problem: same values in “Ordinal” Parameter for EnumerationValue.

Solution: make sure that you set Ordinal to appropriate values based on your List Order.

After that Items in yours List will appear in correct order.

Thank you.

THE USE OF THE WEBPAGES OF artempro.ru IS ON YOUR OWN RISK. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, COURSE OF DEALING OR USAGE OF TRADE. artempro.ru  IS NOT LIABLE FOR ANY WARRANTY CLAIMS OR DAMAGES, IRRESPECTIVE OF THE LEGAL CAUSE, WHETHER IN CONTRACT, WARRANTY, FAILURE OF A REMEDY TO ACHIEVE ITS INTENDED OR ESSENTIAL PURPOSES, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, INDEMNITY OR ANY OTHER LEGAL THEORY AND IN PARTICULAR SHALL NOT BE LIABLE FOR DAMAGES INCURRED AS A RESULT OF CONSULTATION, ASSISTANCE IN SETTING-UP PROCEDURES, BUSINESS INTERRUPTION OR SOFTWARE DEFECTS, EXCEPT WHERE LIABILITY IS MANDATORY FOR DAMAGES TO PRIVATELY USED PROPERTY OR BECAUSE OF VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS OR DUE TO INTENT, GROSS NEGLIGENCE OR FAILURE TO CONFORM TO EXPRESS WARRANTIES. HOWEVER, LIABILITY FOR DAMAGES ARISING FROM THE VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS SHALL BE LIMITED TO THE FORESEEABLE DAMAGE NORMALLY COVERED BY A CONTRACT EXCEPT IN CASES OF WILFUL MISCONDUCT OR GROSS NEGLIGENCE.

SCSM Bulk deleting of Deleted Items

Hi All!

Here is great article about Deleting Configuration Items in Bulk in System Center 2012 Service Manager with PowerShell.

So in some case it is good idea to automate such process with Powershell. For example then we faced situation then Deleted Items even cannot be access with Exception. Lets try it on our “deleted” from CMDB Objects (placed in Deleted Items) .

#Find CI instances with status ‘Pending Delete’
$SMDelObj = Get-SCSMObject -class $SMClass | where {$_.objectstatus -match “Pending”}

#Delete the CI instances found above
$SMDelObjs | Set-SCSMobject -property objectstatus -value deleted

Ok, it executed lets go back to SCSM Console and check if we get those “deleted” items eliminated – same issue view cannot be opened.

If we check out Operations Manager event log

Event ID: 33333

Event Source: DataAccessLayer

Event Category: Unknown

Data Access Layer rejected retry on SqlError:

Request: MTV_Select_SOME_GUID — (ObjectStatus_4AE3E5FE_BC03_1336_0A45_80BF58DEE57B0=GUID_FROM_EnumType_Table_where_EnumTypeName =’System.ConfigItem.ObjectStatusEnum.PendingDelete’)

Class: 16

Number: 8623

Message: The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

Event ID: 26319

Event Source: OpsMgr SDK Service

Event Category: Unknown

An exception was thrown while processing GetManagedEntitiesByManagedEntityTypesAndCriteriaWithInstanceQueryOptions for session ID uuid:GUID;id=11.

Exception message: The creator of this fault did not specify a Reason.

Full Exception: System.ServiceModel.FaultException`1[Microsoft.EnterpriseManagement.Common.UnknownDatabaseException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.).

So here we need some SQL Insight. I found great BLOG from Pedro Lopez SQL Swiss Army Knife #11.1 – Locking, blocking and active transactions – so try to execute this sql query 6888.view_Running_Blocked_processes

to determine what is going on in SQL during PS Execution or View Opening.

It will return you something like that if you trying to open Deleted Items in SCSM Console:

What is this SELECT!

 

Ok, but what we can do here?

  1. Most of CMDB Items came from Connectors – you have to be careful with SCOM CI and SCCM Connectors
  2. If you delete items from CMDB try to automate task for Maintenance Deleted Items with Service Manager workflow, Orchestrator, Service Management Automation or even with Win task Scheduler

import-smlets
$class = Get-SCSMClass | where{$_.name -match “system.configitem”}
$deletedobjects = Get-SCSMObject -class $class | where{$_.objectstatus -match “Pending”}
$deletedobjects | set-scsmobject -property objectstatus -value deleted

Happy Managing!

THE USE OF THE WEBPAGES OF artempro.ru IS ON YOUR OWN RISK. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, COURSE OF DEALING OR USAGE OF TRADE. artempro.ru AG IS NOT LIABLE FOR ANY WARRANTY CLAIMS OR DAMAGES, IRRESPECTIVE OF THE LEGAL CAUSE, WHETHER IN CONTRACT, WARRANTY, FAILURE OF A REMEDY TO ACHIEVE ITS INTENDED OR ESSENTIAL PURPOSES, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, INDEMNITY OR ANY OTHER LEGAL THEORY AND IN PARTICULAR SHALL NOT BE LIABLE FOR DAMAGES INCURRED AS A RESULT OF CONSULTATION, ASSISTANCE IN SETTING-UP PROCEDURES, BUSINESS INTERRUPTION OR SOFTWARE DEFECTS, EXCEPT WHERE LIABILITY IS MANDATORY FOR DAMAGES TO PRIVATELY USED PROPERTY OR BECAUSE OF VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS OR DUE TO INTENT, GROSS NEGLIGENCE OR FAILURE TO CONFORM TO EXPRESS WARRANTIES. HOWEVER, LIABILITY FOR DAMAGES ARISING FROM THE VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS SHALL BE LIMITED TO THE FORESEEABLE DAMAGE NORMALLY COVERED BY A CONTRACT EXCEPT IN CASES OF WILFUL MISCONDUCT OR GROSS NEGLIGENCE.

SCOM Monitoring of Linux/Unix of Windows workgroup Agent with same name

Hello All!

Lets assume that for some reason you have in yours infrastructure servers which have exact same FQDNs but different IPs (sometimes it can happen with best of us). And you have question if it is possible to monitor such Objects with your SCOM. Every Entity in SCOM has its own unique HealthService GUID – according to this blog How are GUIDs in SCOM and SCSM calculated? such GUIDs calculated based on many parameter which are same inside Management Group and FQDNs for Windows  Computer and Unix/Linux Computer (which are same for our servers). So it is looks like we cannot monitor Servers with same FQDN.

Workaround available:

Imagine we have two servers deployed

– Server1

FQDN:ubuntu1.contoso.com

IP: XXX.XXX.XXX.001

– Server2

FQDN:ubuntu1.contoso.com

IP: XXX.XXX.XXX.002

On SCOM Management server we can create records in c:\Windows\System32\drivers\etc\hosts file

# Server1

#FQDN:ubuntu1.contoso.com

XXX.XXX.XXX.001 ubuntu1.contoso.com

# Server2

# FQDN:ubuntu1.contoso.com

XXX.XXX.XXX.002 ubuntu1-sec.contoso.com

Next on our “second” server we have to manually generate Certificate

/opt/microsoft/scx/bin/tools/scxsslconfig -h ubuntu1-sec.contoso.com -f -v

Now we can discover this server through SCOM Console with appropriate IP address.

Same can be done with Windows Server Computer but Certificate generated different way.

Happy Monitoring!

THE USE OF THE WEBPAGES OF artempro.ru IS ON YOUR OWN RISK. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, COURSE OF DEALING OR USAGE OF TRADE. artempro.ru AG IS NOT LIABLE FOR ANY WARRANTY CLAIMS OR DAMAGES, IRRESPECTIVE OF THE LEGAL CAUSE, WHETHER IN CONTRACT, WARRANTY, FAILURE OF A REMEDY TO ACHIEVE ITS INTENDED OR ESSENTIAL PURPOSES, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, INDEMNITY OR ANY OTHER LEGAL THEORY AND IN PARTICULAR SHALL NOT BE LIABLE FOR DAMAGES INCURRED AS A RESULT OF CONSULTATION, ASSISTANCE IN SETTING-UP PROCEDURES, BUSINESS INTERRUPTION OR SOFTWARE DEFECTS, EXCEPT WHERE LIABILITY IS MANDATORY FOR DAMAGES TO PRIVATELY USED PROPERTY OR BECAUSE OF VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS OR DUE TO INTENT, GROSS NEGLIGENCE OR FAILURE TO CONFORM TO EXPRESS WARRANTIES. HOWEVER, LIABILITY FOR DAMAGES ARISING FROM THE VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS SHALL BE LIMITED TO THE FORESEEABLE DAMAGE NORMALLY COVERED BY A CONTRACT EXCEPT IN CASES OF WILFUL MISCONDUCT OR GROSS NEGLIGENCE.

OMS (Log Analytics) and Red Hat/CentOS integration issue

If you are trying to use Operations Manager Suite to monitor your Red Hat or CentOS VMs you will probably face following issue if you use “Connect” button on Log Analytics section in Azure:

5

There are two ways (tested on CentOS but it same behavior on Red Hat) to make it work:

 

First way:

  1. Disable Diagnostics for VM during creation

1

  1. Use connect button on portal.azure.com

2

  1. And after some time

3

And data will appear in OMS Logs.

Pros: That Workspace Connected on Azure Portal

Cons: Disabled Azure Diag (you’ll monitor VM with OMS  – so no need)

 

Second way:

 

  1. Deploy VM with Azure Diag Enabled:

4

  1. In order to enable OMS you’ll have to install agent Manually:

If previously you tried to use Connect VM button on Azure Portal and it was Fail: You have to use Disconnect button and wait until operation finished (VM have to be turned on.)

In Putty on VM

$> wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/v1.1.0-28/omsagent-1.1.0-28.universal.x64.sh

$> sha256sum ./omsagent-1.1.0-28.universal.x64.sh

$> sudo sh ./omsagent-1.1.0-28.universal.x64.sh –upgrade -w <YOUR OMS WORKSPACE ID> -s <YOUR OMS WORKSPACE PRIMARY KEY>

  1. At the End on azure portal in will be listed as Not Connected but monitoring and data in OMS should appear.

3

Pros But at the end you’ll both OMS data and Azure Diag.

Cons Not Connected in Azure Portal

 

Both ways should bring OMS Linux

If you deployed VM with Azure Diag Enabled and decided to disable it and use Connect Button in Log Analytics Section of Portal – it will NOT Fail if

5

You have to remove extension totally by running following commands:

> sudo rpm -e omsconfig
> sudo rpm -e omsagent
> sudo /opt/microsoft/scx/bin/uninstall

 

After that you Can use “Connect” feature)

Happy Monitoring 🙂

THE USE OF THE WEBPAGES OF artempro.ru IS ON YOUR OWN RISK. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, COURSE OF DEALING OR USAGE OF TRADE. artempro.ru AG IS NOT LIABLE FOR ANY WARRANTY CLAIMS OR DAMAGES, IRRESPECTIVE OF THE LEGAL CAUSE, WHETHER IN CONTRACT, WARRANTY, FAILURE OF A REMEDY TO ACHIEVE ITS INTENDED OR ESSENTIAL PURPOSES, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, INDEMNITY OR ANY OTHER LEGAL THEORY AND IN PARTICULAR SHALL NOT BE LIABLE FOR DAMAGES INCURRED AS A RESULT OF CONSULTATION, ASSISTANCE IN SETTING-UP PROCEDURES, BUSINESS INTERRUPTION OR SOFTWARE DEFECTS, EXCEPT WHERE LIABILITY IS MANDATORY FOR DAMAGES TO PRIVATELY USED PROPERTY OR BECAUSE OF VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS OR DUE TO INTENT, GROSS NEGLIGENCE OR FAILURE TO CONFORM TO EXPRESS WARRANTIES. HOWEVER, LIABILITY FOR DAMAGES ARISING FROM THE VIOLATION OF CARDINAL CONTRACTUAL OBLIGATIONS SHALL BE LIMITED TO THE FORESEEABLE DAMAGE NORMALLY COVERED BY A CONTRACT EXCEPT IN CASES OF WILFUL MISCONDUCT OR GROSS NEGLIGENCE.