root@nagiosxi-lv> cat /etc/redhat-release
CentOS release 6.10 (Final)
root@nagiosxi-lv> uname -a
Linux nagiosxi-lv 2.6.32-754.12.1.el6.x86_64 #1 SMP Tue Apr 9 14:52:26 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@nagiosxi-lv> service nagios status
No lock file found in /var/run/nagios.lock
root@nagiosxi-lv> systemctl status nagios
-ksh: systemctl: not found [No such file or directory]
No output returned for the following command:
grep gearman /usr/local/nagios/etc/nagios.cfg
root@nagiosxi-lv> /usr/local/nagios/bin/nagios -V
Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL
Website:
https://www.nagios.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
root@nagiosxi-lv> grep -i "lock\|pid" /etc/init.d/nagios /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios:NagiosRunFile=/var/run/nagios.lock
/etc/init.d/nagios: if ps -p $NagiosPID > /dev/null 2>&1; then
/etc/init.d/nagios: echo "nagios (pid $NagiosPID) is running..."
/etc/init.d/nagios: kill -s "$1" $NagiosPID
/etc/init.d/nagios:pid_nagios ()
/etc/init.d/nagios: echo "No lock file found in $NagiosRunFile"
/etc/init.d/nagios: NagiosPID=`head -n 1 $NagiosRunFile`
/etc/init.d/nagios: NagiosPID=`head -n 1 $NagiosRunFile`
/etc/init.d/nagios: pid_nagios
/etc/init.d/nagios: pid_nagios
/etc/init.d/nagios: pid_nagios
/usr/local/nagios/etc/nagios.cfg:lock_file=/var/run/nagios.lock
root@nagiosxi-lv> /usr/local/nagiosxi/scripts/nom_restore_nagioscore_checkpoint.sh
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1554844189.tar.gz
/ ~
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1554844189.tar.gz
~
--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
root@nagiosxi-lv> /usr/local/nagiosxi/scripts/nom_restore_nagioscore_checkpoint_specific.sh
NOM SNAPSHOT /usr/local/nagiosxi/nom/checkpoints/nagioscore/.tar.gz NOT FOUND!