service nagios restart not restarting nagios
service nagios restart not restarting nagios
The command "service nagios restart" isn't actually restarting nagios for some unknown reason.
I can type it until i'm blue in the face and my config changes will never take effect because the service doesn't restart. My only work around is to reboot the whole server.
Nagios also doesn't start at boot up. I have to manually start it.
Any ideas how to resolve this?
I can type it until i'm blue in the face and my config changes will never take effect because the service doesn't restart. My only work around is to reboot the whole server.
Nagios also doesn't start at boot up. I have to manually start it.
Any ideas how to resolve this?
Re: service nagios restart not restarting nagios
What OS is this? Does running service nagios restart say anything about stopping and starting or does it bring you directly to a prompt? What if you run /etc/init.d/nagios restart?
Run:
chkconfig --add nagios
chkconfig nagios on
and then that you can see nagios listed when you run chkconfig.
Run:
chkconfig --add nagios
chkconfig nagios on
and then that you can see nagios listed when you run chkconfig.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: service nagios restart not restarting nagios
Ubuntu 16.04cdienger wrote:What OS is this?
it just runs and doesn't display anything and brings me back to a prompt when I check the nagios page nothing has changed..cdienger wrote:Does running service nagios restart say anything about stopping and starting or does it bring you directly to a prompt?
when I run that it sayscdienger wrote:What if you run /etc/init.d/nagios restart?
Code: Select all
[ ok ] Restarting nagios (via systemctl): nagios.service.
when I try chkconfig --add nagios it returns: chkconfig: command not foundcdienger wrote:Run:
chkconfig --add nagios
chkconfig nagios on
root@nagios:~# chkconfigcdienger wrote:and then that you can see nagios listed when you run chkconfig.
chkconfig: command not found
Re: service nagios restart not restarting nagios
In that case:
Code: Select all
sudo update-rc.d nagios default
sudo update-rc.d nagios enable
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: service nagios restart not restarting nagios
@t3dus, What version of Nagios core are you running? How did you install it? If you provide us with the manual you used that would help.
Also, was this a clean install or has your Nagios Core been working for a while?
Can you also run the following command:
That would create a supporttar.tar.gz in the /tmp/ directory that you can upload here.
Also, was this a clean install or has your Nagios Core been working for a while?
Can you also run the following command:
Code: Select all
tar -zcvf /tmp/supporttar.tar.gz /usr/local/nagios/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: service nagios restart not restarting nagios
Got some errors..cdienger wrote:In that case:
Code: Select all
sudo update-rc.d nagios default sudo update-rc.d nagios enable
Code: Select all
# sudo update-rc.d nagios default
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
-n: not really
-f: force
The disable|enable API is not stable and might change in the future.
Code: Select all
# sudo update-rc.d nagios enable
update-rc.d: error: no runlevel symlinks to modify, aborting!
Nagios Core 4.3.4 Compiled from source.npolovenko wrote:@t3dus, What version of Nagios core are you running? How did you install it? If you provide us with the manual you used that would help.
Clean Install on a VM hosted by KVMnpolovenko wrote:Also, was this a clean install or has your Nagios Core been working for a while?
Uploaded it to my owncloud server at https://cloud.snapgeek.com/index.php/s/EY5Ak2AuV5OXoiInpolovenko wrote:Can you also run the following command:That would create a supporttar.tar.gz in the /tmp/ directory that you can upload here.Code: Select all
tar -zcvf /tmp/supporttar.tar.gz /usr/local/nagios/
Re: service nagios restart not restarting nagios
Think I may nuke this server.
Seems flaky because websites it's monitoring keep going up/down every few minutes so it's spamming my e-mail with false alerts. Must be some sort of a hardware issue or something. I'm not sure though but not sure it's worth my time...
My VPS nagios server is working fine yet so whatever.. I just wanted this one to monitor my home network but seems it isn't going to work for that.
Seems flaky because websites it's monitoring keep going up/down every few minutes so it's spamming my e-mail with false alerts. Must be some sort of a hardware issue or something. I'm not sure though but not sure it's worth my time...
My VPS nagios server is working fine yet so whatever.. I just wanted this one to monitor my home network but seems it isn't going to work for that.
Re: service nagios restart not restarting nagios
It's possible this website service check was flapping?
Were there any other questions?
Were there any other questions?
Re: service nagios restart not restarting nagios
No cuz my other nagios server isn't reporting any issues. Just my home nagios server is.kyang wrote:It's possible this website service check was flapping?
Were there any other questions?
I have two nagios servers monitoring the same sites.
Re: service nagios restart not restarting nagios
Are they using different network devices?
Let us know how you would like to continue. Thanks!
Will you stop using this Nagios server? Or did you want to continue troubleshooting this?Think I may nuke this server.
Seems flaky because websites it's monitoring keep going up/down every few minutes so it's spamming my e-mail with false alerts. Must be some sort of a hardware issue or something. I'm not sure though but not sure it's worth my time...
My VPS nagios server is working fine yet so whatever.. I just wanted this one to monitor my home network but seems it isn't going to work for that.
Let us know how you would like to continue. Thanks!