LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2012, 05:29 AM   #1
pjonkers
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 05-22-2012, 07:05 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
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
 
Old 05-30-2012, 04:31 AM   #3
pjonkers
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ould not create external command file '/usr/local/nagios/var/rw/nagios.cmd gerard.zapata Linux - Newbie 2 09-14-2012 01:57 PM
Issue sg_modes cmd at cmd line, want to see the cmd in binary form NuUser Linux - Newbie 1 03-28-2012 08:08 AM
files are created in the future while date cmd output is perfectly fine zvika Linux - Newbie 1 10-16-2008 11:03 AM
Nagios, NRPE, cmd permissions problems Rush_898 Linux - Server 2 03-17-2008 07:18 AM
Listing Created Users Via CMD Prompt Verbal Kint Linux - General 1 09-14-2006 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration