Try restarting Nagios. nagios.cmd is actually not a file, but a socket. It is very important, not just for comments, but for a lot of other things, too. It should get deleted when you stop nagios, and recreated when you start it. Apparently, when you restarted nagios "manually" somehow that step got bypassed.
Rahul Nabar wrote: > I recently had a server crash. I recovered and restarted nagios > manually but now I seem to have lost the ability to make comments on > hosts. If I try I get the error message: > > Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > An error occurred while attempting to commit your command for processing. > > > That file is indeed missing. Running a "locate nagios.cmd" though > shows the file at that location so it must have been there before the > crash. > > Do I need to restart something? What am I missing. > > The older comments are intact though. It is just that I cannot make > new comments. > > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null