The Dude Backup parser

Hello all.
You must know, there is a feature in The Dude - you can make an Service or an Device “acked”. Making service acked is usefull when you know the problem and do not want to have alert on it (for a time). When service is in “acked” state and it is unavailable it becomes blue (not red as when is unacked) by default, when service becomes available it becomes green.
It is good feature, but making services acked is dangerous because you can forget you made it acked and would not receive and alert when service will go from up state to down state, because it will go not in down, but in acked state. May be it is not so, if there is only one The Dude admin, but if you work in a team on admins…
There is no such a feature in The Dude to check the services in acked state. The only way to check it, is to make The Dude config backup and to look in it. But it is not so simple.
That is why I’v created python script to parse The Dude configs.
Have a look at screenshots
screen0.png
screen1.png
You can download and use it. It is under GPL
dudeparser.zip (16.3 KB)
In order to make it work you have to install python 2.7 from this site
http://www.python.org/download/
and PyQt-Py2.7-gpl-4.7.4-3.exe
from this site
http://www.riverbankcomputing.co.uk/software/pyqt/download
It is also tested and works under FreeBSD 8.0 + KDE4 + python 2.6 +PyQt4

Enjoy.

If someone has a file that doesn’t load or an upgrade that doesn’t work and loses all the maps or what have you, could the trouble with the XML be discovered through this tool?

I have often thought it would be nice to have a tool to verify that there is not any corrupt data in the backup, or a way to repair it. I have not had this issue my self but it seems common enough. If I did have a problem like that I would have tried an XML editor on the backup to see if I could find the trouble.

I hope that since they are using a database now it is much easier to keep the dude data file from breaking.

As usual awesome work gsandul.
Lebowski

If someone has a file that doesn’t load or an upgrade that doesn’t work and loses all the maps or what have you, could the trouble with the XML be discovered through this tool?

No it is not possible.