Monitor virtual machines inside a server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
titiairol
Posts: 2
Joined: Wed Apr 11, 2018 6:21 am

Monitor virtual machines inside a server

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitor virtual machines inside a server

Post 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.
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor virtual machines inside a server

Post by scottwilkerson »

Thanks @mcapra.

You could also set these up to do passive monitoring when they are on, sending results to the Nagios server
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
titiairol
Posts: 2
Joined: Wed Apr 11, 2018 6:21 am

Re: Monitor virtual machines inside a server

Post 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 ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor virtual machines inside a server

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked