S.I.G.M.A. Network s.r.l. | Via Vinicio Cortese 147/F 00128 Roma | P.IVA/C.F. IT05255401001
Registro Imprese Roma – R.E.A. RM-870189 | Capitale sociale i.v. €10.200,00
Copyright © S.I.G.M.A. Netrwork srl
Cookie | Durata | Descrizione |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
How to monitor Microsoft Hyper-V
Prerequisites
For this how-to to work you need the latest op5 NSClient++ installed on your Hyper-V server.
Firewall settings
First off we need to change the firewall settings to allow ICMP ping. Open a terminal on the Windows server and execute:
netsh advfirewall firewall add rule name=”ICMPv4 Inbound” dir=in action=allow enable=yes profile=any localip=any remoteip=any protocol=icmpv4:8,any interfacetype=any edge=yes
Another way is to do the host-check with check_nt_clientversion instead which fetches the version of NSClient++ instead of checking ICMP Ping.
Standard check
First of all we need to monitor the OS as usual:
Services
The following Windows services needs to be monitored. Note that all services may not be used depending on the functions that you are using in your Hyper-V environment.
Performance Counters
These performance counters will give a you good monitoring of your hypervisor. To monitor guest CPU and memory usage and such, install the agent on the virtual machine and monitor it as any other server.
check_vm_health
command: check_nrpe_win_counter
Arguments: Hyper-V Virtual Machine Health Summary()Health Critical!!MaxCrit=1
Comment: Check how many virtual machines that is in critical state. My recommendation is to skip the warning threshold and just use the critical (Therefore the double exclamation marks in the argument).
check_perf_avg_disk_read
command: check_nrpe_win_counter
Arguments: LogicalDisk(C:)Avg. Disk sec/Read!MaxWarn=15!MaxCrit=25
Comment: System disk + disks with guest needs to be monitored.
check_perf_avg_disk_write
command: check_nrpe_win_counter
Arguments: LogicalDisk(C:)Avg. Disk sec/Write!MaxWar=15!MaxCrit=25
Comment: System disk + disks with guest needs to be monitored, the example is for C:, copy the check and replace C: with the guest disk.
check_perf_nic_queue
command: check_nrpe_win_counter
Arguments: Network Interface(Broadcom BCM5709C NetXtreme II GigE [NDIS VBD Client] _50)Output Queue Length!MaxWarn=1!MaxCrit=3
Comment: The instance name (in this example “Broadcom BCM5709C NetXtreme II GigE [NDIS VBD Client] _50″ needs to be changed to the network interface instance name of your server, check performance counters for the correct name. This checks the output queue on the NIC.
check_nrpe_win_memory_physical
Command: $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckMem -a ShowAll=long type=physical $ARG1$
Arguments: MaxWarn=50% MaxCrit=75%
Comment: This check command is not in the default setup and has to be created. The check returns the amount of available physical memory in percentage.
check_perf_hyperv_hypervisor_runtime
command: check_nrpe_win_counter
Arguments: Hyper-V Hypervisor Logical Processor(_Total)% Total Run Time!MaxWarn=60!MaxCrit=90
Articoli recenti
Categorie
Recent Posts
Ciao mondo!
20 Settembre 2022Improving Your Technology
13 Novembre 2019Apply These 5 Secret Techniques
13 Novembre 2019Calendar