
Blosxom4Nagios requires a couple of non-standard CPAN modules, so the first
thing to do is install them, either from CPAN (http://www.cpan.org/), or
via your package management system. You need to install:

- Filter::Simple
- Logger::Syslog


Blosxom4Nagios installation itself is best done as the nagios user. 
Blosxom4Nagios assumes it's going to be installed into /var/log/nagios/blosxom,
and appear under the /nagios/blosxom web namespace.


# su - nagios
$ VERSION=0.x.y
$ cd /var/log/nagios
$ tar zxvf /path/to/blosxom4nagios-$VERSION.tar.gz
$ mv blosxom4nagios-$VERSION blosxom
$ cd blosxom
$ bin/setup
### then check and tweak the configs as appropriate
$ cd config
$ ls
$ vi blosxom.conf atomfeed rss20
### etc. Once done ...
$ exit


Then, as root, you need to add blosxom4nagios into your webserver config
e.g. on RHEL/CentOS/Fedora platforms:

# cd /etc/httpd/conf.d
# ln -s /var/log/nagios/blosxom/config/blosxom4nagios.conf
# service httpd restart

And you also need to make the /var/log/nagios/blosxom/state directory
writeable by the user your webserver runs as e.g.:

# chgrp apache /var/log/nagios/blosxom/state
# chmod g+ws /var/log/nagios/blosxom/state



Include the 'commands_blosxom.cfg' file from your main nagios.cfg file:

  cfg_file=/var/log/nagios/blosxom/config/commands_blosxom.cfg

and then the 'host-notify-via-blosxom' and 'notify-via-blosxom' notify commands 
are available to use in your contact definitions e.g.

  define contact{
        contact_name                    nagios
        alias                           Nagios Admin
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-via-blosxom
        host_notification_commands      host-notify-via-blosxom
        email                           sysadmin@example.com
        }

And remember to restart nagios after your changes! ;-)

