Dev, Manage, Deploy

...and things in between...

Posts tagged munin

2 notes

Every day, new tasks come in with email, and after a days work, its hard to determine if you really accomplished anything. So I figured I would track everything that I mark as a todo in my inbox. 
I also needed to separate private stuff with work-stuff, and since I have a privat email with all that stuff and a work-email for all work-related, it was easy. 
I use labels in thunderbird to mark things with different status, the mailserver is running dovecot and figuring out where dovecot stored the labels required some googling. Since mails are stored in Maildir format, the label is stored in the  filename of the email. I just needed to find what character represented my label. Theres a special file called dovecot-keywords in the Maildir-folder, that lists all labels and their character. Finding the correct one needed some trial and error, since the labels name is not synced over to imap.
See the script below, which uses grep and some bash stuff to find the right emails, and then uses wc to count them. Really simple and could probably count wrong in some cases, but its good enough for some basic tracking.
The big dip in the beginning of week 2 was basically a change in how the script worked, and some inboxcleaning. 

Every day, new tasks come in with email, and after a days work, its hard to determine if you really accomplished anything. So I figured I would track everything that I mark as a todo in my inbox. 

I also needed to separate private stuff with work-stuff, and since I have a privat email with all that stuff and a work-email for all work-related, it was easy. 

I use labels in thunderbird to mark things with different status, the mailserver is running dovecot and figuring out where dovecot stored the labels required some googling. Since mails are stored in Maildir format, the label is stored in the  filename of the email. I just needed to find what character represented my label. Theres a special file called dovecot-keywords in the Maildir-folder, that lists all labels and their character. Finding the correct one needed some trial and error, since the labels name is not synced over to imap.

See the script below, which uses grep and some bash stuff to find the right emails, and then uses wc to count them. Really simple and could probably count wrong in some cases, but its good enough for some basic tracking.

The big dip in the beginning of week 2 was basically a change in how the script worked, and some inboxcleaning. 

Filed under munin mail

13 notes

Tracking redmine ticket overview with munin


I got frustrated over the overview in time with graphing plugins for redmine. The ones I tried only showed me a growing curve of added tickets, it didnt show any progress or positive feedback. 

I wanted the positive feedback, so I created a quick script which took the atom ticket-list and parsed through it and counted all tickets depending on status:

Just add it to the munin plugin-folder, and it will “just” work. It would be possible to adjust it a bit, so the url comes from the munin plugin config. 

Filed under munin redmine php