Nagios restart command failed
-
mdsupersonic
- Posts: 84
- Joined: Fri May 13, 2016 2:25 pm
Nagios restart command failed
Hi Support team,
Whenever I want to add a new node in Nagios I get an error message. I've attached screenshot regarding this problem.I should go to CCM and click 'Apply Configuration' to make it right.
How can I overcome this problem and make it normal?
Thank you
Whenever I want to add a new node in Nagios I get an error message. I've attached screenshot regarding this problem.I should go to CCM and click 'Apply Configuration' to make it right.
How can I overcome this problem and make it normal?
Thank you
You do not have the required permissions to view the files attached to this post.
Re: Nagios restart command failed
What is the Nagios XI version that you are currently using? Do you see any error when verifying configuration via the Write Config tool?
CCM->Tools->Write Config Files->Write->Verify
Run the following commands and post the output:
Post the "/etc/sudoers" file.
CCM->Tools->Write Config Files->Write->Verify
Run the following commands and post the output:
Code: Select all
uname -a
cat /etc/*release
ls -la /etc/sudoers.d
chage nagios -l
chage apache -l
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
mdsupersonic
- Posts: 84
- Joined: Fri May 13, 2016 2:25 pm
Re: Nagios restart command failed
uname -a
Linux tornagios3.telmetrics.corp 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cat redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@tornagios3 etc]# ls -la /etc/sudoers.d
total 12
drwxr-x---. 2 root root 6 Nov 20 2015 .
drwxr-xr-x. 90 root root 8192 Aug 4 09:13 ..
chage nagios -l
Last password change : Aug 03, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@tornagios3 etc]# chage nagios -l
Last password change : Aug 03, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@tornagios3 etc]# chage apache -l
Last password change : Aug 03, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
[nagios@tornagios3 scripts]$ ./reconfigure_nagios.sh
.
.
.
: Host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Checked 133 hosts.
Checked 57 host groups.
Checked 56 service groups.
Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or unreachable options as well
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
Checked 4 contacts.
Checked 2 contact groups.
Checked 156 commands.
Checked 10 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 133 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 10 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 205
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[nagios@tornagios3 scripts]$ ls -la /etc/sudoers.d
ls: cannot open directory /etc/sudoers.d: Permission denied
[nagios@tornagios3 scripts]$ su root
Password:
su: Authentication failure
[nagios@tornagios3 scripts]$ su root
Password:
[root@tornagios3 scripts]# ls -la /etc/sudoers.d
total 12
drwxr-x---. 2 root root 6 Nov 20 2015 .
drwxr-xr-x. 90 root root 8192 Aug 4 09:13 ..
Check this out :
oot@tornagios3 scripts]# systemctl status nagios
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: failed (Result: exit-code) since Mon 2016-08-15 11:44:44 EDT; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 32444 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 32497 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=127)
CGroup: /system.slice/nagios.service
├─ 5884 /usr/local/nagios/libexec/check_nt -H 10.40.6.52 -s What_Is_The_Nagios_Password -p 12489 -v MEMUSE -w 90 -c 95
├─ 5924 /usr/local/nagios/libexec/check_nt -H 10.40.6.48 -s What_Is_The_Nagios_Password -p 12489 -v CPULOAD -l 5 99 100
├─32517 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─32519 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32520 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32521 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32522 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─32531 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Aug 15 11:50:17 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: ExtADFS2;Memory Usage;WARNING;HARD;5;could not fetch information from server
Aug 15 11:50:21 tornagios3.telmetrics.corp nagios[32517]: Warning: Return code of 127 for check of service 'HTTP Port 8080 - External Web Site' on host 'UC-FE.ac-onebox.com' was out of bounds. Make sure the plugin yo...ctually exists.
Aug 15 11:50:29 tornagios3.telmetrics.corp nagios[32517]: Warning: Return code of 127 for check of service 'HTTP Port 80 - CallTelligenceWebAPI' on host 'Core1UI1' was out of bounds. Make sure the plugin you're tryin...ctually exists.
Aug 15 11:50:30 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: UC-FE.ac-onebox.com;Service - Master;WARNING;HARD;5;could not fetch information from server
Aug 15 11:50:32 tornagios3.telmetrics.corp nagios[32517]: Warning: Return code of 127 for check of service 'HTTP Port 80 - Webservice' on host 'Core1UI1' was out of bounds. Make sure the plugin you're trying to run actually exists.
Aug 15 11:50:34 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: UC-DC.ac-onebox.com;Service - MSSQLSERVER;UNKNOWN;HARD;5;could not fetch information from server
Aug 15 11:50:41 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: Core2UI2;Memory Usage;WARNING;HARD;5;could not fetch information from server
Aug 15 11:50:44 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: Core1SandboxW2T;CPU Usage;OK;HARD;5;CPU Load 0% (5 min average)
Aug 15 11:50:44 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: CorpDC4;Service - IAS;UNKNOWN;HARD;5;could not fetch information from server
Aug 15 11:50:44 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: CorpTerminal2;Service - Tssdis;UNKNOWN;HARD;5;could not fetch information from server
Hint: Some lines were ellipsized, use -l to show in full.
[root@tornagios3 scripts]# systemctl start nagios
[root@tornagios3 scripts]# systemctl status nagios
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: active (running) since Mon 2016-08-15 11:50:57 EDT; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 32444 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 6140 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nagios.service
├─ 6052 /usr/local/nagios/libexec/check_icmp -H 10.40.6.52 -w 3000.0 80 -c 5000.0 100 -p 5
├─ 6092 /usr/local/nagios/libexec/check_icmp -H 10.40.6.48 -w 3000.0 80 -c 5000.0 100 -p 5
├─ 6129 /usr/local/nagios/libexec/check_nt -H 10.40.6.31 -s What_Is_The_Nagios_Password -p 12489 -v MEMUSE -w 90 -c 95
├─ 6177 /usr/local/nagios/libexec/check_icmp -H 10.30.3.113 -w 3000.0 80 -c 5000.0 100 -p 5
├─32517 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─32519 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32520 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32521 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32522 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─32531 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Aug 15 11:50:57 tornagios3.telmetrics.corp systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Aug 15 11:50:57 tornagios3.telmetrics.corp nagios[6140]: Starting nagios: another instance of nagios is already running.
Aug 15 11:50:57 tornagios3.telmetrics.corp systemd[1]: Started LSB: Starts and stops the Nagios monitoring server.
Aug 15 11:50:58 tornagios3.telmetrics.corp sudo[6167]: nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status snmptt
[root@tornagios3 scripts]#
Linux tornagios3.telmetrics.corp 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cat redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@tornagios3 etc]# ls -la /etc/sudoers.d
total 12
drwxr-x---. 2 root root 6 Nov 20 2015 .
drwxr-xr-x. 90 root root 8192 Aug 4 09:13 ..
chage nagios -l
Last password change : Aug 03, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@tornagios3 etc]# chage nagios -l
Last password change : Aug 03, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@tornagios3 etc]# chage apache -l
Last password change : Aug 03, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
[nagios@tornagios3 scripts]$ ./reconfigure_nagios.sh
.
.
.
: Host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Checked 133 hosts.
Checked 57 host groups.
Checked 56 service groups.
Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or unreachable options as well
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
Checked 4 contacts.
Checked 2 contact groups.
Checked 156 commands.
Checked 10 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 133 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 10 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 205
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[nagios@tornagios3 scripts]$ ls -la /etc/sudoers.d
ls: cannot open directory /etc/sudoers.d: Permission denied
[nagios@tornagios3 scripts]$ su root
Password:
su: Authentication failure
[nagios@tornagios3 scripts]$ su root
Password:
[root@tornagios3 scripts]# ls -la /etc/sudoers.d
total 12
drwxr-x---. 2 root root 6 Nov 20 2015 .
drwxr-xr-x. 90 root root 8192 Aug 4 09:13 ..
Check this out :
oot@tornagios3 scripts]# systemctl status nagios
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: failed (Result: exit-code) since Mon 2016-08-15 11:44:44 EDT; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 32444 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 32497 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=127)
CGroup: /system.slice/nagios.service
├─ 5884 /usr/local/nagios/libexec/check_nt -H 10.40.6.52 -s What_Is_The_Nagios_Password -p 12489 -v MEMUSE -w 90 -c 95
├─ 5924 /usr/local/nagios/libexec/check_nt -H 10.40.6.48 -s What_Is_The_Nagios_Password -p 12489 -v CPULOAD -l 5 99 100
├─32517 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─32519 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32520 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32521 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32522 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─32531 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Aug 15 11:50:17 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: ExtADFS2;Memory Usage;WARNING;HARD;5;could not fetch information from server
Aug 15 11:50:21 tornagios3.telmetrics.corp nagios[32517]: Warning: Return code of 127 for check of service 'HTTP Port 8080 - External Web Site' on host 'UC-FE.ac-onebox.com' was out of bounds. Make sure the plugin yo...ctually exists.
Aug 15 11:50:29 tornagios3.telmetrics.corp nagios[32517]: Warning: Return code of 127 for check of service 'HTTP Port 80 - CallTelligenceWebAPI' on host 'Core1UI1' was out of bounds. Make sure the plugin you're tryin...ctually exists.
Aug 15 11:50:30 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: UC-FE.ac-onebox.com;Service - Master;WARNING;HARD;5;could not fetch information from server
Aug 15 11:50:32 tornagios3.telmetrics.corp nagios[32517]: Warning: Return code of 127 for check of service 'HTTP Port 80 - Webservice' on host 'Core1UI1' was out of bounds. Make sure the plugin you're trying to run actually exists.
Aug 15 11:50:34 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: UC-DC.ac-onebox.com;Service - MSSQLSERVER;UNKNOWN;HARD;5;could not fetch information from server
Aug 15 11:50:41 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: Core2UI2;Memory Usage;WARNING;HARD;5;could not fetch information from server
Aug 15 11:50:44 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: Core1SandboxW2T;CPU Usage;OK;HARD;5;CPU Load 0% (5 min average)
Aug 15 11:50:44 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: CorpDC4;Service - IAS;UNKNOWN;HARD;5;could not fetch information from server
Aug 15 11:50:44 tornagios3.telmetrics.corp nagios[32517]: SERVICE ALERT: CorpTerminal2;Service - Tssdis;UNKNOWN;HARD;5;could not fetch information from server
Hint: Some lines were ellipsized, use -l to show in full.
[root@tornagios3 scripts]# systemctl start nagios
[root@tornagios3 scripts]# systemctl status nagios
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: active (running) since Mon 2016-08-15 11:50:57 EDT; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 32444 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 6140 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nagios.service
├─ 6052 /usr/local/nagios/libexec/check_icmp -H 10.40.6.52 -w 3000.0 80 -c 5000.0 100 -p 5
├─ 6092 /usr/local/nagios/libexec/check_icmp -H 10.40.6.48 -w 3000.0 80 -c 5000.0 100 -p 5
├─ 6129 /usr/local/nagios/libexec/check_nt -H 10.40.6.31 -s What_Is_The_Nagios_Password -p 12489 -v MEMUSE -w 90 -c 95
├─ 6177 /usr/local/nagios/libexec/check_icmp -H 10.30.3.113 -w 3000.0 80 -c 5000.0 100 -p 5
├─32517 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─32519 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32520 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32521 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─32522 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─32531 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Aug 15 11:50:57 tornagios3.telmetrics.corp systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Aug 15 11:50:57 tornagios3.telmetrics.corp nagios[6140]: Starting nagios: another instance of nagios is already running.
Aug 15 11:50:57 tornagios3.telmetrics.corp systemd[1]: Started LSB: Starts and stops the Nagios monitoring server.
Aug 15 11:50:58 tornagios3.telmetrics.corp sudo[6167]: nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status snmptt
[root@tornagios3 scripts]#
Re: Nagios restart command failed
What is the Nagios XI version that you are currently using? Do you see any error when verifying configuration via the Write Config tool? Can you post the "/etc/sudoers" file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
mdsupersonic
- Posts: 84
- Joined: Fri May 13, 2016 2:25 pm
Re: Nagios restart command failed
Nagios Version: 5.2.9
I see no error when I do write in CCM everything is OK except some warnings.
here is the /etc/sudoers
I see no error when I do write in CCM everything is OK except some warnings.
here is the /etc/sudoers
Code: Select all
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhaps using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2
## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem
## Command Aliases
## These are groups of related commands...
## Networking
# Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
## Installation and management of software
# Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
## Services
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl reload, /usr/bin/systemctl restart, /usr/bin/systemctl status, /usr/bin/systemctl enable, /usr/bin/systemct$
## Updating the locate database
# Cmnd_Alias LOCATE = /usr/bin/updatedb
## Storage
# Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount
## Delegating permissions
# Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp
## Processes
# Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
## Drivers
# Cmnd_Alias DRIVERS = /sbin/modprobe
# Defaults specification
#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
# You have to run "ssh -t hostname sudo <cmd>".
#
#Defaults requiretty
#
# Refuse to run if unable to disable echo on the tty. This setting should also be
# changed in order to be able to use sudo without a tty. See requiretty above.
#
Defaults !visiblepw
#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files. Note that HOME
# is already set when the the env_reset option is enabled, so
# this option is only effective for configurations where either
# env_reset is disabled or HOME is present in the env_keep list.
#
Defaults always_set_home
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *Re: Nagios restart command failed
Try adding the following line to sudoers (in red):
then go the the web UI and apply configuration. Wait until apply configuration fails, stop the tail (ctrl + c), and display the output of the tail.
If apply configuration still fails, start a running tail on the cmdsubsys.log:#includedir /etc/sudoers.d
Defaults:nagios !requiretty
User_Alias NAGIOSXI=nagios
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.logBe sure to check out our Knowledgebase for helpful articles and solutions!
-
mdsupersonic
- Posts: 84
- Joined: Fri May 13, 2016 2:25 pm
Re: Nagios restart command failed
........................................PROCESSING COMMAND ID 454...
PROCESS COMMAND: CMD=17, DATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE="cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh"
URL:" http://localhost/nagiosxi/includes/components/ccm/"
CMDLINE
--2016-08-15 13:52:42-- "http://localhost/nagiosxi/includes/components/ccm/"
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’
0K .......... .......... .......... ...... 482K=0.08s
2016-08-15 13:52:42 (482 KB/s) - ‘nagiosql.login’ saved [37116]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/component$
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2016-08-15 13:52:43-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’
0K .......... .......... .......... ...... 1.31M=0.03s
2016-08-15 13:52:43 (1.31 MB/s) - ‘nagiosql.login’ saved [37116]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/component$
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certi$
--2016-08-15 13:52:43-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.export.monitoring’
0K .......... ..... 16.4K=0.9s
2016-08-15 13:52:45 (16.4 KB/s) - ‘nagiosql.export.monitoring’ saved [15826]
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Warning: Service 'Ping' on host 'CorpJira' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq3' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq4' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmqNfs2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalFuseNfs1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRoute1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRoute1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRoute2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRoute2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRoute3' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRoute3' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRouteM1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRouteM1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalWeb1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalWrite1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalWrite1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalWrite2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalWrite2' has no default contacts or contactgroups defined!
Warning: Service 'DNS IP Match' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'HTTP' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'SSL Certificate' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'SSL Certificate' on host 'Perspectica' has no notification time period defined!
Warning: Service '_Login.aspx URL Content' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service '_Login.aspx URL Content' on host 'Perspectica' has no notification time period defined!
Warning: Service '_Login.aspx URL Content' on host 'Perspectica' has no notification time period defined!
Warning: Service '_Login.aspx URL Status' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service '_Login.aspx URL Status' on host 'Perspectica' has no notification time period defined!
Warning: Service 'Ping' on host 'TorAmq1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorAmq2' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq3' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq3' has no check time period defined!
Warning: Service 'Ping' on host 'TorAmq3' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq4' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq4' has no check time period defined!
Warning: Service 'Ping' on host 'TorAmq4' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorAmqNfs2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp3' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp3' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp4' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp4' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorArchive2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorBackup' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorBind1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorCorpRoute1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorDataStore2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorFuseNfs1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorMgmt1' has no default contacts or contactgroups defined!
Warning: Service 'CPU Usage' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Drive C: Disk Usage' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'HTTP Port 443 - Internal Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or con$
Warning: Service 'HTTP Port 4443 - External Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or co$
Warning: Service 'HTTP Port 80 - Internal Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or cont$
Warning: Service 'HTTP Port 8080 - External Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or co$
Warning: Service 'IIS App Pool - DefaultAppPool' on host 'UC-FE.ac-onebox.com' has no default contacts or contact$
Warning: Service 'IIS App Pool - LyncExtFeature' on host 'UC-FE.ac-onebox.com' has no default contacts or contact$
Warning: Service 'IIS App Pool - LyncExtManagement' on host 'UC-FE.ac-onebox.com' has no default contacts or cont$
Warning: Service 'IIS App Pool - LyncExtReach' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgr$
Warning: Service 'IIS App Pool - LyncExtSignin' on host 'UC-FE.ac-onebox.com' has no default contacts or contactg$
Warning: Service 'IIS App Pool - LyncIntFeature' on host 'UC-FE.ac-onebox.com' has no default contacts or contact$
Warning: Service 'IIS App Pool - LyncIntManagement' on host 'UC-FE.ac-onebox.com' has no default contacts or cont$
Warning: Service 'IIS App Pool - LyncIntPersistantChat' on host 'UC-FE.ac-onebox.com' has no default contacts or $
Warning: Service 'IIS App Pool - LyncIntReach' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgr$
Warning: Service 'IIS App Pool - LyncMcx' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups $
Warning: Service 'IIS App Pool - LyncUcwa' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups$
Warning: Service 'ISS App Pool -LyncIntSignin' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgr$
Warning: Service 'Memory Usage' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'SSL Certificate' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Service - MSMQ' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Service - MSSQLLYNCLOCAL' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroup$
Warning: Service 'Service - MSSQLRTC' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - MSSQLRTCLOCAL' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups$
Warning: Service 'Service - Master' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - REPLICA' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service - RTCASMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - RTCATS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCAVMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - RTCCAA' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCCAS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCCHAT' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service - RTCCLSAGT' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'Service - RTCCPS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCDATAMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RTCIMMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - RTCMEDSRV' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'Service - RTCPDPAUTH' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RTCPDPCORE' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RTCRGS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCXMPPTGW' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RtcSrv' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - SQLBrowser' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - SQLWriter' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'Service - SysAdmin.RemotingSvr' on host 'UC-FE.ac-onebox.com' has no default contacts or contac$
Warning: Service 'Service - W3SVC' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Service - vmicguestinterface' on host 'UC-FE.ac-onebox.com' has no default contacts or contactg$
Warning: Service 'Service - vmicheartbeat' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups$
Warning: Service 'Service - vmickvpexchange' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgrou$
Warning: Service 'Service - vmicrdv' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service - vmicshutdown' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups $
Warning: Service 'Service - vmictimesync' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups $
Warning: Service 'Service - vmicvss' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service FTA' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Domain Expiration' on host 'www.telmetrics.com' has a notification interval less than its chec$
Checked 1692 services.
Warning: Host 'CorpJira' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq1' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq2' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq3' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq4' has no default contacts or contactgroups defined!
Warning: Host 'DalAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Host 'DalAmqNfs2' has no default contacts or contactgroups defined!
Warning: Host 'DalApp1' has no default contacts or contactgroups defined!
Warning: Host 'DalApp10' has no default contacts or contactgroups defined!
Warning: Host 'DalApp11' has no default contacts or contactgroups defined!
Warning: Host 'DalApp12' has no default contacts or contactgroups defined!
Warning: Host 'DalApp13' has no default contacts or contactgroups defined!
Warning: Host 'DalApp14' has no default contacts or contactgroups defined!
Warning: Host 'DalApp2' has no default contacts or contactgroups defined!
Warning: Host 'DalApp5' has no default contacts or contactgroups defined!
Warning: Host 'DalApp6' has no default contacts or contactgroups defined!Warning: Host 'DalApp7' has no default contacts or contactgroups defined!
Warning: Host 'DalApp8' has no default contacts or contactgroups defined!
Warning: Host 'DalApp9' has no default contacts or contactgroups defined!
Warning: Host 'DalCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Host 'DalFuseNfs1' has no default contacts or contactgroups defined!
Warning: Host 'DalRoute1' has no default contacts or contactgroups defined!
Warning: Host 'DalRoute2' has no default contacts or contactgroups defined!
Warning: Host 'DalRoute3' has no default contacts or contactgroups defined!
Warning: Host 'DalRouteM1' has no default contacts or contactgroups defined!
Warning: Host 'DalWeb1' has no default contacts or contactgroups defined!
Warning: Host 'DalWrite1' has no default contacts or contactgroups defined!
Warning: Host 'DalWrite2' has no default contacts or contactgroups defined!
Warning: Host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq1' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq2' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq3' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq4' has no default contacts or contactgroups defined!
Warning: Host 'TorAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Host 'TorAmqNfs2' has no default contacts or contactgroups defined!
Warning: Host 'TorApp10' has no default contacts or contactgroups defined!
Warning: Host 'TorApp11' has no default contacts or contactgroups defined!
Warning: Host 'TorApp12' has no default contacts or contactgroups defined!
Warning: Host 'TorApp13' has no default contacts or contactgroups defined!
Warning: Host 'TorApp14' has no default contacts or contactgroups defined!
Warning: Host 'TorApp2' has no default contacts or contactgroups defined!
Warning: Host 'TorApp3' has no default contacts or contactgroups defined!
Warning: Host 'TorApp4' has no default contacts or contactgroups defined!
Warning: Host 'TorApp5' has no default contacts or contactgroups defined!
Warning: Host 'TorApp6' has no default contacts or contactgroups defined!
Warning: Host 'TorApp7' has no default contacts or contactgroups defined!
Warning: Host 'TorApp8' has no default contacts or contactgroups defined!
Warning: Host 'TorApp9' has no default contacts or contactgroups defined!
Warning: Host 'TorArchive2' has no default contacts or contactgroups defined!
Warning: Host 'TorBackup' has no default contacts or contactgroups defined!
Warning: Host 'TorBind1' has no default contacts or contactgroups defined!
Warning: Host 'TorCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Host 'TorCorpRoute1' has no default contacts or contactgroups defined!
Warning: Host 'TorDataStore2' has no default contacts or contactgroups defined!
Warning: Host 'TorFuseNfs1' has no default contacts or contactgroups defined!
Warning: Host 'TorMgmt1' has no default contacts or contactgroups defined!
Warning: Host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Checked 137 hosts.
Checked 57 host groups.
Checked 56 service groups.
Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or$
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical$
Checked 4 contacts.
Checked 2 contact groups.
Checked 156 commands.
Checked 10 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 137 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 10 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 213
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
OUTPUT=RET: 0
RETURNCODE=6
My understanding of all this information iS when I apply configuration Nagios can not restart it's service at first attempt and showing some error regarding to older issues which they are not existing yet.
After Second attempt Nagios will be started properly.Even after first attempt I can see that Nagios is inactive and then after restart it will be active.
PROCESS COMMAND: CMD=17, DATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE="cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh"
URL:" http://localhost/nagiosxi/includes/components/ccm/"
CMDLINE
--2016-08-15 13:52:42-- "http://localhost/nagiosxi/includes/components/ccm/"
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’
0K .......... .......... .......... ...... 482K=0.08s
2016-08-15 13:52:42 (482 KB/s) - ‘nagiosql.login’ saved [37116]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/component$
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2016-08-15 13:52:43-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’
0K .......... .......... .......... ...... 1.31M=0.03s
2016-08-15 13:52:43 (1.31 MB/s) - ‘nagiosql.login’ saved [37116]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/component$
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certi$
--2016-08-15 13:52:43-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.export.monitoring’
0K .......... ..... 16.4K=0.9s
2016-08-15 13:52:45 (16.4 KB/s) - ‘nagiosql.export.monitoring’ saved [15826]
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Warning: Service 'Ping' on host 'CorpJira' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq3' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmq4' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalAmqNfs2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalFuseNfs1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRoute1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRoute1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRoute2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRoute2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRoute3' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRoute3' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalRouteM1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalRouteM1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalWeb1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalWrite1' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalWrite1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'DalWrite2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'DalWrite2' has no default contacts or contactgroups defined!
Warning: Service 'DNS IP Match' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'HTTP' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'SSL Certificate' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service 'SSL Certificate' on host 'Perspectica' has no notification time period defined!
Warning: Service '_Login.aspx URL Content' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service '_Login.aspx URL Content' on host 'Perspectica' has no notification time period defined!
Warning: Service '_Login.aspx URL Content' on host 'Perspectica' has no notification time period defined!
Warning: Service '_Login.aspx URL Status' on host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Service '_Login.aspx URL Status' on host 'Perspectica' has no notification time period defined!
Warning: Service 'Ping' on host 'TorAmq1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorAmq2' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq3' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq3' has no check time period defined!
Warning: Service 'Ping' on host 'TorAmq3' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq4' has no default contacts or contactgroups defined!
Warning: Service 'NTP Daemon' on host 'TorAmq4' has no check time period defined!
Warning: Service 'Ping' on host 'TorAmq4' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorAmqNfs2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp10' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp11' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp12' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp13' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp14' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp3' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp3' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp4' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp4' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp5' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp6' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp7' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp8' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping Second IP' on host 'TorApp9' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorArchive2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorBackup' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorBind1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorCorpRoute1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorDataStore2' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorFuseNfs1' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'TorMgmt1' has no default contacts or contactgroups defined!
Warning: Service 'CPU Usage' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Drive C: Disk Usage' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'HTTP Port 443 - Internal Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or con$
Warning: Service 'HTTP Port 4443 - External Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or co$
Warning: Service 'HTTP Port 80 - Internal Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or cont$
Warning: Service 'HTTP Port 8080 - External Web Site' on host 'UC-FE.ac-onebox.com' has no default contacts or co$
Warning: Service 'IIS App Pool - DefaultAppPool' on host 'UC-FE.ac-onebox.com' has no default contacts or contact$
Warning: Service 'IIS App Pool - LyncExtFeature' on host 'UC-FE.ac-onebox.com' has no default contacts or contact$
Warning: Service 'IIS App Pool - LyncExtManagement' on host 'UC-FE.ac-onebox.com' has no default contacts or cont$
Warning: Service 'IIS App Pool - LyncExtReach' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgr$
Warning: Service 'IIS App Pool - LyncExtSignin' on host 'UC-FE.ac-onebox.com' has no default contacts or contactg$
Warning: Service 'IIS App Pool - LyncIntFeature' on host 'UC-FE.ac-onebox.com' has no default contacts or contact$
Warning: Service 'IIS App Pool - LyncIntManagement' on host 'UC-FE.ac-onebox.com' has no default contacts or cont$
Warning: Service 'IIS App Pool - LyncIntPersistantChat' on host 'UC-FE.ac-onebox.com' has no default contacts or $
Warning: Service 'IIS App Pool - LyncIntReach' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgr$
Warning: Service 'IIS App Pool - LyncMcx' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups $
Warning: Service 'IIS App Pool - LyncUcwa' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups$
Warning: Service 'ISS App Pool -LyncIntSignin' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgr$
Warning: Service 'Memory Usage' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'SSL Certificate' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Service - MSMQ' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Service - MSSQLLYNCLOCAL' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroup$
Warning: Service 'Service - MSSQLRTC' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - MSSQLRTCLOCAL' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups$
Warning: Service 'Service - Master' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - REPLICA' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service - RTCASMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - RTCATS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCAVMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - RTCCAA' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCCAS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCCHAT' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service - RTCCLSAGT' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'Service - RTCCPS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCDATAMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RTCIMMCU' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defi$
Warning: Service 'Service - RTCMEDSRV' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'Service - RTCPDPAUTH' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RTCPDPCORE' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RTCRGS' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - RTCXMPPTGW' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - RtcSrv' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups define$
Warning: Service 'Service - SQLBrowser' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups de$
Warning: Service 'Service - SQLWriter' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups def$
Warning: Service 'Service - SysAdmin.RemotingSvr' on host 'UC-FE.ac-onebox.com' has no default contacts or contac$
Warning: Service 'Service - W3SVC' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Service - vmicguestinterface' on host 'UC-FE.ac-onebox.com' has no default contacts or contactg$
Warning: Service 'Service - vmicheartbeat' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups$
Warning: Service 'Service - vmickvpexchange' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgrou$
Warning: Service 'Service - vmicrdv' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service - vmicshutdown' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups $
Warning: Service 'Service - vmictimesync' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups $
Warning: Service 'Service - vmicvss' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defin$
Warning: Service 'Service FTA' on host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Warning: Service 'Domain Expiration' on host 'www.telmetrics.com' has a notification interval less than its chec$
Checked 1692 services.
Warning: Host 'CorpJira' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq1' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq2' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq3' has no default contacts or contactgroups defined!
Warning: Host 'DalAmq4' has no default contacts or contactgroups defined!
Warning: Host 'DalAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Host 'DalAmqNfs2' has no default contacts or contactgroups defined!
Warning: Host 'DalApp1' has no default contacts or contactgroups defined!
Warning: Host 'DalApp10' has no default contacts or contactgroups defined!
Warning: Host 'DalApp11' has no default contacts or contactgroups defined!
Warning: Host 'DalApp12' has no default contacts or contactgroups defined!
Warning: Host 'DalApp13' has no default contacts or contactgroups defined!
Warning: Host 'DalApp14' has no default contacts or contactgroups defined!
Warning: Host 'DalApp2' has no default contacts or contactgroups defined!
Warning: Host 'DalApp5' has no default contacts or contactgroups defined!
Warning: Host 'DalApp6' has no default contacts or contactgroups defined!Warning: Host 'DalApp7' has no default contacts or contactgroups defined!
Warning: Host 'DalApp8' has no default contacts or contactgroups defined!
Warning: Host 'DalApp9' has no default contacts or contactgroups defined!
Warning: Host 'DalCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Host 'DalFuseNfs1' has no default contacts or contactgroups defined!
Warning: Host 'DalRoute1' has no default contacts or contactgroups defined!
Warning: Host 'DalRoute2' has no default contacts or contactgroups defined!
Warning: Host 'DalRoute3' has no default contacts or contactgroups defined!
Warning: Host 'DalRouteM1' has no default contacts or contactgroups defined!
Warning: Host 'DalWeb1' has no default contacts or contactgroups defined!
Warning: Host 'DalWrite1' has no default contacts or contactgroups defined!
Warning: Host 'DalWrite2' has no default contacts or contactgroups defined!
Warning: Host 'Perspectica' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq1' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq2' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq3' has no default contacts or contactgroups defined!
Warning: Host 'TorAmq4' has no default contacts or contactgroups defined!
Warning: Host 'TorAmqMgmt1' has no default contacts or contactgroups defined!
Warning: Host 'TorAmqNfs2' has no default contacts or contactgroups defined!
Warning: Host 'TorApp10' has no default contacts or contactgroups defined!
Warning: Host 'TorApp11' has no default contacts or contactgroups defined!
Warning: Host 'TorApp12' has no default contacts or contactgroups defined!
Warning: Host 'TorApp13' has no default contacts or contactgroups defined!
Warning: Host 'TorApp14' has no default contacts or contactgroups defined!
Warning: Host 'TorApp2' has no default contacts or contactgroups defined!
Warning: Host 'TorApp3' has no default contacts or contactgroups defined!
Warning: Host 'TorApp4' has no default contacts or contactgroups defined!
Warning: Host 'TorApp5' has no default contacts or contactgroups defined!
Warning: Host 'TorApp6' has no default contacts or contactgroups defined!
Warning: Host 'TorApp7' has no default contacts or contactgroups defined!
Warning: Host 'TorApp8' has no default contacts or contactgroups defined!
Warning: Host 'TorApp9' has no default contacts or contactgroups defined!
Warning: Host 'TorArchive2' has no default contacts or contactgroups defined!
Warning: Host 'TorBackup' has no default contacts or contactgroups defined!
Warning: Host 'TorBind1' has no default contacts or contactgroups defined!
Warning: Host 'TorCmsDbArchive1' has no default contacts or contactgroups defined!
Warning: Host 'TorCorpRoute1' has no default contacts or contactgroups defined!
Warning: Host 'TorDataStore2' has no default contacts or contactgroups defined!
Warning: Host 'TorFuseNfs1' has no default contacts or contactgroups defined!
Warning: Host 'TorMgmt1' has no default contacts or contactgroups defined!
Warning: Host 'UC-FE.ac-onebox.com' has no default contacts or contactgroups defined!
Checked 137 hosts.
Checked 57 host groups.
Checked 56 service groups.
Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or$
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical$
Checked 4 contacts.
Checked 2 contact groups.
Checked 156 commands.
Checked 10 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 137 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 10 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 213
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
OUTPUT=RET: 0
RETURNCODE=6
My understanding of all this information iS when I apply configuration Nagios can not restart it's service at first attempt and showing some error regarding to older issues which they are not existing yet.
After Second attempt Nagios will be started properly.Even after first attempt I can see that Nagios is inactive and then after restart it will be active.
Re: Nagios restart command failed
When it errors, send the output of these commands right after:
Thank you
Code: Select all
systemctl status nagios.service
journalctl -xe-
mdsupersonic
- Posts: 84
- Joined: Fri May 13, 2016 2:25 pm
Re: Nagios restart command failed
[root@tornagios3 etc]# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: failed (Result: exit-code) since Mon 2016-08-15 15:25:31 EDT; 17s ago
Docs: man:systemd-sysv-generator(8)
Process: 27972 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 27983 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=127)
CGroup: /system.slice/nagios.service
├─28003 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─28005 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─28006 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─28007 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─28008 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─28017 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Aug 15 15:25:36 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-Edge.ac-onebox.com;Service - vmi...ver
Aug 15 15:25:37 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service '...ts.
Aug 15 15:25:38 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: ExtDNS1;Service - DNS;UNKNOWN;HARD;...ver
Aug 15 15:25:40 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-FE.ac-onebox.com;Service - RtcSr...ver
Aug 15 15:25:40 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core2DC1;CPU Usage;OK;HARD;5;CPU Lo...ge)
Aug 15 15:25:42 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service '...ts.
Aug 15 15:25:45 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-FE.ac-onebox.com;Service - vmics...ver
Aug 15 15:25:47 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: CorpManagement1;CPU Usage;WARNING;H...ver
Aug 15 15:25:48 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: CorpLyncReverseProxy;Memory Usage;U...ver
Aug 15 15:25:48 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core2Tasks;CPU Usage;WARNING;HARD;5...ver
Hint: Some lines were ellipsized, use -l to show in full.
[root@tornagios3 etc]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150954.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Started Session 150956 of user nagios.
-- Subject: Unit session-150956.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150956.scope has finished starting up.
--
-- The start-up result is done.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Starting Session 150956 of user nagios.
-- Subject: Unit session-150956.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150956.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Started Session 150957 of user nagios.
-- Subject: Unit session-150957.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150957.scope has finished starting up.
--
-- The start-up result is done.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Starting Session 150957 of user nagios.
-- Subject: Unit session-150957.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150957.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Started Session 150955 of user nagios.
-- Subject: Unit session-150955.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150955.scope has finished starting up.
--
-- The start-up result is done.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Starting Session 150955 of user nagios.
-- Subject: Unit session-150955.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150955.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28528]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cm
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28529]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/fe
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28530]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/ev
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28531]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cl
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28534]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/no
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28538]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/re
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28539]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sy
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28542]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/pe
Aug 15 15:26:02 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Corp2Terminal;CPU Usage;OK;HARD;5;CPU Loa
Aug 15 15:26:02 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core1DC1;Service-NTDS;UNKNOWN;HARD;5;coul
Aug 15 15:26:04 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: TorRoute1;/data Disk Usage;CRITICAL;SOFT;
Aug 15 15:26:07 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service 'HTTP P
Aug 15 15:26:15 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-Edge.ac-onebox.com;Service - RTCCLSAGT
Aug 15 15:26:15 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service 'HTTP P
Aug 15 15:26:17 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service 'HTTP P
Aug 15 15:26:18 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core2UI2;CPU Usage;WARNING;SOFT;2;could n
Aug 15 15:26:19 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: CorpTerminal2;CPU Usage;WARNING;HARD;5;co
Aug 15 15:26:20 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core1UI2;CPU Usage;WARNING;HARD;5;could n
Aug 15 15:26:23 tornagios3.telmetrics.corp nagios[28003]: SERVICE FLAPPING ALERT: Core1Backup;Memory Usage;STOPPED
Aug 15 15:26:24 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of servi
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios)
Active: failed (Result: exit-code) since Mon 2016-08-15 15:25:31 EDT; 17s ago
Docs: man:systemd-sysv-generator(8)
Process: 27972 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 27983 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=127)
CGroup: /system.slice/nagios.service
├─28003 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─28005 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─28006 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─28007 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─28008 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─28017 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Aug 15 15:25:36 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-Edge.ac-onebox.com;Service - vmi...ver
Aug 15 15:25:37 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service '...ts.
Aug 15 15:25:38 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: ExtDNS1;Service - DNS;UNKNOWN;HARD;...ver
Aug 15 15:25:40 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-FE.ac-onebox.com;Service - RtcSr...ver
Aug 15 15:25:40 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core2DC1;CPU Usage;OK;HARD;5;CPU Lo...ge)
Aug 15 15:25:42 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service '...ts.
Aug 15 15:25:45 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-FE.ac-onebox.com;Service - vmics...ver
Aug 15 15:25:47 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: CorpManagement1;CPU Usage;WARNING;H...ver
Aug 15 15:25:48 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: CorpLyncReverseProxy;Memory Usage;U...ver
Aug 15 15:25:48 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core2Tasks;CPU Usage;WARNING;HARD;5...ver
Hint: Some lines were ellipsized, use -l to show in full.
[root@tornagios3 etc]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150954.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Started Session 150956 of user nagios.
-- Subject: Unit session-150956.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150956.scope has finished starting up.
--
-- The start-up result is done.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Starting Session 150956 of user nagios.
-- Subject: Unit session-150956.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150956.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Started Session 150957 of user nagios.
-- Subject: Unit session-150957.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150957.scope has finished starting up.
--
-- The start-up result is done.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Starting Session 150957 of user nagios.
-- Subject: Unit session-150957.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150957.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Started Session 150955 of user nagios.
-- Subject: Unit session-150955.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150955.scope has finished starting up.
--
-- The start-up result is done.
Aug 15 15:26:01 tornagios3.telmetrics.corp systemd[1]: Starting Session 150955 of user nagios.
-- Subject: Unit session-150955.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-150955.scope has begun starting up.
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28528]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cm
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28529]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/fe
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28530]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/ev
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28531]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cl
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28534]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/no
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28538]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/re
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28539]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sy
Aug 15 15:26:01 tornagios3.telmetrics.corp CROND[28542]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/pe
Aug 15 15:26:02 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Corp2Terminal;CPU Usage;OK;HARD;5;CPU Loa
Aug 15 15:26:02 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core1DC1;Service-NTDS;UNKNOWN;HARD;5;coul
Aug 15 15:26:04 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: TorRoute1;/data Disk Usage;CRITICAL;SOFT;
Aug 15 15:26:07 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service 'HTTP P
Aug 15 15:26:15 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: UC-Edge.ac-onebox.com;Service - RTCCLSAGT
Aug 15 15:26:15 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service 'HTTP P
Aug 15 15:26:17 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of service 'HTTP P
Aug 15 15:26:18 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core2UI2;CPU Usage;WARNING;SOFT;2;could n
Aug 15 15:26:19 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: CorpTerminal2;CPU Usage;WARNING;HARD;5;co
Aug 15 15:26:20 tornagios3.telmetrics.corp nagios[28003]: SERVICE ALERT: Core1UI2;CPU Usage;WARNING;HARD;5;could n
Aug 15 15:26:23 tornagios3.telmetrics.corp nagios[28003]: SERVICE FLAPPING ALERT: Core1Backup;Memory Usage;STOPPED
Aug 15 15:26:24 tornagios3.telmetrics.corp nagios[28003]: Warning: Return code of 127 for check of servi
Re: Nagios restart command failed
So if you apply twice it work or does it require manual intervention?
Is this server LDAP/AD connected so that you use your LDAP/AD credentials to SSH into the server?
If so, edit this file:
Change/add/set this:
Then try it again and let us know the results.
Is this server LDAP/AD connected so that you use your LDAP/AD credentials to SSH into the server?
If so, edit this file:
Code: Select all
/etc/nsswitch.confCode: Select all
sudoers: files ldap