Hi,
I have a problem where I can't find the file called nagios.cmd
This problem I came accross when I got the following error: Could not Stat().
In other forums I read by changing the permissions this will solve the problem but I can't even find the file. The file it self is missing.
Question: where can I find this file and how to solve this problem?
Thanks,
Verster
nagios.cmd file is missing
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nagios.cmd file is missing
Should be located here:
Is nagios running?
Code: Select all
/usr/local/nagios/var/rw/nagios.cmd
Code: Select all
service nagios status
Re: nagios.cmd file is missing
hi,
we have two nagios servers on Ubuntu, both of them Nagios is running with the "service nagios status" command
also both of them is giving the "error: could not stat() when you try to make any changes to the host like "disable notifications..."
now here is the strange thing.
the one server when you get the could not stat() error the command file is '/usr/local/nagios/var/rw/nagios.cmd' and you can find the file in that directory
but still the error could not stat() error
and then the other server command file path is different '/var/nagios/rw/nagios.cmd' for the file but that file is not there, even if I go and check in the /usr/local/nagios/var folder you will not even find the rw folder.
hope you can help
we have two nagios servers on Ubuntu, both of them Nagios is running with the "service nagios status" command
also both of them is giving the "error: could not stat() when you try to make any changes to the host like "disable notifications..."
now here is the strange thing.
the one server when you get the could not stat() error the command file is '/usr/local/nagios/var/rw/nagios.cmd' and you can find the file in that directory
but still the error could not stat() error
and then the other server command file path is different '/var/nagios/rw/nagios.cmd' for the file but that file is not there, even if I go and check in the /usr/local/nagios/var folder you will not even find the rw folder.
hope you can help
Re: nagios.cmd file is missing
Nagios was installed on these servers differently. One, from the nagios source, the other from the ubuntu repos.
Lets stop nagios, and then kill any orphaned/defunct parent processes:
Lets stop nagios, and then kill any orphaned/defunct parent processes:
Code: Select all
service nagios stop
killall nagios
ps -aef | grep nagios.cfg
service nagios start
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: nagios.cmd file is missing
that was excellent,
both of these servers is working
thank you very much.
both of these servers is working
thank you very much.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nagios.cmd file is missing
Great! Locking er' up.