Observium
Tasks
Enable email alerts (with Office365)
edit the file /opt/observium/config.php and set it like this:
$config['email']['from'] = "system@cool.com";
$config['email']['backend'] = 'smtp';
$config['email']['smtp_host'] = 'smtp.office365.com';
$config['email']['smtp_port'] = 587;
$config['email']['smtp_timeout'] = 10;
$config['email']['smtp_secure'] = 'tls';
$config['email']['smtp_auth'] = TRUE;
$config['email']['smtp_username'] = 'system@cool.com';
$config['email']['smtp_password'] = 'password';
$config['email']['from'] = "Observium <observium@contoso.com>";
$config['email']['backend'] = 'smtp';
$config['email']['smtp_host'] = 'contoso-com.mail.protection.outlook.com';
$config['email']['smtp_port'] = 25;
$config['email']['smtp_timeout'] = 10;
$config['email']['smtp_secure'] = 'tls';
Test it:
/opt/observium/test_alert.php -c 1
1 is the first contact ID (list here: http://observium.company.com/contacts/)
Rename a device
/opt/observium/rename_device.php san300_04 san300_03
Rediscover a host
/opt/observium/discovery.php -h all
/opt/observium/discovery.php -h myhost
Cannot ping devices
chmod +s /usr/bin/fping
Also check DNS resolution in /etc/network/interfaces
:
dns-nameservers 192.168.0.1
dns-search mycompany.priv
Upgrade community edition
https://docs.observium.org/updating/
cd /opt
mv observium observium_old
wget -Oobservium-community-latest.tar.gz https://www.observium.org/observium-community-latest.tar.gz
tar zxvf observium-community-latest.tar.gz
mv /opt/observium_old/rrd observium/
mv /opt/observium_old/logs observium/
mv /opt/observium_old/config.php observium/
/opt/observium/discovery.php -u
/opt/observium/discovery.php -h all
rm -rf observium_old