Ngios monitoring Engine is not starting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
steelwedge
Posts: 69
Joined: Fri Apr 24, 2015 4:58 am

Ngios monitoring Engine is not starting

Post by steelwedge »

Hello Team,

From today noon our nagios monitoring engine is not running, we checked the log file in the below location nothing is getting updated about this issue. Please help us ASAP to fix this issue.
/usr/local/nagios/var/nagios.log

-Mohan
steelwedge
Posts: 69
Joined: Fri Apr 24, 2015 4:58 am

Re: Nagios monitoring Engine is not starting

Post by steelwedge »

This is the output when we run the shell script in debug mode.

[root@swnagios var]# bash -x /etc/init.d/nagios start
+ prefix=/usr/local/nagios
+ exec_prefix=/usr/local/nagios
+ NagiosBin=/usr/local/nagios/bin/nagios
+ NagiosCfgFile=/usr/local/nagios/etc/nagios.cfg
+ NagiosCfgtestFile=/usr/local/nagios/var/nagios.configtest
+ NagiosStatusFile=/usr/local/nagios/var/status.dat
+ NagiosRetentionFile=/usr/local/nagios/var/retention.dat
+ NagiosCommandFile=/usr/local/nagios/var/rw/nagios.cmd
+ NagiosVarDir=/usr/local/nagios/var
+ NagiosRunFile=/usr/local/nagios/var/nagios.lock
+ NagiosLockDir=/usr/local/nagiosxi/var/subsys
+ NagiosLockFile=nagios
+ NagiosCGIDir=/usr/local/nagios/sbin
+ NagiosUser=nagios
+ NagiosGroup=nagios
+ checkconfig=true
+ '[' -f /etc/rc.d/init.d/functions ']'
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']'
++ . /etc/profile.d/lang.sh
++ unset LANGSH_SOURCED
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ PROMPT=yes
+++ AUTOSWAP=no
+++ ACTIVE_CONSOLES='/dev/tty[1-6]'
+++ SINGLE=/sbin/sushell
++ '[' pty = serial ']'
++ __sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
+ test -f /etc/sysconfig/nagios
+ USE_RAMDISK=0
+ test 0 -ne 0
+ '[' '!' -f /usr/local/nagios/bin/nagios ']'
+ '[' '!' -f /usr/local/nagios/etc/nagios.cfg ']'
+ case "$1" in
+ echo -n 'Starting nagios:'
Starting nagios:+ test true = true
+ check_config
++ mktemp /tmp/.configtest.XXXXXXXX
+ TMPFILE=/tmp/.configtest.J8t8L6wM
+ /usr/local/nagios/bin/nagios -vp /usr/local/nagios/etc/nagios.cfg
++ grep '^Total Warnings:' /tmp/.configtest.J8t8L6wM
++ awk -F: '{print $2}'
++ sed 's/ //g'
+ WARN=168
++ grep '^Total Errors:' /tmp/.configtest.J8t8L6wM
++ sed 's/ //g'
++ awk -F: '{print $2}'
+ ERR=0
+ test 168 = 0
+ test 0 = 0
+ echo 'WARNING: Warnings in config files - see log for details: /usr/local/nagios/var/nagios.configtest'
+ egrep -i '(^warning|^error)' /tmp/.configtest.J8t8L6wM
+ chmod 0644 /usr/local/nagios/var/nagios.configtest
+ chown nagios:nagios /usr/local/nagios/var/nagios.configtest
+ /bin/rm /tmp/.configtest.J8t8L6wM
+ return 0
+ test -f /usr/local/nagios/var/nagios.lock
++ head -n 1 /usr/local/nagios/var/nagios.lock
+ NagiosPID=25738
+ status_nagios
+ test -x /daemonchk.cgi
+ ps -p 25738
+ return 1
+ touch /usr/local/nagios/var/nagios.log /usr/local/nagios/var/retention.dat
+ rm -f /usr/local/nagios/var/rw/nagios.cmd
+ touch /usr/local/nagios/var/nagios.lock
+ chown nagios:nagios /usr/local/nagios/var/nagios.lock /usr/local/nagios/var/nagios.log /usr/local/nagios/var/retention.dat
+ USER=nagios
+ G_BROKEN_FILENAMES=1
+ SSH_TTY=/dev/pts/0
+ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
+ '[' -d /usr/local/nagiosxi/var/subsys ']'
+ touch /usr/local/nagiosxi/var/subsys/nagios
+ service snmptt restart
+ :
+ echo ' done.'
done.
steelwedge
Posts: 69
Joined: Fri Apr 24, 2015 4:58 am

Re: Nagios monitoring Engine is not starting

Post by steelwedge »

We request you to update on this ASAP.
steelwedge
Posts: 69
Joined: Fri Apr 24, 2015 4:58 am

Re: Ngios monitoring Engine is not starting

Post by steelwedge »

We have rebooted the machine and nagios monitoring engine started now.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Ngios monitoring Engine is not starting

Post by dwhitfield »

I apologize for your wait. Our support day begins at 9am US Central. It is currently ~9:13am US Central.

It sounds like your issue is resolved. Is that correct? If so, are we ready to close this thread?
steelwedge
Posts: 69
Joined: Fri Apr 24, 2015 4:58 am

Re: Ngios monitoring Engine is not starting

Post by steelwedge »

Yes, please close it.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Ngios monitoring Engine is not starting

Post by rkennedy »

Feel free to open a new thread in the future!

/closed
Former Nagios Employee
Locked