Skip to content
Robert Maxwell Professional Consulting
  • Home
  • Articles

Category: Monitoring

nagios.log Date/Time Conversion to Human Readable

Posted on April 29, 2018 | by Bobby

Sometimes, you need to parse a nagios.log, and even more so, need to be able to read the date and time of a logged event.  Here’s a simple command-line to do that:


cat /usr/local/nagios/var/nagios.log | perl -pe 's/(\d+)/localtime($1)/e'

Posted in Monitoring
© 2025 Robert Maxwell Professional Consulting | Bootstrap WordPress Theme