Update Nagios Web Page Title
I have several Nagios web sites I monitor. Problem is you open multiple tabs in firefox and all you see is the Nagios icon and the word “Nagios” so I cant tell which tab is for which server.
So I think, I will just update the /usr/share/nagios/html/index.php file and find the line that says “<title>Nagios: …..” and change it to read “<title>MySite Nagios:…”
A week later – the tab was back to the Nagios icon and the word “Nagios”. There was an update.
So, I created the following entry in the root crontab file on each server that I have Nagios
10 10 * * * sed -i 's/title>Nagios:/title>MySite Nagios:/g' /usr/share/nagios/html/index.php
now – once a day it checks to see if the index file was updated and fixes the title.
Tested on Fedora 39