Sat, February 17, 2018 ยท 1 min read

Changing nagios main page on fedora 26

Changing nagios main page on fedora 26

  1. To setup Nagios refer to the Nagios installation guide.

  2. When Nagios is installed, the default page is shown. To change it to the service page when opening Nagios, edit the file /usr/share/nagios/html/index.php:

[root@server .../nagios/html]# vi /usr/share/nagios/html/index.php

Change $url = 'main.php'; to $url = '/nagios/cgi-bin/tac.cgi';

For more information on status CGI, refer to the Nagios Core documentation.

[root@server .../nagios/html]# systemctl restart nagios
  1. Changing Nagios contact email address:
vi /etc/nagios/objects/contacts.cfg
email nagios@localhost

Change this to root@localhost.

  1. Set email forwarder from root to cipher:
vi /etc/aliases
root: cipher