nagios.cmd not there, can't set downtimes
nagios.cmd not there, can't set downtimes
Hello:
It seems that the nagios.cmd file keeps disappearing:
As a result when we try to set a downtime we receive this error:
Thanks!
It seems that the nagios.cmd file keeps disappearing:
As a result when we try to set a downtime we receive this error:
Thanks!
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios.cmd not there, can't set downtimes
if you restart nagios is it created?
Code: Select all
service nagios restartRe: nagios.cmd not there, can't set downtimes
I actually did try that before opening the issue and I should have mentioned it. Delving further along this track it appears that although it reports that Nagios is started when you restart or even start the service as requested in your reply, when you query the status it says that Nagios isn't started.
I have attached some screenshots. Thanks!
I have attached some screenshots. Thanks!
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios.cmd not there, can't set downtimes
lets run the following
Code: Select all
service nagios stop
killall -9 nagios
service nagios startRe: nagios.cmd not there, can't set downtimes
Killing all the Nagios processes with pkill worked fine. I will monitor it as it seems the last time I had it running it inexplicably stopped working within a day.
Thanks!
Thanks!
Re: nagios.cmd not there, can't set downtimes
Ok, so restarting all of the services seems to have fixed the issue as mentioned in the previous entry. Going back into the GUI shows that the Monitoring Engine is stopped. Starting the monitoring engine from the Interface then seems to break things again. I have attached some screenshots. Thanks!
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios.cmd not there, can't set downtimes
Can you show the output of the following commands
Code: Select all
grep nagios.lock /usr/local/nagios/etc/nagios.cfg
grep nagios.lock /etc/init.d/nagiosRe: nagios.cmd not there, can't set downtimes
Sure, here you go...
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios.cmd not there, can't set downtimes
Lets edit
change this
to this
then run the following:
change this
Code: Select all
NagiosRunFile=/var/run/nagios.lockCode: Select all
NagiosRunFile=/usr/local/nagios/var/nagios.lockCode: Select all
service nagios stop
killall -9 nagios
rm -f /usr/local/nagios/var/nagios.lock /var/run/nagios.lock
service nagios startRe: nagios.cmd not there, can't set downtimes
Great, seems obvious now lol!
That seems to have resolved the issue. Thanks for your help!
That seems to have resolved the issue. Thanks for your help!