Page 1 of 3

Services Will Not Start Up

Posted: Mon Nov 11, 2013 11:27 am
by matt.lilek
Disk was full, got it resized and expanded the partition in Linux. Services still will not start up. Any ideas?

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 11:43 am
by slansing
What is the exact error you're receiving?

Code: Select all

service httpd start

Code: Select all

service nagios start

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 1:01 pm
by matt.lilek
Performance Graphere is not running and cant start it. Active host checks are disabled, Active service checks are disabled and notifications are disabled

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 1:19 pm
by abrist
Sometimes the inodes do not get released until a reboot. What is the current inode and disk usage:

Code: Select all

df -h
df -i

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 1:28 pm
by matt.lilek
login as: root
[email protected]'s password:
Last login: Mon Nov 11 12:54:00 2013 from 10.41.66.143
[root@att1-nag1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
13G 6.3G 5.5G 54% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 485M 50M 410M 11% /boot
[root@att1-nag1 ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
819312 71043 748269 9% /
tmpfs 490494 1 490493 1% /dev/shm
/dev/sda1 128016 44 127972 1% /boot
[root@att1-nag1 ~]#

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 1:39 pm
by abrist
matt, the inodes look fine. Lets try a full restart of all the relevant services:

Code: Select all

service nagios stop
service ndo2db stop
service mysqld stop
service npcd stop
service postgresql stop
service httpd stop
service crond stop

Code: Select all

service nagios start
service mysqld start
service ndo2db start
service npcd start
service postgresql stsrt
service httpd start
service crond start

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 1:48 pm
by matt.lilek
done and done this is where i am at now
DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 1:52 pm
by matt.lilek
Dont know if seeing any of this helps

[root@att1-nag1 ~]# service nagios stop
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | job spec ... or kill -l [sigspec]
done.
[root@att1-nag1 ~]# service ndo2db stop
Stopping ndo2db: head: cannot open `/usr/local/nagios/var/ndo2db.lock' for readi ng: No such file or directory
done.
[root@att1-nag1 ~]# service mysqld stop
Stopping mysqld: [ OK ]
[root@att1-nag1 ~]# service npcd stop
NPCD was not running.
[root@att1-nag1 ~]# service postgresql stop
Stopping postgresql service: [ OK ]
[root@att1-nag1 ~]# service httpd stop
Stopping httpd: [ OK ]
[root@att1-nag1 ~]# service crond stop
Stopping crond: [ OK ]
[root@att1-nag1 ~]# service nagios start
Starting nagios: done.
[root@att1-nag1 ~]# service mysqld start
Starting mysqld: [ OK ]
[root@att1-nag1 ~]# service ndo2db start
Starting ndo2db: done.
[root@att1-nag1 ~]# service npcd start
An error occured while reading your config on line 1
Message was: "No variable found - exiting"
Could not start NPCD
[root@att1-nag1 ~]# service postgresql stsrt
Usage: /etc/init.d/postgresql {start|stop|status|restart|condrestart|try-restart |reload|force-reload|initdb}
[root@att1-nag1 ~]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for att1-nag1.global.amec. com
httpd: Could not reliably determine the server's fully qualified domain name, us ing 127.0.0.1 for ServerName
[ OK ]
[root@att1-nag1 ~]# service crond start
Starting crond: [ OK ]
[root@att1-nag1 ~]# ^C
[root@att1-nag1 ~]#

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 2:11 pm
by abrist

Code: Select all

Mistype on the postgres restart:
[root@att1-nag1 ~]# service postgresql stsrt
Usage: /etc/init.d/postgresql {start|stop|status|restart|condrestart|try-restart |reload|force-reload|initdb}
[root@att1-nag1 ~]# service httpd start
Try:

Code: Select all

service postgresql start

Re: Services Will Not Start Up

Posted: Mon Nov 11, 2013 2:25 pm
by matt.lilek
well thats a bit better but still back to where i was when i started. Performance Grapher is not running and cant start it. Active host checks are disabled, Active service checks are disabled and notifications are disabled