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

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
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
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 

Recently uploaded (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
+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...
 
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...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

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