shoot not sure what is happening - cant start nagios (account unavailable)

David Rosenstrauch darose at darose.net
Fri Jul 10 21:22:43 CEST 2009


Natalie Aloi wrote:
> All I had a sample version (out of the box) of nagios running, I made
> my config changes with my devices, etc, verified configuration...now
> nagios won't start! Here is my output any ideas?

> [naloi at dns bin]$ sudo service nagios
> restart [sudo] password for root: Running configuration check...done.
>  Stopping nagios: done. Starting nagios:su: warning: cannot change
> directory to /var/spool/nagios: No such file or directory This
> account is currently not available. done.

> [root at dns
> bin]# cd /var/spool [root at dns spool]# ls -lat total 52 drwxrwx--- 2
> smmsp smmsp 4096 2009-07-10 05:00 clientmqueue drwxr-xr-x 13 root
> root 4096 2009-07-08 13:52 . drwxrwxr-x 2 root mail 4096 2009-07-07
> 04:10 mail drwx------ 2 root mail 4096 2009-07-07 04:10 mqueue 
> drwxr-xr-x 2 root root 4096 2009-06-30 15:00 anacron drwxr-xr-x 20
> root root 4096 2009-06-30 14:37 .. drwx--x--- 3 root lp 4096
> 2009-06-30 14:35 cups drwx------ 3 daemon daemon 4096 2009-06-30
> 14:26 at drwxr-xr-x 2 root root 4096 2008-12-12 13:02 repackage 
> drwxr-xr-x 2 root root 4096 2008-04-07 17:44 lpd drwxr-x--- 2 squid
> squid 4096 2008-04-03 07:30 squid drwxrwxrwt 2 root root 4096
> 2008-03-03 12:51 vbox drwx------ 2 root root 4096 2008-02-12 10:18
> cron


Sounds like ... exactly what it says:

/var/spool/nagios: No such file or directory

There is no directory called /var/spool/nagios, which apparently 
something in your nagios.cfg file is pointing to.

Fix would be to either create the directory (and make sure you have its 
permissions and ownership set correctly) or change your config file to 
point somewhere else.

BTW, on our system (CentOS 5.3) there is no /var/spool/nagios, but 
rather a parent /var/nagios directory which contains a "spool" sub-dir. 
  So maybe /var/spool/nagios is not the right dir name for your distro?

Where did you get your nagios.cfg file from?  It'd generally best, I'd 
think, to take the one that comes shipped with the nagios release you 
installed and then customize it to your needs so that you don't wind up 
using a config file from another distro that's incompatible with the 
layout of your distro's file system.  (This is also why I'd think it's 
generally a good idea to install from a package for your distro, as 
opposed to building from source, as you indicated you did.)

HTH,

DR

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list