Last week I decided to monitor my todolist with nagios. This mainly because I have
the tendency to delay some todos for a very very long time. To be able to do
this I had to include the date of entry of a todo item to my todo list format.
The original format of my todo list can be found
here.
I changed the format to
- <context>:<year>-<month>-<day>: <description>.
I also had to change the addfolds.pl filter to be able to ignore the date when
sorting and removing duplicates. The new addfolds.pl can be found
here.
For security reasons I do not want the nagios user to be able to read my todo list.
Hence I use
check_jnieuwen.py to read the
nagios status information from a file. Which uses a simple fileformat which is probably
easy to understand when looking at the code.
The next step is of course getting the status information in the status file.
This is accomplished with the
check_todo_age.py
script. This script is run hourly from cron.