With nagios and more, this guy uses a simple heuristic to decide how worried we should be, and what level should be set.
His blog:
http://blog.iwebsolutions.co.uk/2009/07/knowing-the-network/
Haha, same for me, I don't really know how this can be any useful but I started writing it anyway so it's done when I come up with a use case.
Maybe it could be used with a script that counts the number of emails in your inbox and estimates your "work-to-do level", or something alike.
It's possible to parse the real one out of this page:
http://www.freerepublic.com/~defcon/
It's a pretty clean page. If I was better with awk and friends, I'd just paste the line here, but alas...
It's not very elegant but I think it will do the job
a=`wget -qO - http://www.freerepublic.com/~defcon/ | grep -oP "We are now at DefCon level: (<[^>]+>){2}[1-5]"`;echo ${a:(-1)}
Ratings & Comments
5 Comments
With nagios and more, this guy uses a simple heuristic to decide how worried we should be, and what level should be set. His blog: http://blog.iwebsolutions.co.uk/2009/07/knowing-the-network/
Can't see a real use for this plasmoid for now but i think it should be easy possible to find one. Funny idea :)
Haha, same for me, I don't really know how this can be any useful but I started writing it anyway so it's done when I come up with a use case. Maybe it could be used with a script that counts the number of emails in your inbox and estimates your "work-to-do level", or something alike.
It's possible to parse the real one out of this page: http://www.freerepublic.com/~defcon/ It's a pretty clean page. If I was better with awk and friends, I'd just paste the line here, but alas...
It's not very elegant but I think it will do the job a=`wget -qO - http://www.freerepublic.com/~defcon/ | grep -oP "We are now at DefCon level: (<[^>]+>){2}[1-5]"`;echo ${a:(-1)}