Monitoring KVM w/Nagios Core

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
mcooper59
Posts: 2
Joined: Sat Sep 03, 2016 6:38 am

Monitoring KVM w/Nagios Core

Post by mcooper59 »

Hello Guys,

I am not new to Nagios but I am new to configuring checks. I found a plugin for monitoring KVM and got it into the Proper place, However I keep getting this -> Host Health CRITICAL 2016-09-03 11:39:12 0d 21h 41m 59s 4/4 (null). Now i am using Nconf, I know it's no longer developed and appears to not be supported how ever it still works pretty good. Any whoooo I have a check_kvm

From the Nagios server i run this command and it works fine:
/usr/lib/nagios/plugins/check_nrpe -H 192.168.1.2 -c check_kvm
hosts:1 OK:1 WARN:0 CRIT:0 - cfdns02:running

But when I go into the GUI I see this (noted above) -> Host Health CRITICAL 2016-09-03 11:39:12 0d 21h 41m 59s 4/4 (null).

This is where it is located -> https://exchange.nagios.org/directory/P ... vm/details

So I am not sure what I am doing wrong, any help would be appreciated,
Thanks,
Michael
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring KVM w/Nagios Core

Post by rkennedy »

This may be nconf related to be honest which is out of our scope for support, but if it's just a host / service definition it shouldn't be too difficult.

Please post the related host / service definition for us to look at.
Former Nagios Employee
nexusguy59
Posts: 6
Joined: Tue Jun 09, 2015 7:07 am

Re: Monitoring KVM w/Nagios Core

Post by nexusguy59 »

Contents of hosts.cfg:

define host {
host_name NagiosPi
alias NagiosPi
address 192.168.xxx.xxx
icon_image_alt Linux
icon_image base/linux40.gif
statusmap_image base/linux40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
parents Netgear R6250
use linux-server
contact_groups +admins
}

define host {
host_name cbup01
alias My Windows Server
address 192.168.xxx.xx
icon_image_alt Windows Server
icon_image base/win40.gif
statusmap_image base/win40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
parents cfkvm04
use windows-server
contact_groups +admins
}

define host {
host_name cfdns01
alias cfdns01
address 192.168.xxx.x
icon_image_alt Linux
icon_image base/linux40.gif
statusmap_image base/linux40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
parents cfkvm04
use linux-server
contact_groups +admins
}

define host {
host_name cfws01
alias cfws01
address 192.168.x.xxx
icon_image_alt Linux
icon_image base/linux40.gif
statusmap_image base/linux40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
parents cfkvm04
use linux-server
contact_groups +admins
}

define host {
host_name cfw2k12
alias cfw2k12
address 192.168.x.xx
icon_image_alt Windows Server
icon_image base/win40.gif
statusmap_image base/win40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
parents cfkvm03
use windows-server
contact_groups +admins
}

define host {
host_name cfdns02
alias cfdns02
address 192.168.x.x
icon_image_alt Linux
icon_image base/linux40.gif
statusmap_image base/linux40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
parents cfkvm01
use linux-server
contact_groups +admins
}

define host {
host_name cfsql01
alias cfsql01
address 192.168.xx.x
icon_image_alt Linux
icon_image base/linux40.gif
statusmap_image base/linux40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
parents cfkvm01
use linux-server
contact_groups +admins
}

Contents of services.cfg

define service {
service_description Root Partition
check_command check_local_disk!20%!10%!/
host_name NagiosPi
event_handler_enabled 0
use local-service
contact_groups +admins
}

define service {
service_description W3SVC
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
host_name cbup01
check_period 24x7
notification_period 24x7
event_handler_enabled 0
use generic-service
contact_groups +admins
}

define service {
service_description check_ping
check_command check_ping!3000.0,80%!5000.0,100%
host_name Netgear R6250
check_period 24x7
notification_period 24x7
max_check_attempts 3
check_interval 5
retry_interval 5
notification_interval 15
event_handler_enabled 0
contact_groups +admins
}

I believe i see the issue now I have to figure out how to define it in the services part of the file.

Thanks I think you got me in the right direction.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring KVM w/Nagios Core

Post by rkennedy »

You got it, I don't see anything defined for the check_kvm plugin, give that a shot and let us know if you have any further questions.
Former Nagios Employee
Locked