Icinga/Nagios Monitoring

Hi,

I was looking for nagios/icinga monitoring plugins, but there’re not that many hits as previously thought there would be…

Would great if some people could share their scripts and hints on this topic!

Thanks for every contribution!

The only thing I’m monitoring for now, related to OpenNebula is if the services are actually up & running and by services I mean opennebula and opennebula-sunstone

That is being achieved using the nagios plugin check_procs + arguments

nrpe.cfg:

command[check_procs]=/usr/lib64/nagios/plugins/check_procs $ARG1$

On the nagios monitoring server, on host definition, I have these 2 services defined:

define service {
use generic-service
host_name srv1.lan
service_description OpenNebula Service
check_command check_nrpe!check_procs!“-c 1:5 -C oned”
notifications_enabled 1
}

define service {
use generic-service
host_name srv1.lan
service_description OpenNebula Web
check_command check_nrpe!check_procs!“-c 1:2 -a /usr/lib/one/sunstone/sunstone-server.rb”
notifications_enabled 1
}

In the nagios web interface, the output is something like this:

OpenNebula Service
OK 07-10-2018 09:48:32 0d 0h 26m 37s 1/5 PROCS OK: 1 process with command name ‘oned’
OpenNebula Web
OK 07-10-2018 09:47:31 0d 0h 27m 38s 1/5 PROCS OK: 1 process with args ‘/usr/lib/one/sunstone/sunstone-server.rb’

So at least I know if any of the services goes down or not. I’m planning to write e small nagios plugin to monitor the vms state… When that happens, I’ll post it here.