Tuesday, June 30, 2009

Zabbix monitoring tips

Random Tips

  • The zabbix server comes with some great example graphs, copy these to your own templates and every host linked with the template will have them available to use as screens.
  • You can disable an item/trigger inherited from a template for just a single host by disabling it in the hosts view (not the template).
  • If you delete an item, triggers depending upon that item will automatically be deleted.
  • The multi-value graphs you can create under the graphs tab are way better than the 'simple
    graph' type available in the screens menu.
  • You can automatically add hosts discovered through automatic discovery to templates (and do many other things) using actions under the actions tab.


I got the following error from the zabbix agent daemon (zabbix_agentd):

Can't find shared memory for collector

Restarting didn't help, but deleting the shared memory objects did:

ipcs -ma to list the objects
ipcrm to delete the objects owned by the zabbix user

Restarting the zabbix daemon and killing off the defunct processes got me back into business.

Tuesday, June 23, 2009

Creating new server certificates with an existing CA

Creating new server certificates with an existing CA, using unencrypted server keys so you don't get prompted when apache starts:
openssl req -new -config openssl.cnf -nodes -keyout newkey.pem -out newreq.pem -days 1825
openssl ca -config openssl.cnf -policy policy_anything -out newcert.pem -infiles newreq.pem

Wednesday, June 3, 2009

Firefox XUL dialog box transparent by default

This took far too long to figure out. I was opening a dialog in XUL in my firefox plugin, but it was arriving with a transparent background, which made it render really weirdly. The solution is to put the following in your css for the dialog tag:

background-color: menu !important;
opacity: 1.0;

My guess is that the background is transparent so you can see images set by firefox themes/skins, but it is pretty annoying!