Newbie Question : start stop

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
matson-itops
Posts: 133
Joined: Wed Nov 18, 2015 11:19 pm

Newbie Question : start stop

Post by matson-itops »

running nagiosxi 5.8.1 on fresh redhat 8 system

however, when I do service nagiosxi restart I set error below

[root@orec2upm04 log]# service nagiosxi restart
Redirecting to /bin/systemctl restart nagiosxi.service
Failed to restart nagiosxi.service: Unit nagiosxi.service not found.

is there some instructions to start/stop set up service I'm missing?
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Newbie Question : start stop

Post by gsmith »

Hi

Try these:

sudo systemctl stop nagios
sudo systemctl start nagios
sudo systemctl restart nagios
sudo systemctl status nagios

Let me know how it works for you.

Thanks
matson-itops
Posts: 133
Joined: Wed Nov 18, 2015 11:19 pm

Re: Newbie Question : start stop

Post by matson-itops »

yes, bouncing nagios core works fine.
is the nagiosxi deprecated?

[rxxx ~]# systemctl status nagios
● nagios.service - Nagios Core 4.4.6
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-05-25 09:34:09 PDT; 2s ago
Docs: https://www.nagios.org/documentation
Process: 1216085 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 1216083 ExecStop=/usr/bin/kill -s TERM ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 1216089 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 1216087 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 1216090 (nagios)
Tasks: 16 (limit: 94494)
Memory: 33.4M
CGroup: /system.slice/nagios.service
├─1216090 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─1216091 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─1216092 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─1216093 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─1216094 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─1216095 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─1216096 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─1216100 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─1216114 /usr/local/nagios/libexec/check_ntp_time -H 169.254.169.123 -w 0.5 -c 1
├─1216120 /usr/local/nagios/libexec/check_icmp -H 10.3.7.246 -w 3000.0 80 -c 5000.0 100 -p 5
├─1216123 /usr/local/nagios/libexec/check_icmp -H 10.8.7.4 -w 3000.0 80 -c 5000.0 100 -p 5
├─1216126 /usr/local/nagios/libexec/check_nrpe -H 10.102.90.49 -t 30 -c check_init_service -a sshd
├─1216127 /usr/local/nagios/libexec/check_icmp -H 192.168.0.24 -w 3000.0 80 -c 5000.0 100 -p 5
├─1216128 /usr/local/nagios/libexec/check_icmp -H 10.157.32.41 -w 3000.0 80 -c 5000.0 100 -p 5
├─1216129 /usr/local/nagios/libexec/check_icmp -H 10.157.32.125 -w 3000.0 80 -c 5000.0 100 -p 5
└─1216130 /usr/local/nagios/libexec/check_icmp -H 10.43.2.232 -w 3000.0 80 -c 5000.0 100 -p 5
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Newbie Question : start stop

Post by gsmith »

Hi

There is no nagiosxi service. If there was one it must have gotten deprecated.
I reached out to the devs but haven't gotten an answer as to if it ever existed
or was deprecated.

Here is how to start and stop XI manually:

Code: Select all

service nagios stop
service npcd stop
service mysqld stop
service postgresql stop
service httpd stop
service crond stop
service crond start
service httpd start
service postgresql start
service mysqld start
service ndo2db start
service npcd start
service nagios start
Thanks
Locked