Think that a restart might run the risk of 2 processes running if nagios is currently up, as it has no information on the current process pid it needs tyo stop due to the missing lockfile… killall -9 nagios first.
thx you so much guys for your reply now i know… now i i get it… i think im an idiot… lol :D… my co-intern tell me to stop the nagios… so when i stop it… it stops… then a while ill stop it again so that’s why i got no lock file found… so im confuse so… what i did was,
[root@nagios5 nagios]# /sbin/service nagios restart
Running configuration check…done
Stopping nagios: No lock file found in /var/run/nagios.pid
Starting nagios: done.
so nagios starts…
[root@nagios5 nagios]# /etc/init.d/nagios status
nagios (pid 32372) is running…
if nagios is not running you dont have a nagios.pid file… what i did first was ill copy a nagios.pid from other server… woooot… its not even solve my problem… so if nagios is running… nagios.pid comes…
so thank you so much! thomas, strides and albin for your replies!
hope you help me once again in ndoutils soon im busy now in installing smokeping in CentOS5 thx again!