Looks like we're having a problem with Nagios resetting the timezone when 
issuing the RESTART_PROGRAM external command.

We have an event handler set up to dynamically create some Nagios config files 
from our database, at the end of which we send the RESTART_PROGRAM command via 
the comand file.

Below, we see that when started using the RESTART_PROGRAM, the TZ gets reset to 
GMT, whereas when we restart using the standard command line, this doesn't 
happen.

Even when logging to syslog, Nagios submits the wrong time:

/var/log/messages:
Jul  1 06:53:56 nykdsr000000385 sshd[7203]: Transferred: sent 2760, received 
1872 bytes
Jul  1 06:53:56 nykdsr000000385 sshd[7203]: Closing connection to 10.57.6.18 
port 43201
Jul  1 10:53:57 nykdsr000000385 nagios: SERVICE ALERT: 
nykpsr9350;monitorWL_nypuats;OK;SOFT;2;PROCS OK: 1 process with VSZ >= 50000, 
args 'monitorWL.pl', UID = 3028246 (nypuats)
Jul  1 10:53:57 nykdsr000000385 nagios: SERVICE EVENT HANDLER: 
nykpsr9350;monitorWL_nypuats;OK;SOFT;2;restart-monitorWL!nypuats
Jul  1 06:53:59 nykdsr000000385 sshd[7449]: Connection from 10.55.6.124 port 
46363
Jul  1 06:53:59 nykdsr000000385 sshd[7449]: Failed none for root from 
10.55.6.124 port 46363 ssh2

Log messages from Nagios are in timezone different from NY (EST).

I have restarted Nagios manually and saw:
Jul  1 07:43:40 nykdsr000000385 sshd[25987]: Failed publickey for root from 
10.58.99.7 port 37957 ssh2
Jul  1 07:43:40 nykdsr000000385 sshd[25987]: Failed publickey for root from 
10.58.99.7 port 37957 ssh2

Jul  1 11:43:47 nykdsr000000385 nagios: Nagios 3.4.1 starting... (PID=25996)
Jul  1 11:43:47 nykdsr000000385 nagios: Local time is Mon Jul 01 11:43:47 
US/New_York 2013
Jul  1 11:43:47 nykdsr000000385 nagios: LOG VERSION: 2.0
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'cfdies2qkbk001' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'cfrfid1comp001' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm020000372' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm020001536' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm020001765' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm030000273' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm05574' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n01' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n02' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr000000434' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr0630' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr1831' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr1832' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05675' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n01' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n02' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n01' has no 
services associated with it!
Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n02' has no 
services associated with it!
Jul  1 11:43:48 nykdsr000000385 nagios: Finished daemonizing... (New PID=26010)

Jul  1 07:43:48 nykdsr000000385 nagios: SERVICE FLAPPING ALERT: 
nykdsr000000385;monitorWL_nypntsrv;STARTED; Service appears to have started 
flapping (20.7% change >= 20.0% threshold)
Jul  1 07:43:50 nykdsr000000385 nagios: SERVICE ALERT: 
localhost;autoservices.cfg file;OK;HARD;4;check_autogenerated_file OK - 
autoservices.cfg does not need to be regenerated
Jul  1 07:43:50 nykdsr000000385 nagios: SERVICE NOTIFICATION: 
rtb;localhost;autoservices.cfg 
file;OK;notify-service-by-bchat;check_autogenerated_file OK - autoservices.cfg 
does not need to be regenerated
Jul  1 07:44:00 nykdsr000000385 nagios: SERVICE EVENT HANDLER: 
localhost;autoservices.cfg 
file;OK;HARD;4;generate-config-file!/home/nypntsrv/nagios/etc/objects/autoservices.cfg!/home/nypntsrv/nagios/etc/objects/createservices.pl

Jul  1 07:44:03 nykdsr000000385 nagios: EXTERNAL COMMAND: RESTART_PROGRAM;
Jul  1 07:44:03 nykdsr000000385 nagios: PROGRAM_RESTART event encountered, 
restarting...

Jul  1 11:44:03 nykdsr000000385 nagios: Nagios 3.4.1 starting... (PID=26010)
Jul  1 11:44:03 nykdsr000000385 nagios: Local time is Mon Jul 01 11:44:03 
US/New_York 2013
Jul  1 11:44:03 nykdsr000000385 nagios: LOG VERSION: 2.0
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'cfdies2qkbk001' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'cfrfid1comp001' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm020000372' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm020001536' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm020001765' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm030000273' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm05574' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n01' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n02' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr000000434' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr0630' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr1831' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr1832' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05675' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n01' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n02' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n01' has no 
services associated with it!
Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n02' has no 
services associated with it!
Jul  1 11:44:04 nykdsr000000385 nagios: SERVICE FLAPPING ALERT: 
nykdsr000000385;monitorWL_nypntsrv;STARTED; Service appears to have started 
flapping (20.7% change >= 20.0% threshold)

Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Connection from 10.57.6.18 port 
59457
Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Failed none for nypntsrv from 
10.57.6.18 port 59457 ssh2
Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Found matching RSA key: 
5f:44:ae:f5:0c:c7:22:16:e1:06:85:6f:64:e7:18:76
Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Found matching RSA key: 
5f:44:ae:f5:0c:c7:22:16:e1:06:85:6f:64:e7:18:76
Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Accepted publickey for nypntsrv 
from 10.57.6.18 port 59457 ssh2
Jul  1 07:44:09 nykdsr000000385 sshd[26306]: User child is on pid 26314
Jul  1 07:44:09 nykdsr000000385 sshd[26314]: Connection closed by 10.57.6.18
Jul  1 07:44:09 nykdsr000000385 sshd[26314]: Transferred: sent 2728, received 
1872 bytes
Jul  1 07:44:09 nykdsr000000385 sshd[26314]: Closing connection to 10.57.6.18 
port 59457

Jul  1 11:44:16 nykdsr000000385 nagios: SERVICE ALERT: 
nykpsr5941;DEV3:Services1:2 process;OK;SOFT;3;PROCS OK: 1 process with VSZ >= 
100000, UID = 108005 (nypntsrv), args '-Dservices1_dev3_2_nykpsr5941'

Is this a known bug?

Eric D. Berg
IPRS Infrastructure




_______________________________________________

This message is for information purposes only, it is not a recommendation, 
advice, offer or solicitation to buy or sell a product or service nor an 
official confirmation of any transaction. It is directed at persons who are 
professionals and is not intended for retail customer use. Intended for 
recipient only. This message is subject to the terms at: 
www.barclays.com/emaildisclaimer.

For important disclosures, please see: 
www.barclays.com/salesandtradingdisclaimer regarding market commentary from 
Barclays Sales and/or Trading, who are active market participants; and in 
respect of Barclays Research, including disclosures relating to specific 
issuers, please see http://publicresearch.barclays.com.

_______________________________________________
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to