-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
The installation of EyesOfNetwork notifier unit is quiet easy.
On EyesOfNetwork 5.0 release, the notifier is already deployed in v2.0.
You can upgrade it in latest stable version to get latest functionnalities.
This will be done in three few steps.
You will get latest stable release.
With git :
git clone https://github.com/EyesOfNetworkCommunity/notifier -b 2.1-1
Next, jump to [Create database](#Create database)
With release archive :
curl -O https://github.com/EyesOfNetworkCommunity/notifier/archive/2.1-1.tar.gz
# or
wget https://github.com/EyesOfNetworkCommunity/notifier/archive/2.1-1.tar.gz
Next to get archive, you'll extract it
tar xf 2.1-1.tar.gz -C notifier-2.1-1
In notifier folder, you'll find a folder docs/db/
containing a script to create database create_database.sh
and database structure notifier.sql
.
In script, all configured variables are set for EyesOfNetwork default environment.
If you've change this on your system, you must modify scripts to adapt them.
On other system, you'll adapt them for your environment.
When you've correctly configured script, you could run it with :
./create_database.sh
Before this, you'll create link from your notifier folder :
ln -s /srv/eyesofnetwork/notifier-2.1-1 /srv/eyesofnetwork/notifier
Next step is to configure your monitoring solution to use notifier.
To this, you'll create one nagios ressource according to your notifier location path :
$USER3$ = /srv/eyesofnetwork/notifier
When you've done this, you'll create 2 commands :
eon-host-notifier :
$USER3$/bin/notifier.pl -t host -c $USER3$/etc/notifier.cfg -r $USER3$/etc/notifier.rules -T "$LONGDATETIME$" -h "$HOSTNAME$" -e "$HOSTSTATE$" -i "$HOSTADDRESS$" -n "$NOTIFICATIONTYPE$" -C "$CONTACTNAME$" -M "$CONTACTEMAIL$" -O "$HOSTOUTPUT$" -A "$HOSTGROUPNAMES$" -G "$CONTACTGROUPNAMES$" -X "$TIME$" -Y "$HOSTNOTIFICATIONNUMBER$" -N "$CONTACTPAGER$"
eon-service-notifier :
$USER3$/bin/notifier.pl -t service -c $USER3$/etc/notifier.cfg -r $USER3$/etc/notifier.rules -T "$LONGDATETIME$" -h "$HOSTNAME$" -s "$SERVICEDESC$" -e "$SERVICESTATE$" -i "$HOSTADDRESS$" -n "$NOTIFICATIONTYPE$" -C "$CONTACTNAME$" -M "$CONTACTEMAIL$" -O "$SERVICEOUTPUT$" -A "$HOSTGROUPNAMES$" -B "$SERVICEGROUPNAMES$" -G "$CONTACTGROUPNAMES$" -X "$TIME$" -Y "$SERVICENOTIFICATIONNUMBER$" -N "$CONTACTPAGER$"