Red Hat Bugzilla – Bug 455934
Not all Monitoring logs (especially error logs) logs date/time
Last modified: 2009-09-10 14:48:41 EDT
Description of problem:
While troubleshooting customer issues it's found that not all Monitoring logs
log the date/time, which makes troubleshooting more difficult (or "exciting", if
you prefer), than it needs to be.
Examples from /var/log/nocpulse/ -
Net::SMTP=GLOB(0xa2fb1a8)>>> MAIL FROM:<name@server>
Net::SMTP: Unexpected EOF on command channel at
/usr/lib/perl5/site_perl/5.8.5/NOCpulse/Notif/Mailer.pm line 38
Net::SMTP=GLOB(0xa1f57d8)>>> EHLO localhost.localdomain
20749 Unable to acquire lock on /opt/notification/tmp/01_1212826628_010211_001
/usr/lib/perl5/site_perl/5.8.5/NOCpulse/Notif/AlertFile.pm line 106.
Version-Release number of selected component (if applicable):
Satellite 4.0, 5.0, 5.1 (didn't test earlier versions)
Steps to Reproduce:
1. Enable Monitoring/Monitoring Scout on satellite;
2. Create some probes;
3. Make probes meet criteria to send notification, but give it a hard time, like
stopping sendmail service in the middle of it, so it'll spit out some errors to
above mentioned error logs.
Date/time is not logged in all monitoring logs.
Date/time logged in all monitoring logs.
Low priority monitoring bug. We will do this if its easy and won't destabalize anything. Read: this could be punted.
Commited as 694427cf60ae4c401e31a5a94c1b5b978624f987 and 85d8e45e7acd9a45a15034f46ab6fe70d1605167
Mass moving to ON_QA
[root@grandprix nocpulse]# cat NotifLauncher-error.log
2009-02-17 14:36:43 no file /etc/notification/generated/customers.ini No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/NotificationIni.pm line 85.
2009-02-17 14:36:45 no file /etc/notification/generated/customers.ini No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/NotificationIni.pm line 85.
2009-02-17 14:36:47 no file /etc/notification/generated/customers.ini No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/NotificationIni.pm line 85.
Tested most of the logs.. a few more were empty..
marking as verified
For release notes:
Monitor logs now include date and time for every record in log files.
I've added the following to the release notes. Thanks for the addition!
Monitoring log files now include date and timestamps for every record.
Verified in stage -> RELEASE_PENDING
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.