I have a nagios server running on a centos-7 box.There is an option in a nagios server GUI to send availability report through email. I am planning to email that report to another centos machine (I will call it Nagios-client for understanding) and parse the file for my another script.
I have a postfix running on a Nagios-client and I see the report being received under "/var/spool/mail/nagios" (Thats the account where nagios-server sends the email). However I am not sure how to download the report and to further parsing/scripting with that.
Could someone guide me how to download the attachment from the received email in linux terminal?