<html><DIV><FONT face=Verdana color=#0000ff size=2>not really sure what happened here...I tried your suggestion but still same results, once I edited the etc/passwd file and gave nagios a valid shell I could stop & start the service successfully.</FONT></DIV>
<DIV><FONT color=#0000ff size=2></FONT> </DIV>
<DIV>[root@dns /]# vi /etc/passwd<BR>[root@dns /]# service nagios restart<BR>Running configuration check...done.<BR>Stopping nagios: ....done.<BR>Starting nagios: done.<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Dale J. Chatham [mailto:dale@chatham.org]<BR><B>Sent:</B> Friday, July 10, 2009 03:08 PM<BR><B>To:</B> 'Natalie Aloi'<BR><B>Cc:</B> 'Nagios Users Mail-list'<BR><B>Subject:</B> Re: [Nagios-users] shoot not sure what is happening - cant start nagios (account unavailable)<BR><BR></FONT>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? > > [root@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 > [root@dns bin]# exit > exit > [naloi@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. > [naloi@dns bin]$ su > Password: > [root@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. > [root@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. > [root@dns bin]# cd /var/spool > [root@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 > [root@dns spool]# service httpd restart > Stopping httpd: [ OK ] > Starting > httpd: [ OK ] > [root@dns spool]# chkconfig --add nagios > [root@dns spool]# chkconfig nagios on > [root@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. > [root@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:naloi@experisdatacenters.com > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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@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 -- Dale J. Chatham dale@chatham.org _.oo. _.u[[/;:,. .odMMMMMM' .o888UU[[[/;:-. .o@P^ MMM^ oN88888UU[[[/;::-. dP^ dNMMNN888UU[[[/;:--. .o@P^ ,MMMMMMN888UU[[/;::-. o@^ NNMMMNN888UU[[[/~.o@P^ 888888888UU[[[/o@^-.. oI8888UU[[[/o@P^:--.. .@^ YUU[[[/o@^;::---.. oMP ^/o@P^;:::---.. .dMMM .o@^ ^;::---... dMMMMMMM@^` `^^^^ YMMMUP^ ^^ </BLOCKQUOTE></html>