Following the writeup here: /content/how-enable-external-command-option . I've trying to setup a distributed Nagios setup.
The remote Nagios creates nagios.cmd.[TIME] and described above. If I put a any single nagios.cmd file in the directory I get the expected results. The command is unput, and the file deleted.
When there is 2 or more files in that directory, nagios simply crashes and refuses to restart unless there is zero or at most one cmd file in that directory.
My nagios.cfg file is the default from the install. I get the same behaviour from 1.4.1 and 1.5.0
Here is the Windows log of the crash:
Nagwin_Nagios: PID 3464: service `Nagwin_Nagios' failed: signal 11 raised
Here are two sample files:
nagios.cmd.1358971116716
[1358971116] PROCESS_SERVICE_CHECK_RESULT;Slave1;Disk Drives;0;OK: All drives within bounds. | C:\ %=61%;10;5 C:\=15.69G;4;2;0;39.99 D:\ %=99%;10;5 D:\=780.29M;4095;2047.8;0;40956.99
nagios.cmd.1358971146777
[1358971146] PROCESS_SERVICE_CHECK_RESULT;Slave1;Drive C:;0;C:\ Label: Serial Number 7e50c9be: 39%used(16071MB/40958MB) (90%) : OK | C:\_Label:__Serial_Number_7e50c9be=16071MB;36862;38910;0;40958
We will try to reproduce the problem and develop a fix for it.
I get the same result when I "Enable all checks for host" and include the host too.
As 2 files are dropped in the rw directory. Nagios then crashes.
GR
Nagwin 1.5.1 is now released and contains a patch addressing your problem. You can download it from your customer page.