<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Looks like we’re having a problem with Nagios resetting the timezone when issuing the RESTART_PROGRAM external command.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Even when logging to syslog, Nagios submits the wrong time:</div>
<div> </div>
<div>/var/log/messages:</div>
<div><font size="1">Jul  1 06:53:56 nykdsr000000385 sshd[7203]: Transferred: sent 2760, received 1872 bytes</font></div>
<div><font size="1">Jul  1 06:53:56 nykdsr000000385 sshd[7203]: Closing connection to 10.57.6.18 port 43201</font></div>
<div><font size="1">Jul  1 <font color="#FF0000"><b>10:53:57</b></font> nykdsr000000385 nagios: SERVICE ALERT: nykpsr9350;monitorWL_nypuats;OK;SOFT;2;PROCS OK: 1 process with VSZ >= 50000, args 'monitorWL.pl', UID = 3028246 (nypuats)</font></div>
<div><font size="1">Jul  1 <font color="#FF0000"><b>10:53:57</b></font> nykdsr000000385 nagios: SERVICE EVENT HANDLER: nykpsr9350;monitorWL_nypuats;OK;SOFT;2;restart-monitorWL!nypuats</font></div>
<div><font size="1">Jul  1 06:53:59 nykdsr000000385 sshd[7449]: Connection from 10.55.6.124 port 46363</font></div>
<div><font size="1">Jul  1 06:53:59 nykdsr000000385 sshd[7449]: Failed none for root from 10.55.6.124 port 46363 ssh2</font></div>
<div> </div>
<div>Log messages from Nagios are in timezone different from NY (EST).</div>
<div> </div>
<div>I have restarted Nagios manually and saw:</div>
<div><font size="1">Jul  1 07:43:40 nykdsr000000385 sshd[25987]: Failed publickey for root from 10.58.99.7 port 37957 ssh2</font></div>
<div><font size="1">Jul  1 07:43:40 nykdsr000000385 sshd[25987]: Failed publickey for root from 10.58.99.7 port 37957 ssh2</font></div>
<div> </div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Nagios 3.4.1 starting... (PID=25996)</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Local time is Mon Jul 01 11:43:47 US/New_York 2013</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: LOG VERSION: 2.0</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'cfdies2qkbk001' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'cfrfid1comp001' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm020000372' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm020001536' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm020001765' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm030000273' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm05574' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n01' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n02' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr000000434' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr0630' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr1831' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykdsr1832' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05675' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n01' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n02' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n01' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:47 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n02' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:43:48 nykdsr000000385 nagios: Finished daemonizing... (New PID=26010)</span></font></div>
<div> </div>
<div><font size="1">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)</font></div>
<div><font size="1">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</font></div>
<div><font size="1">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</font></div>
<div><font size="1">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</font></div>
<div> </div>
<div><font size="1"><span style="background-color:#00FFFF"><b>Jul  1 07:44:03 nykdsr000000385 nagios: EXTERNAL COMMAND: RESTART_PROGRAM;</b></span></font></div>
<div><font size="1"><span style="background-color:#00FFFF"><b>Jul  1 07:44:03 nykdsr000000385 nagios: PROGRAM_RESTART event encountered, restarting...</b></span></font></div>
<div> </div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Nagios 3.4.1 starting... (PID=26010)</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Local time is Mon Jul 01 11:44:03 US/New_York 2013</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: LOG VERSION: 2.0</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'cfdies2qkbk001' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'cfrfid1comp001' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm020000372' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm020001536' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm020001765' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm030000273' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm05574' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n01' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsm05673n02' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr000000434' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr0630' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr1831' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykdsr1832' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05675' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n01' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05801n02' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n01' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">Jul  1 11:44:03 nykdsr000000385 nagios: Warning: Host 'nykpsm05802n02' has no services associated with it!</span></font></div>
<div><font size="1"><span style="background-color:#FFFF00">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)</span></font></div>
<div> </div>
<div><font size="1">Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Connection from 10.57.6.18 port 59457</font></div>
<div><font size="1">Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Failed none for nypntsrv from 10.57.6.18 port 59457 ssh2</font></div>
<div><font size="1">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</font></div>
<div><font size="1">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</font></div>
<div><font size="1">Jul  1 07:44:09 nykdsr000000385 sshd[26306]: Accepted publickey for nypntsrv from 10.57.6.18 port 59457 ssh2</font></div>
<div><font size="1">Jul  1 07:44:09 nykdsr000000385 sshd[26306]: User child is on pid 26314</font></div>
<div><font size="1">Jul  1 07:44:09 nykdsr000000385 sshd[26314]: Connection closed by 10.57.6.18</font></div>
<div><font size="1">Jul  1 07:44:09 nykdsr000000385 sshd[26314]: Transferred: sent 2728, received 1872 bytes</font></div>
<div><font size="1">Jul  1 07:44:09 nykdsr000000385 sshd[26314]: Closing connection to 10.57.6.18 port 59457</font></div>
<div> </div>
<div><font size="1">Jul  1 <font color="#FF0000"><b>11:44:16</b></font> 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'</font></div>
<div> </div>
<div>Is this a known bug?</div>
<div> </div>
<div><font face="Arial, sans-serif" size="1" color="#808080">Eric D. Berg</font></div>
<div><font face="Arial, sans-serif" size="1" color="#808080">IPRS Infrastructure </font></div>
<div> </div>
<div> </div>
<div> </div>
</font>

<P>_______________________________________________</P>
<P>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: <A 
href="http://www.barclays.com/emaildisclaimer">www.barclays.com/emaildisclaimer</A>.</P>
<P>For important disclosures, please see: <A 
href="http://www.barclays.com/salesandtradingdisclaimer">www.barclays.com/salesandtradingdisclaimer</A> 
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 <A 
href="http://publicresearch.barclays.com">http://publicresearch.barclays.com</A>.</P>
<P>_______________________________________________</P>
</body>
</html>