LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   nagios.cmd file not created after reboot ubuntu server (https://www.linuxquestions.org/questions/linux-software-2/nagios-cmd-file-not-created-after-reboot-ubuntu-server-946267/)

pjonkers 05-22-2012 05:29 AM

nagios.cmd file not created after reboot ubuntu server
 
Hello all,

first of all, i am a newbey with linux :( but learning on the job.

i have setup a couple of nagios servers on the way and it is going fine.

config is as follows
ubuntu latest version
nagios 3.3.1
check_mk 1.2.0b1
pnp4nagios
nagiosql 3.2.0
nagvis

all setup by hand and it all works :)

the problem that i have now is when i restart te server, the nagios.cmd pipe is not created. Nagios is started and is working fine.
Check_mk depends on the nagios.cmd pipe file and also some other applications.

when I restart nagios with /etc/init.d/nagios restart the file is created en the rest is then also working again.

how can i solve this issue during restart of the servers.

regards

Peter JOnkers

chrism01 05-22-2012 07:05 PM

Don't know how Ubuntu works, but on RHEL
Code:

chkconfig --list|grep nagios
nagios          0:off  1:off  2:on    3:on    4:on    5:on    6:off


pjonkers 05-30-2012 04:31 AM

Hello Chris,

Sorry for the late response but whe had some holidays here :(

i have tried your sugestion bit it didn't help.
is seems te be a timing issue somewhere.
Nagios and apache are started after the restart of the server, but the nagios pipe is not generated.
is it possible to wait for execution of the ncpd command until the nagios.cmd file is created.
or maybe better. Let nagios check that nagios.cmd is generated otherwise restart the nagios servers?

cheers

Peter


All times are GMT -5. The time now is 04:06 AM.