Monitor virtual machines inside a server

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Monitor virtual machines inside a server

Postby titiairol » Thu Apr 12, 2018 3:08 am

Hello

I'd like to monitor my vagrant VMs, I heard about nagios and I'd like to know if it's possible to monitor the virtual machines

My server architecture looks like :

Server Ip : X.X.X.X

VM1 with http on port 2300 access with
VM2 with http on port 2400
VM Nagios on port 2500

Is it possible to monitor it like this ? It seems that nagios is made to monitor multiple servers but I didn't find the solution to monitor inner virtual machines. By the way is it possible to minotor inner process inside a virtual machine ?

Thanks
titiairol
 
Posts: 2
Joined: Wed Apr 11, 2018 6:21 am

Re: Monitor virtual machines inside a server

Postby mcapra » Thu Apr 12, 2018 9:03 am

titiairol wrote:By the way is it possible to minotor inner process inside a virtual machine ?


Which operating system are these VMs running?

By use of an agent installed within the VM, yes. Here are a few popular Nagios Core agents:

I would recommend leveraging NCPA as that agent is officially maintained and actively developed by the Nagios Enterprises staff. The official web page for NCPA has relatively extensive documentation.

If you choose NRPE, here's the official documentation for monitoring a Linux machine via NRPE:
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/monitoring-linux.html

Or, if you simply wanted to monitor that the HTTP service is running on a particular port, check_http is a plugin that can be used for that.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3169
Joined: Thu May 05, 2016 3:54 pm

Re: Monitor virtual machines inside a server

Postby scottwilkerson » Thu Apr 12, 2018 2:31 pm

Thanks @mcapra.

You could also set these up to do passive monitoring when they are on, sending results to the Nagios server
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitor virtual machines inside a server

Postby titiairol » Mon Apr 16, 2018 9:01 am

All the VMs runs on vagrant

Thanks for answer i'll take a look, I think it's possible to monitor processes on vagrant VMS right ?
titiairol
 
Posts: 2
Joined: Wed Apr 11, 2018 6:21 am

Re: Monitor virtual machines inside a server

Postby scottwilkerson » Mon Apr 16, 2018 9:20 am

titiairol wrote:All the VMs runs on vagrant

Thanks for answer i'll take a look, I think it's possible to monitor processes on vagrant VMS right ?


I'll leave this thread open if any community members can chime in, but I am not that familiat with vagrant.

If you can install an agent mentioned above you should be able to monitor processes running.
User avatar
scottwilkerson
CTO
 
Posts: 8921
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: iam33 and 26 guests