error on service check

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.
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

error on service check

Post by DeanM »

Hi

I am new to nagios and this board. I was given the task to update nagios to 4.0.0 from 3.5.0. The make and install ran without errors and startup was clean. I have been looking through the boards for anything similar but have not found it yet can someone point me in the right direction.

I have the following error in the Status Information of the (ping and ifstatus) service check for my switch.

(No output on stdout) stderr:
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error on service check

Post by slansing »

Can you please post a copy of your service definition which is displaying this issue? Is this only occurring on the switches ping check and not elsewhere?
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post by DeanM »

A copy of the service descriptions. This is occuring on ping and an snmp call.

define service{
use generic-service ; Inherit values from a template
host_name *,!isp
hostgroup_name !dns,!7
service_description PING ; The service description
check_command check_ping!6000.0,80%!7000.0,100% ; The command used to monitor the service
normal_check_interval 1 ; Check the service every 1 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
notification_interval 0
first_notification_delay 0
max_check_attempts 2
event_handler_enabled 1
event_handler traceme
}
define host{
use generic-switch
host_name pal
alias Center Router
notes ;NOTES
address 10.22.116.2
hostgroups 1
parents liberty-A
}


# trace
define command{
command_name trace
command_line $USER1$/check_icmp -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5
}
define service{
use generic-service
host_name pal
service_description palsw
check_command trace!10.22.16.11!4000.0,80%!5000.0,100%
normal_check_interval 1
retry_check_interval 1
notification_interval 0
first_notification_delay 0
max_check_attempts 2
}



# 'ifcheck_new' command definition
define command {
command_name ifcheck_new
command_line $USER1$/ifcheck_new $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}

define service{
use generic-service ; Inherit values from a template
host_name 1A
service_description PORT check GigabitEthernet7/45
check_command ifcheck_new!-C ^6T11xOdmK9^ -H 10.21.28.11 -d GigabitEthernet7/45
normal_check_interval 60
retry_check_interval 10
servicegroups port_check
}
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error on service check

Post by slansing »

Are you able to successfully run these commands from the command line? Do they still error out?
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post by DeanM »

Yes, The commands work and have the proper output from the command line.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error on service check

Post by slansing »

What distro are you running this core installation on? And how did you install it?
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post by DeanM »

cent os with 2.6.18-348.18.1.el5 kernel.
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post by DeanM »

Installed according to directions on install guide.

did a
wget http://osdn.dl.sourceforge.net/sourcefo ... y.z.tar.gz
did a
tar xzf nagios-x.y.z.tar.gz
cd nagios
ran
./configure --with-command-group=nagcmd
ran with no errors
make all
ran with no errors
make install
ran
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
restart was clean
/sbin/service nagios restart
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error on service check

Post by slansing »

What is the exact version of nagios core that you are installing? What is the true "nagios-x.y.z.tar.gz" you are untarring? There was a bug involving this with 4.0 beta 4 and the only solution was to roll back to 4.0 beta 1.
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post by DeanM »

nagios-4.0.0.tar.gz
Locked