We are moving into the real world now, creating something that can turn out handy for your daily routine; during this process, we will have a look at the common pitfalls in coding and how to make our script reliable. Be it a short or long script, we must always ask ourselves the same questions:
- What do we really want to accomplish?
- How much time do we have?
- Do we have all the resources needed?
- Do we have the knowledge required for the task?
We will start coding with a Nagios plugin, which will give us a broad understanding of how this monitoring system is and how to make a script dynamically interact with other programs.