Tag Archives: script

Visualize your nagios configuration

It’s unfair: The database admin got his DB layout, net network admin the network diagram. The sysadmin looses.

Now you’re able to plot the Nagios configuration with plot-config.pl to compete with others! ¬†And it comes in handy to show it off, search for errors or documentation.

plot-config.pl walks through nagios configuration files and draws depencies between hosts (parent-child) and (optionally) shows the services per host. You can plot the graphviz graph bottom-up or left-right and even neato or circo graphs. Though the output is a colored SVG it’s jut a quick & dirty hack.

Here an example output of plot-config.pl (without services):

very minimal output of plog-config.pl
very minimal output of plog-config.pl

gentoo: stablize a ~x86 system

Of course I run gentoo and I like it to stick to the latest (masked) Gnome version. As it is quite a task to control every package prior to adding it to package.keywords, I worte upgrade_all.

‘upgrade_all’ walks through ‘world’ and finds all packages that would be downgraded on next emerge, shows the according eix-stanza and prompts before adding a stablilizing line to package.keywords. Though it’s a quick shot it works for me, so feel free to edit and extend it, but don’t forget to let me know.