Page 1 of 1

Monitor virtual machines inside a server

Posted: Thu Apr 12, 2018 3:08 am
by titiairol
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

Re: Monitor virtual machines inside a server

Posted: Thu Apr 12, 2018 9:03 am
by mcapra
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/nag ... 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.

Re: Monitor virtual machines inside a server

Posted: Thu Apr 12, 2018 2:31 pm
by scottwilkerson
Thanks @mcapra.

You could also set these up to do passive monitoring when they are on, sending results to the Nagios server

Re: Monitor virtual machines inside a server

Posted: Mon Apr 16, 2018 9:01 am
by titiairol
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 ?

Re: Monitor virtual machines inside a server

Posted: Mon Apr 16, 2018 9:20 am
by scottwilkerson
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.