WMI to MVs Azure
Posted: Tue Dec 03, 2019 1:47 pm
I need to monitor virtual machines on Azure through WMI.
Azure has a virtual machine that is the domain controller replica where the nagios server is.
We follow the documentation steps: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
The user we are using has domain privileges and it works for machines that are out of the azure.
Server Nagios:
MV Azure:
Error:
Azure has a virtual machine that is the domain controller replica where the nagios server is.
We follow the documentation steps: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
The user we are using has domain privileges and it works for machines that are out of the azure.
Server Nagios:
Code: Select all
$ nmap <MV Azure> -p 135
Starting Nmap 6.47 ( http://nmap.org ) at 2019-12-03 14:14 -03
Nmap scan report for 10.x.x.x
Host is up (0.023s latency).
PORT STATE SERVICE
135/tcp open msrpc
Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds
Code: Select all
>sc query winmgmt
SERVICE_NAME: winmgmt
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
Code: Select all
$ /usr/local/nagios/libexec/check_wmi_plus.pl -H 10.x.x.x -u 'domain/user' -p 'passwd' -m checkcpu -w '80' -c '90'
UNKNOWN - Plugin Timed out (15 sec). There are multiple possible reasons for this, some of them include - The host 10.x.x.x might just be really busy, it might not even be running Windows.