SlideShare a Scribd company logo
1 of 15
Windows: Agentless Monitoring using Opsview




Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence   2
About
• This ‘how to’ presentation describes how to set up agentless monitoring
  for Windows in Opsview V4.
• To obtain a copy of Opsview visit our website and download Opsview Core
  (free) or Opsview Pro (30 day trial).




                                                                            3
Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence
Pre-requisites
• We need to install an open source WMI Client, as previous versions
  (Ubuntu packaged .deb versions of WMI-Client, for example) do not work
  with newer versions of Windows (2008, 7, etc).
• We also need to install the check_wmi_plus.pl script, which requires some
  configuration, along with some modules via CPAN/APT.




                                                                              4
Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence
Background Information
• In the example environment used for this setup, we have a Ubuntu 10.04
  x64 server, however aside from the plugins/packages downloaded by APT
  (which can be downloaded via alternatives package managers) the steps
  are nearly identical.




                                                                           5
Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence
Background Information




                                                                   6
Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Firstly, we must install some pre-requisite packages on our server. These
  are “gcc”, “automake” and “DateTime.pm” (A perl module required):


sudo apt-get install autoconf gcc libdatetime-perl



• Once done, we will now install the underlying WMI client. Firstly, change
  directory to /home/user (or wherever you would like the config work to be
  done, however this is all relative).




                                                                              7
Thursday, 26 July 2012    © Opsview Ltd. Commercial in Confidence
Installation
• Once done, we will now install the underlying WMI client. Firstly, change
  directory to /home/user (or wherever you would like the config work to be
  done, however this is all relative).
• Secondly, download the source from the link below and extract:


wget http://dev.zenoss.org/svn/trunk/inst/externallibs/wmi-1.3.16.tar.bz2

bunzip2 wmi-1.3.16.tar.bz2

tar -xvf wmi-1.3.16.tar cd wmi-1.3.16/




                                                                              8
Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Now we are in the wmi folder, we will need to set the location of our
  “../bin/python” directory; in our case using Ubuntu, it is in /usr, so:

export ZENHOME=/usr


• This tells the program to look for /bin/python in /usr, i.e. /usr/bin/python
  (the fqdn).
• Next, we will need to edit “GNUmakefile” as below, and find and comment
  out / delete the line “USE_BREAKPAD=1”:

nano GNUmakefile


And comment out the line, so it looks like “#USE_BREAKPAD=1”.



                                                                                 9
Thursday, 26 July 2012    © Opsview Ltd. Commercial in Confidence
Installation
• Next, we need to run “make” and the compilation will begin, this can take
  up to 10 minutes.
• Then we will need to move the newly created wmic into /bin, using the
  command below:

cp /home/ubuntu/wmi/wmi-1.3.16/Samba/source/bin/wmic /bin


• Next we will need to install some Perl modules required:


perl -MCPAN -e shell

cpan>o conf urllist http://ppm.activestate.com/CPAN http://cpan.perl.org

cpan>o conf commit cpan>o conf prerequisites_policy follow

cpan>o conf commit cpan>install Config::IniFiles


                                                                              10
Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Once done, we will next need to download the check_wmi_plus plugin
  and compile. To do this, we must first download and extract using the
  commands:

wget http://edcint.co.nz/checkwmiplus/sites/default/files/check_wmi_plus.v1.52.tar.gz
tar -zxvf check_wmi_plus.v1.52.tar.gz


• You should “cd ….” again to a suitable location to extract and work on the
  plugin. Once extracted, we will need to copy/rename the sample
  config, so we have a copy we are working on, as below:
cp check_wmi_plus.conf.sample check_wmi_plus.conf


• Once done, we will need to edit the new config using nano/vim etc:

nano check_wmi_plus.conf



                                                                                        11
Thursday, 26 July 2012       © Opsview Ltd. Commercial in Confidence
Installation
• There are a few items we need to edit:
• $base_dir="home/ubuntu/wmi/”; << This needs to be the folder where
  we extracted wmi, i.e. where the folder “wmi-1.3.16” lives.
• $wmic_command="/bin/wmic"; << This should be ok if you followed
  instructions, as this is where we moved our newly compiled “wmic” to.
• $wmi_ini_file='/home/ubuntu/wmi/check_wmi_plus.d/check_wmi_plus.i
  ni'; << This should be where the “check_wmi_plus.ini” file lives, normally
  within the extracted “check_wmi_plus.d” folder.
• $wmi_ini_dir="/home/ubuntu/wmi/check_wmi_plus.d/" << As above.
• Once this file is edited and tailored per your system/install, we should be
  almost ready to test. Finally, we need to edit the plugin itself and edit the
  value, so:

nano check_wmi_plus.pl my $conf_file='/home/ubuntu/wmi/check_wmi_plus.conf';



• To point to our newly created/edited config file at /home/ubuntu/wmi/
                                                                                  12
Thursday, 26 July 2012       © Opsview Ltd. Commercial in Confidence
Installation
• So now we should have the wmic program downloaded and compiled, the
  required Perl modules downloaded and installed, and the check_wmi_plus
  plugin downloaded, compiled and customised.
• We can test our plugin against a WMI enabled Windows machine (WMI
  enabled means someone has gone into the server, “start > run >
  services.msc (enter) >” scrolled down to “WMI Performance Adapter” and
  “started” it.
• To test, run a command similar to below:

root@devvm:/home/ubuntu/wmi# ./check_wmi_plus.pl -H 192.168.11.107 -u root -p opsview -m checkcpu
OK (Sample Period 489 sec) - Average CPU Utilisation 6.69%|'Avg CPU Utilisation'=6.69%;




• Where “-H” is for host, “-u” is for user, and “-p” is for password. “-m” is
  the mode (“-s” is where we add the sub-mode). If the command
  works, you should see an output as above. If you do, congratulations your
  Opsview Server is now monitoring without an agent!

                                                                                                    13
Thursday, 26 July 2012            © Opsview Ltd. Commercial in Confidence
Watch the Video!
Want to find out more about Windows monitoring with
Opsview? Check out our Webinar recording.




                                                                   14
Thursday, 26 July 2012   © Opsview Ltd. Commercial in Confidence
About Opsview
Opsview delivers a single unified view of the health of all your
distributed physical, virtual and hybrid cloud systems.

We give DevOps staff all the tools they need to get their jobs
done faster, easier and for less.

•    Opsview Enterprise offers large enterprises (+100 devices) and MSPs a certified,
     professionally supported system with enhanced functionality such as dynamic
     dashboards and reports

•    SMEs looking for feature-rich dashboards to monitor the performance of their on-
     premise, virtualized or cloud apps choose Opsview Pro

•    Opsview Core is our free, open source monitoring tool - you can test and
     customize it how you want


                                                                                        15
Thursday, 26 July 2012        © Opsview Ltd. Commercial in Confidence

More Related Content

Recently uploaded

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Windows: Agentless Monitoring with Opsview

  • 1.
  • 2. Windows: Agentless Monitoring using Opsview Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence 2
  • 3. About • This ‘how to’ presentation describes how to set up agentless monitoring for Windows in Opsview V4. • To obtain a copy of Opsview visit our website and download Opsview Core (free) or Opsview Pro (30 day trial). 3 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 4. Pre-requisites • We need to install an open source WMI Client, as previous versions (Ubuntu packaged .deb versions of WMI-Client, for example) do not work with newer versions of Windows (2008, 7, etc). • We also need to install the check_wmi_plus.pl script, which requires some configuration, along with some modules via CPAN/APT. 4 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 5. Background Information • In the example environment used for this setup, we have a Ubuntu 10.04 x64 server, however aside from the plugins/packages downloaded by APT (which can be downloaded via alternatives package managers) the steps are nearly identical. 5 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 6. Background Information 6 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 7. Installation • Firstly, we must install some pre-requisite packages on our server. These are “gcc”, “automake” and “DateTime.pm” (A perl module required): sudo apt-get install autoconf gcc libdatetime-perl • Once done, we will now install the underlying WMI client. Firstly, change directory to /home/user (or wherever you would like the config work to be done, however this is all relative). 7 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 8. Installation • Once done, we will now install the underlying WMI client. Firstly, change directory to /home/user (or wherever you would like the config work to be done, however this is all relative). • Secondly, download the source from the link below and extract: wget http://dev.zenoss.org/svn/trunk/inst/externallibs/wmi-1.3.16.tar.bz2 bunzip2 wmi-1.3.16.tar.bz2 tar -xvf wmi-1.3.16.tar cd wmi-1.3.16/ 8 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 9. Installation • Now we are in the wmi folder, we will need to set the location of our “../bin/python” directory; in our case using Ubuntu, it is in /usr, so: export ZENHOME=/usr • This tells the program to look for /bin/python in /usr, i.e. /usr/bin/python (the fqdn). • Next, we will need to edit “GNUmakefile” as below, and find and comment out / delete the line “USE_BREAKPAD=1”: nano GNUmakefile And comment out the line, so it looks like “#USE_BREAKPAD=1”. 9 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 10. Installation • Next, we need to run “make” and the compilation will begin, this can take up to 10 minutes. • Then we will need to move the newly created wmic into /bin, using the command below: cp /home/ubuntu/wmi/wmi-1.3.16/Samba/source/bin/wmic /bin • Next we will need to install some Perl modules required: perl -MCPAN -e shell cpan>o conf urllist http://ppm.activestate.com/CPAN http://cpan.perl.org cpan>o conf commit cpan>o conf prerequisites_policy follow cpan>o conf commit cpan>install Config::IniFiles 10 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 11. Installation • Once done, we will next need to download the check_wmi_plus plugin and compile. To do this, we must first download and extract using the commands: wget http://edcint.co.nz/checkwmiplus/sites/default/files/check_wmi_plus.v1.52.tar.gz tar -zxvf check_wmi_plus.v1.52.tar.gz • You should “cd ….” again to a suitable location to extract and work on the plugin. Once extracted, we will need to copy/rename the sample config, so we have a copy we are working on, as below: cp check_wmi_plus.conf.sample check_wmi_plus.conf • Once done, we will need to edit the new config using nano/vim etc: nano check_wmi_plus.conf 11 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 12. Installation • There are a few items we need to edit: • $base_dir="home/ubuntu/wmi/”; << This needs to be the folder where we extracted wmi, i.e. where the folder “wmi-1.3.16” lives. • $wmic_command="/bin/wmic"; << This should be ok if you followed instructions, as this is where we moved our newly compiled “wmic” to. • $wmi_ini_file='/home/ubuntu/wmi/check_wmi_plus.d/check_wmi_plus.i ni'; << This should be where the “check_wmi_plus.ini” file lives, normally within the extracted “check_wmi_plus.d” folder. • $wmi_ini_dir="/home/ubuntu/wmi/check_wmi_plus.d/" << As above. • Once this file is edited and tailored per your system/install, we should be almost ready to test. Finally, we need to edit the plugin itself and edit the value, so: nano check_wmi_plus.pl my $conf_file='/home/ubuntu/wmi/check_wmi_plus.conf'; • To point to our newly created/edited config file at /home/ubuntu/wmi/ 12 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 13. Installation • So now we should have the wmic program downloaded and compiled, the required Perl modules downloaded and installed, and the check_wmi_plus plugin downloaded, compiled and customised. • We can test our plugin against a WMI enabled Windows machine (WMI enabled means someone has gone into the server, “start > run > services.msc (enter) >” scrolled down to “WMI Performance Adapter” and “started” it. • To test, run a command similar to below: root@devvm:/home/ubuntu/wmi# ./check_wmi_plus.pl -H 192.168.11.107 -u root -p opsview -m checkcpu OK (Sample Period 489 sec) - Average CPU Utilisation 6.69%|'Avg CPU Utilisation'=6.69%; • Where “-H” is for host, “-u” is for user, and “-p” is for password. “-m” is the mode (“-s” is where we add the sub-mode). If the command works, you should see an output as above. If you do, congratulations your Opsview Server is now monitoring without an agent! 13 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 14. Watch the Video! Want to find out more about Windows monitoring with Opsview? Check out our Webinar recording. 14 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence
  • 15. About Opsview Opsview delivers a single unified view of the health of all your distributed physical, virtual and hybrid cloud systems. We give DevOps staff all the tools they need to get their jobs done faster, easier and for less. • Opsview Enterprise offers large enterprises (+100 devices) and MSPs a certified, professionally supported system with enhanced functionality such as dynamic dashboards and reports • SMEs looking for feature-rich dashboards to monitor the performance of their on- premise, virtualized or cloud apps choose Opsview Pro • Opsview Core is our free, open source monitoring tool - you can test and customize it how you want 15 Thursday, 26 July 2012 © Opsview Ltd. Commercial in Confidence