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
© 2026 Robert Maxwell Professional Consulting | Bootstrap WordPress Theme

Powered by CookieAdmin
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by CookieAdmin