locking for external command pipe?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
grimm26
Posts: 36
Joined: Wed Dec 12, 2012 1:57 pm

locking for external command pipe?

Post by grimm26 »

I was browsing my Nagios log for errors and found some broken up external commands.

Code: Select all

[Wed Aug 21 05:05:20 2013] Warning: Unrecognized external command -> P;
[Wed Aug 21 05:05:20 2013] Warning: Unrecognized external command -> PROCESS_SERVICE; 
[Wed Aug 21 05:05:20 2013] Warning: Unrecognized external command -> PROCESS; 
[Wed Aug 21 05:05:20 2013] Warning: Unrecognized external command -> PROCESS_SERVICE_CHECK_;
[Wed Aug 21 19:15:04 2013] Warning: Unrecognized external command -> P[1377112504] PROCESS_SERVICE_CHECK_RESULT;HOST1;SERVICE1;0;SERVICE1 OK
(The date expansion is my own)
I know that my server was under a crazy heavy load and iowait was through the rood when this happened so there were extenuating circumstances, but...
Should I be using file locking when writing to the named pipe? Does nagios itself use and/or honor locking on the pipe? Is there a chance of collision of messages coming into the pipe like my last error message seems to indicate?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: locking for external command pipe?

Post by lmiltchev »

Send us your configs via PM, when/if get an approval.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked