Nagios Monitoring of Windows VM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nagiosvick
Posts: 22
Joined: Fri Sep 30, 2016 4:19 pm

Nagios Monitoring of Windows VM

Post by nagiosvick »

Hi,

I'm evaluating Nagios for monitoring JVM of VCenter server which is a Windows VM.

I downloaded the Nagios Xi from the link https://www.nagios.com/downloads/nagios-xi/

This is a 64 bit Windows VM. Used virtual box and vmware workstation to open the 64 bit ova nagiosxi-5.2.9-64. Im getting the same error

Workstation error:

This virtual machine is configured for 64-bit guest operating systems. However, 64-bit operation is not possible.

This host does not support Intel VT-x.

Virtual box error:

Vt-x/AMD V hardware acceleration is not available . 64 bit guest will fail to detect a 64 bit bit cpu and will not be able to boot.

Please advice.

Thanks,
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagios Monitoring of Windows VM

Post by avandemore »

64-bit host OS isn't the only requirement for running for running a 64 bit VM, you also need the VT-x/AMD-V.  Sometimes this is an option in the BIOS however certain CPU's don't have this. Please let us know if this resolves your issue.
Previous Nagios employee
nagiosvick
Posts: 22
Joined: Fri Sep 30, 2016 4:19 pm

Re: Nagios Monitoring of Windows VM

Post by nagiosvick »

Hi Thanks for the reply. I'm actually running a Windows 2012 server and it seems like Nagios is not supported yet.

Is it possible to install Nagios on a Centos/RHEL (virtual box) inside of the Windows Virtual machine I need to monitor?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Monitoring of Windows VM

Post by tmcdonald »

I think you are misunderstanding some things. You do not need to install Nagios *on* the machine which you wish to monitor. For that, we have various software agents that you install instead, and Nagios polls those. If you want to monitor Windows, there is a Windows Server wizard under the Configure link that will walk you through it.
Former Nagios employee
nagiosvick
Posts: 22
Joined: Fri Sep 30, 2016 4:19 pm

Re: Nagios Monitoring of Windows VM

Post by nagiosvick »

Thanks, I was able to get it working to monitor a windows server. Now I'm proceeding to monitor the VCenter application on the windows server by following this.

https://fidanov.net/c0d3/nagios-plugins ... tor/README
nagiosvick
Posts: 22
Joined: Fri Sep 30, 2016 4:19 pm

Re: Nagios Monitoring of Windows VM

Post by nagiosvick »

Hi,

Is there a well documented method for monitoring on JVM running on Windows. The link that I sent earlier covers only for Linux JVM.

I see that there is no comprehensive answer in a similar question as mine.

https://support.nagios.com/forum/viewto ... =6&t=32770

Kindly let me know if it is possible and if so , point me in the right direction with some documents on how to proceed. I need to submit a report on this.

Thanks in advance
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Monitoring of Windows VM

Post by tmcdonald »

The last post in that referenced thread recommend JMX-based monitoring, which should work regardless of whether the application is running on Windows or Linux:

https://exchange.nagios.org/index.php?o ... =check_jmx

Have you tried any of those plugins?
Former Nagios employee
nagiosvick
Posts: 22
Joined: Fri Sep 30, 2016 4:19 pm

Re: Nagios Monitoring of Windows VM

Post by nagiosvick »

Yes, I went through that link and I'm proceeding with that. I'm new to JMX and assume that the Java application (in this case VMWare Vcenter) should have JMX implemented that they can be monitored. Could you please confirm if any Java application can be monitored on Windows using the JMX plugin or are there specific requirements?

Thanks,
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Monitoring of Windows VM

Post by dwhitfield »

Hi nagiosvick,

Configuring JMX and vCenter are a little out of our scope, but I think I can help you with the basics.

In the case of VCenter, the default JMX port is 6969. You can find out if it is enabled by opening C:\ProgramData\VMware\vCenterServer\runtime\VMwareSTSService\conf\catalina.properties. Search for the base.jmx.port line and make sure it is set to 6969 install of -1 (unless you've configured a different port).

Once you've saved the file, VMWare gives the following instructions for restarting the VMWare Security Token Service:

1. Click Start, click in the Start Search box.
2. Type services.msc, press ENTER.
3. Select VMware Security Token Service and click Restart.
4. Select Yes on the Restart Other Services prompt.

You can check to make sure it is running by running netstat -apn tcp | findstr 6969 in PowerShell or cmd. From there, you should be able to use the JMX plugins.

If you need further assistance with setting up or configuring JMX, you will need to reach out to your Java admin.

Please let us know if you have any further questions specifically about Nagios.
Last edited by dwhitfield on Tue Oct 04, 2016 3:07 pm, edited 1 time in total.
Reason: redoing the list
nagiosvick
Posts: 22
Joined: Fri Sep 30, 2016 4:19 pm

Re: Nagios Monitoring of Windows VM

Post by nagiosvick »

Thanks for your reply. I have configured the JMX port in catalina.properties and proceeding to monitor.
Locked