shoot not sure what is happening - cant start nagios (account unavailable)
Dale J. Chatham
dale at chatham.org
Fri Jul 10 21:08:34 CEST 2009
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 at 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 at dns bin]# exit
> exit
> [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.
> [naloi at dns bin]$ su
> Password:
> [root at 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 at 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 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
> [root at dns spool]# service httpd restart
> Stopping httpd: [ OK ]
> Starting
> httpd: [ OK ]
> [root at dns spool]# chkconfig --add nagios
> [root at dns spool]# chkconfig nagios on
> [root at 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 at 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 at 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 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
--
Dale J. Chatham
dale at chatham.org
_.oo.
_.u[[/;:,. .odMMMMMM'
.o888UU[[[/;:-. .o at P^ MMM^
oN88888UU[[[/;::-. dP^
dNMMNN888UU[[[/;:--. .o at P^
,MMMMMMN888UU[[/;::-. o@^
NNMMMNN888UU[[[/~.o at P^
888888888UU[[[/o@^-..
oI8888UU[[[/o at P^:--..
.@^ YUU[[[/o@^;::---..
oMP ^/o at P^;:::---..
.dMMM .o@^ ^;::---...
dMMMMMMM@^` `^^^^
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
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