[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - nagios.cmd not being processed after upgrade of nagios to3.2
Cheshire Cat Computing
http://steveshipway.org/forum/

nagios.cmd not being processed after upgrade of nagios to3.2
http://steveshipway.org/forum/viewtopic.php?f=22&t=3946
Page 1 of 1

Author:  jsbsmd [ Sun Sep 27, 2009 12:39 pm ]
Post subject:  nagios.cmd not being processed after upgrade of nagios to3.2

ever since i upgraded nagios, it doesn't seems to want to process the nagios.cmd

the event entries are getting into the file:

eg: nagios.cmd
[1254008046] PROCESS_SERVICE_CHECK_RESULT;jsb-pc2;EventLog Agent;2;HEARTBEAT [CRIT #2]: Service halting

but it is not getting into the console

eg: message.log

Sep 26 19:33:38 ubuntu710s nagios: SERVICE ALERT: jsb-pc2;EventLog Agent;WARNING;HARD;1;HEARTBEAT [WARN #1]: Service starting
Sep 26 19:33:38 ubuntu710s nagios: PASSIVE SERVICE CHECK: jsb-pc2;EventLog Agent;2;HEARTBEAT [CRIT #2]: Service halting
Sep 26 19:33:38 ubuntu710s nagios: SERVICE ALERT: jsb-pc2;EventLog Agent;CRITICAL;HARD;1;HEARTBEAT [CRIT #2]: Service halting
Sep 26 19:33:38 ubuntu710s nagios: SERVICE NOTIFICATION: nagiosadmin;jsb-pc2;EventLog Agent;CRITICAL;notify-service-by-email;HEARTBEAT [CRIT #2]: Service halting

eg:nagios.log

1254008018] PASSIVE SERVICE CHECK: olympian-server1;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1254008018] PASSIVE SERVICE CHECK: jsb-pc2;EventLog Agent;1;HEARTBEAT [WARN #1]: Service starting
[1254008018] SERVICE ALERT: jsb-pc2;EventLog Agent;WARNING;HARD;1;HEARTBEAT [WARN #1]: Service starting
[1254008018] PASSIVE SERVICE CHECK: jsb-pc2;EventLog Agent;2;HEARTBEAT [CRIT #2]: Service halting
[1254008018] SERVICE ALERT: jsb-pc2;EventLog Agent;CRITICAL;HARD;1;HEARTBEAT [CRIT #2]: Service halting
[1254008018] SERVICE NOTIFICATION: nagiosadmin;jsb-pc2;EventLog Agent;CRITICAL;notify-service-by-email;HEARTBEAT [CRIT #2]: Service halting

I never changed any of the cfg files. any ideas on what is happening?

Author:  stevesh [ Mon Sep 28, 2009 5:50 pm ]
Post subject:  Re: nagios.cmd not being processed after upgrade of nagios to3.2

nagios.cmd is supposed to be a pipe, not a file.

Stop nagios, run 'mv nagios.cmd nagios.sav' and restart nagios. You should see a 'nagios.cmd' created that is a 'p' special file. Then 'cat nagios.sav > nagios.cmd' and 'rm nagios.sav'.

This can sometimes happen if you are running other utilities (like nsca) that try to write to nagios.cmd when the nagios process is not running (and so the nagios.cmd pipe does not exist)

Also make sure the nagios process has write permission to the directory containing the nagios.cmd so it can (re)createit if necessary

Author:  jsbsmd [ Tue Sep 29, 2009 2:29 am ]
Post subject:  Re: nagios.cmd not being processed after upgrade of nagios to3.2

thanks for the help. i think i know whats going on. In the previous version 3.06, for some reason it did not create the nagios.cmd file when I restarted so I created a script to do so. re:

/etc/init.d/nagios stop
/etc/init.d/postfix stop
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/postfix start
/etc/init.d/nagios start
rm /usr/local/nagios/var/rw/nagios.cmd
touch /usr/local/nagios/var/rw/nagios.cmd
chmod 666 /usr/local/nagios/var/rw/nagios.cmd
chown nagios /usr/local/nagios/var/rw/nagios.cmd
chgrp nagios /usr/local/nagios/var/rw/nagios.cmd
ls -l /usr/local/nagios/var/rw/nagios.cmd

this does not create the nagios.cmd with the pipe attribute.

BTW:

do you have a fix for the dll registering issue for 1.9.2 agent on windows server 2003 sp2? I know it's probably just a nag message.

re:

The description for Event ID ( 0 ) in Source ( NagiosEventLog ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Reading Security event log...

Author:  stevesh [ Thu Oct 01, 2009 9:35 am ]
Post subject:  Re: nagios.cmd not being processed after upgrade of nagios to3.2

Sorry, I don't have a fix for the DLL registering issue; I'm having problems working out just how to effectively create a resource DLL that will work for Windows messages like this (I'm a UNIX programmer really). It worked once in the past but no longer...

Fortunately it is only a cosmetic issue, although I admit its irritating. I just dont have the time at the moment to play with it.

Author:  Liandella [ Wed Sep 28, 2011 1:12 am ]
Post subject:  Re: nagios.cmd not being processed after upgrade of nagios to3.2

Hello!! and Why does Nagios die after a reload signal is sent? Thanks in advance :)

Author:  stevesh [ Wed Sep 28, 2011 12:56 pm ]
Post subject:  Re: nagios.cmd not being processed after upgrade of nagios to3.2


Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/