Change default screen in Nagios Core 4.4.5

The main default screen in Nagios does not provide any useful host or service information. This can easily be changed.

Edit

/usr/local/nagios/share/index.php

Towards the top, look for the highlighted line:

<?php
// Allow specifying main window URL for permalinks, etc.
$url = 'main.php';

Change this to the page of your choice. CGI rendered pages can be used, be sure to qualify the path…

$url = 'cgi-bin/status.cgi?hostgroup=all&style=hostdetail';

or

$url = 'cgi-bin/tac.cgi';

…are two common choices.

 

From this:

To this:

 

F5 LTM Monitoring Active/Standby status

Monitor F5 LTM Active/Standby status via SNMP:

Use SNMPWALK to get all instances of Cluster High Availability Status:

[nagios1]# snmpwalk -v 2c -c [community string] F5HOST1 F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".1 = INTEGER: standby(3)
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".2 = INTEGER: unknown(0)
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".3 = INTEGER: unknown(0)
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".4 = INTEGER: unknown(0)

[nagios1]# snmpwalk -v 2c -c [community string] F5HOST2 F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".1 = INTEGER: active(4)
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".2 = INTEGER: unknown(0)
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".3 = INTEGER: unknown(0)
F5-BIGIP-SYSTEM-MIB::sysClusterMbrHaState."default".4 = INTEGER: unknown(0)