[Nagios-devel] [PATCH] add hostname to html title

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH] add hostname to html title

Post by Guest »

This is a multi-part message in MIME format.
--------------010708060507050908080300
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Attached is a short patch that uses javascript to add the current
hostname to the page title in the html generated by index.php. For
example, this changes the title from "Nagios" to "Nagios: ee.lbl.gov"
and makes it easier to open the "right" browser window when running
nagios on multiple servers.

Craig
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkytHsoACgkQWxlAhAje3Jt15wCeLWEuIqPnPYw9GigvI3kAg0dK
4HUAn1YUuZmioTp4tMnMsxpd6PHH+srX
=PoGk
-----END PGP SIGNATURE-----

--------------010708060507050908080300
Content-Type: text/plain;
name="patch-index.php.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-index.php.txt"

--- nagios-3.2.2/html/index.php.orig 2010-08-28 09:46:46.000000000 -0700
+++ nagios-3.2.2/html/index.php 2010-09-17 15:38:02.000000000 -0700
@@ -41,7 +41,8 @@
?>


-
+

" name="main" frameborder="0">



--------------010708060507050908080300
Content-Type: application/octet-stream;
name="patch-index.php.txt.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="patch-index.php.txt.sig"

iEYEABECAAYFAkyT8DAACgkQWxlAhAje3JsK/gCeLZ9cNPCnDUEZEyQH2SolD0JwzHYAnjf8
Bga6F/cvU4ndvW/k8osI7PuX
--------------010708060507050908080300
Content-Type: application/octet-stream;
name="patch-index.php.txt.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="patch-index.php.txt.sig"

iEYEABECAAYFAkytHssACgkQWxlAhAje3JthhgCfUhrEmymweCyQj8nH8PZze11PpuQAn0GE
Ej9x2Pm3VdkdQhiE18cLxAkE
--------------010708060507050908080300
Content-Type: application/octet-stream;
name="patch-index.php.txt.sig.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="patch-index.php.txt.sig.sig"

iEYEABECAAYFAkytHssACgkQWxlAhAje3JsaZwCcCapFIopsJhNip4j+g6xeeWB8Ey4AoIG0
Bfby5r+to0jlUujgTCsJ4G+0
--------------010708060507050908080300--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked