Hi,
I had to do an offline NagiosXI install due to internet connectivity issues. On a regular online Nagios XI installation i could restart by using
sudo /etc/init.d/nagios start/restart/stop. after doing an offline install i don't even see /etc/init.d/nagios. I know for a fact that i missed something. However systemctl start nagios.service works, but in case of errors in config files i don't see a nagios.configtest file in /usr/local/nagios/var/ directory. Can someone please help!
Can't restart nagios using sudo /etc/init.d/nagios restart
Re: Can't restart nagios using sudo /etc/init.d/nagios resta
You are not going to see "/etc/init.d/nagios" on a new install of Nagios XI, and this is normal. You can use systemctl to start/stop/restart nagios, and view the status:
You can verify the config (check for errors) from the command line by running:
or in the GUI:
CCM > Tools > Config File Management > Write Configs > Verify Files
Note: Sometimes, the nagios.configtest cannot be created or updated because the nagios account does not have a user shell. See more here:
https://support.nagios.com/kb/article/n ... t-760.html
Code: Select all
systemctl start nagios.service
systemctl stop nagios.service
systemctl restart nagios.service
systemctl status nagios.serviceCode: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgCCM > Tools > Config File Management > Write Configs > Verify Files
Note: Sometimes, the nagios.configtest cannot be created or updated because the nagios account does not have a user shell. See more here:
https://support.nagios.com/kb/article/n ... t-760.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Can't restart nagios using sudo /etc/init.d/nagios resta
Thanks lmiltchev for the quick response! That clarifies my concerns!
Re: Can't restart nagios using sudo /etc/init.d/nagios resta
Sounds good! Is it OK if we close this topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!