Nagios 2240 + Check-Nagios-NG.pl + Configuration

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.
futurist71
Posts: 12
Joined: Mon Jul 14, 2014 2:59 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by futurist71 »

After fixing the correct Perl version, it is working now.

Now for NetApp, on the Host Group Summary Status, it says PENDING, it doesn't change even all the commands are OK with GREEN status.

How can I fix that?

Regards,
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by tmcdonald »

Does the host group say pending? Or is this for the NetApp host itself?

Please post a screenshot.
Former Nagios employee
futurist71
Posts: 12
Joined: Mon Jul 14, 2014 2:59 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by futurist71 »

Here you have.

It's happening with Netapp and ESXi. Even when the commands are running on the right way.

http://imgur.com/S65u9De
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by sreinhardt »

Those are specific to the host definitions you created. Essentially it looks like they have never run a check so nagios does not know their current status. This is because hosts and services are checked separately, so just because a service check returns, it does not effect the host status. Could you post the host configurations for those two objects and we can take a look?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
futurist71
Posts: 12
Joined: Mon Jul 14, 2014 2:59 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by futurist71 »

#######
# ESXI HOSTS
#######


define host {
use generic-host ; Inherit default values from a templ$
host_name ESXI00 ; The name we're giving to this host
alias ESXI00 ; A longer name associated with the host
address X.X.X.X ; IP address of the host
hostgroups esxi-servers ; Host groups this host is associate$
max_check_attempts 5 ;

}

define host {
use generic-host ; Inherit default values from a templ$
host_name ESXI01 ; The name we're giving to this host
alias ESXI01 ; A longer name associated with the host
address X.X.X.X ; IP address of the host
hostgroups esxi-servers ; Host groups this host is associate$
max_check_attempts 5 ;

}

define host {
use generic-host ; Inherit default values from a templ$
host_name ESXI03 ; The name we're giving to this host
alias ESXI03 ; A longer name associated with the host
address X.X.X.X ; IP address of the host
hostgroups esxi-servers ; Host groups this host is associate$
max_check_attempts 5 ;

}



#######
# ESXI SERVICES
#######

# Check DELL Server hardware
define service{
use generic-service
host_name ESXI00
service_description Hardware
check_command check_esxi_hardware!root!P@ssw0rd!dell
}

define service{
use generic-service
host_name ESXI01
service_description Hardware
check_command check_esxi_hardware!root!P@ssw0rd!dell
}

define service{
use generic-service
host_name ESXI03
service_description Hardware
check_command check_esxi_hardware!root!P@ssw0rd!dell
}

### ESXI00 ###

# Define a service to "ping" the local machine
define service{
use generic-service
host_name ESXI00
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}

# VMWare
# check cpu
define service{
use generic-service
host_name ESXI00
service_description ESXi CPU Load
check_command check_esx_cpu!80!90
}

# check memory usage
define service{
use generic-service
host_name ESXI00
service_description ESXi Memory usage
check_command check_esx_mem!80!90
}

# check net
define service{
use generic-service
host_name ESXI00
service_description ESXi Network usage
check_command check_esx_net!102400!204800
}

# check runtime status
define service{
use generic-service
host_name ESXI00
service_description ESXi Runtime status
check_command check_esx_runtime
}

# check io read
define service{
use generic-service
host_name ESXI00
service_description ESXi IO read
check_command check_esx_ioread!40!90
}

# check io write
define service{
use generic-service
host_name ESXI00
service_description ESXi IO write
check_command check_esx_iowrite!40!90
}

### ESXI01 ###

# Define a service to "ping" the local machine
define service{
use generic-service
host_name ESXI01
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}

# VMWare
# check cpu
define service{
use generic-service
host_name ESXI01
service_description ESXi CPU Load
check_command check_esx_cpu!80!90
}

# check memory usage
define service{
use generic-service
host_name ESXI01
service_description ESXi Memory usage
check_command check_esx_mem!80!90
}

# check net
define service{
use generic-service
host_name ESXI01
service_description ESXi Network usage
check_command check_esx_net!102400!204800
}

# check runtime status
define service{
use generic-service
host_name ESXI01
service_description ESXi Runtime status
check_command check_esx_runtime
}

# check io read
define service{
use generic-service
host_name ESXI01
service_description ESXi IO read
check_command check_esx_ioread!40!90
}

# check io write
define service{
use generic-service
host_name ESXI01
service_description ESXi IO write
check_command check_esx_iowrite!40!90
}

### ESXI03 ###

# Define a service to "ping" the local machine
define service{
use generic-service
host_name ESXI03
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}

# VMWare
# check cpu
define service{
use generic-service
host_name ESXI03
service_description ESXi CPU Load
check_command check_esx_cpu!80!90
}

# check memory usage
define service{
use generic-service
host_name ESXI03
service_description ESXi Memory usage
check_command check_esx_mem!80!90
}

# check net
define service{
use generic-service
host_name ESXI03
service_description ESXi Network usage
check_command check_esx_net!102400!204800
}

# check runtime status
define service{
use generic-service
host_name ESXI03
service_description ESXi Runtime status
check_command check_esx_runtime
}

# check io read
define service{
use generic-service
host_name ESXI03
service_description ESXi IO read
check_command check_esx_ioread!40!90
}

# check io write
define service{
use generic-service
host_name ESXI03
service_description ESXi IO write
check_command check_esx_iowrite!40!90
}
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by sreinhardt »

That would do it, so you have the hosts defined, and they should work fine, but you have no check intervals and no check commands defined in there. Some of this might be defined in generic-host template, if you want to post that we can look over it as well. But technically you have done nothing wrong here, just that without those configured the hosts never actually get checked.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
futurist71
Posts: 12
Joined: Mon Jul 14, 2014 2:59 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by futurist71 »

Now it's OK. I just defined the check PING command when declaring the host.

Thanks in advance, but...

I haven't finished yet.

Do you have some documentation about implementing Nagios notifications with Office 365?

Regards,
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by lmiltchev »

Do you have some documentation about implementing Nagios notifications with Office 365?
I don't believe so, but you can try searching Nagios Exchange for tutorials/how-tos on the topic. I found a post that might point you to the right direction:
http://www.telnetport25.com/2012/02/con ... gios-core/
Be sure to check out our Knowledgebase for helpful articles and solutions!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios 2240 + Check-Nagios-NG.pl + Configuration

Post by sreinhardt »

Unfortunately we do not, however either sendmail or postfix should be able to send out to a relay or smtp receiver for o365 just like any other mail server.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked