Try this: mkdir /var/spool/nagios
chown nagios:nagios /var/spool/nagios It looks like the directory does not exist and since the init script runs nagios as user nagios, it can't create it. Dale 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? > > [r...@dns bin]# ./nagios -v /usr/local/nagios/etc/nagios.cfg > Nagios 3.0.6 > Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org/) > Last Modified: 12-01-2008 > License: GPL > Reading configuration data... > Running pre-flight check on configuration data... > Checking services... > Checked 81 services. > Checking hosts... > Checked 19 hosts. > Checking host groups... > Checked 3 host groups. > Checking service groups... > Checked 0 service groups. > Checking contacts... > Checked 3 contacts. > Checking contact groups... > Checked 3 contact groups. > Checking service escalations... > Checked 0 service escalations. > Checking service dependencies... > Checked 0 service dependencies. > Checking host escalations... > Checked 0 host escalations. > Checking host dependencies... > Checked 0 host dependencies. > Checking commands... > Checked 94 commands. > Checking time periods... > Checked 5 time periods. > Checking for circular paths between hosts... > Checking for circular host and service dependencies... > Checking global event handlers... > Checking obsessive compulsive processor commands... > Checking misc settings... > Total Warnings: 0 > Total Errors: 0 > Things look okay - No serious problems were detected during the > pre-flight check > [r...@dns bin]# exit > exit > [na...@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. > [na...@dns bin]$ su > Password: > [r...@dns bin]# sudo service nagios start > Starting nagios:su: warning: cannot change directory to > /var/spool/nagios: No such file or directory > This account is currently not available. > done. > [r...@dns bin]# service nagios start > Starting nagios:su: warning: cannot change directory to > /var/spool/nagios: No such file or directory > This account is currently not available. > done. > [r...@dns bin]# cd /var/spool > [r...@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 > [r...@dns spool]# service httpd restart > Stopping httpd: [ OK ] > Starting > httpd: [ OK ] > [r...@dns spool]# chkconfig --add nagios > [r...@dns spool]# chkconfig nagios on > [r...@dns spool]# service nagios start > Starting nagios:su: warning: cannot change directory to > /var/spool/nagios: No such file or directory > This account is currently not available. > done. > [r...@dns spool]# > Network Operations Center Manager > Experis Data Center LLC > 8209 Valley Pike > PO Box 535 > Middletown,VA 22645 > phone:540-869-8702 > cell:240-988-3267 > fax:540-869-8710 > e-mail:[email protected] > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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 > [email protected] > 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 -- Dale J. Chatham [email protected] _.oo. _.u[[/;:,. .odMMMMMM' .o888UU[[[/;:-. ....@p^ MMM^ oN88888UU[[[/;::-. dP^ dNMMNN888UU[[[/;:--. ....@p^ ,MMMMMMN888UU[[/;::-. o...@^ NNMMMNN888UU[[[/~...@p^ 888888888UU[[[/o...@^-.. oI8888UU[[[/o...@p^:--.. ....@^ YUU[[[/o...@^;::---.. oMP ^/o...@p^;:::---.. .dMMM ....@^ ^;::---... dmmmm...@^` `^^^^ YMMMUP^ ^^ ------------------------------------------------------------------------------ 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 [email protected] 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
