Changeset 263
- Timestamp:
- Jun 26, 2018, 10:18:07 AM (7 years ago)
- Location:
- trunk/nagios-velvice
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nagios-velvice/Makefile
r243 r263 5 5 MANDIR=/usr/share/man/man1 6 6 SHAREDOCDIR=/usr/share/doc/nagios-velvice 7 STYLEDIR=/etc/nagios3/stylesheets 7 8 8 9 .PHONY: all ignore install update sync upload stat help pkg … … 19 20 @install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR) 20 21 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDOCDIR) 22 @install -d -m 0755 -o root -g root $(DESTDIR)/$(STYLEDIR) 21 23 22 24 install -m 0755 -o root -g root velvice.cgi $(DESTDIR)/$(CGIDIR) 25 install -m 0644 -o root -g root velvice.sample.yml $(DESTDIR)/$(ETCDIR) 23 26 install -m 0644 -o root -g root velvice.1.gz $(DESTDIR)/$(MANDIR) 24 install -m 0644 -o root -g root velvice.sample.yml $(DESTDIR)/$(ETCDIR)25 27 install -m 0644 -o root -g root LICENSE.txt $(DESTDIR)/$(SHAREDOCDIR) 28 install -m 0644 -o root -g root velvice.html $(DESTDIR)/$(SHAREDOCDIR) 29 install -m 0644 -o root -g root velvice.sample.yml $(DESTDIR)/$(SHAREDOCDIR) 30 install -m 0644 -o root -g root velvice.css $(DESTDIR)/$(STYLEDIR) 26 31 27 32 sync: -
trunk/nagios-velvice/make-package-debian
r255 r263 17 17 18 18 # Create future tree 19 mkdir -p ${tmp_folder}/etc/nagios3 19 mkdir -p ${tmp_folder}/etc/nagios3/stylesheets 20 20 mkdir -p ${tmp_folder}/usr/lib/cgi-bin/nagios3 21 21 mkdir -p ${tmp_folder}/usr/share/doc/nagios3-velvice 22 22 mkdir -p ${tmp_folder}/usr/share/man/man1 23 23 cp LICENSE.txt ${tmp_folder}/usr/share/doc/nagios3-velvice/ 24 cp velvice.html ${tmp_folder}/usr/share/doc/nagios3-velvice/ 25 cp velvice.sample.yml ${tmp_folder}/usr/share/doc/nagios3-velvice/ 24 26 cp velvice.1.gz ${tmp_folder}/usr/share/man/man1/ 25 27 cp velvice.cgi ${tmp_folder}/usr/lib/cgi-bin/nagios3/ 26 28 cp velvice.sample.yml ${tmp_folder}/etc/nagios3/ 29 cp velvice.css ${tmp_folder}/etc/nagios3/stylesheets/ 27 30 chmod ugo+rx ${tmp_folder}/usr/lib/cgi-bin/nagios3/velvice.cgi 28 31 chmod -R a+rX,go-w ${tmp_folder}/usr -
trunk/nagios-velvice/velvice.cgi
r261 r263 15 15 use strict; 16 16 use warnings; 17 use version; our $VERSION = version->declare('0. 6.6');17 use version; our $VERSION = version->declare('0.7.1'); 18 18 19 19 use CGI; … … 28 28 my $cgi_script_name = $query->script_name(); 29 29 my $cgi_path = $cgi_script_name =~ s{/[^/]+\.cgi$}{}r; 30 undef $query; 30 31 31 32 my $config = {}; … … 36 37 $config->{'nagios-server'}{'portal-url'} ||= $cgi_path =~ s{/cgi-bin/}{/}r . '/'; 37 38 $config->{'nagios-server'}{'status-cgi'} ||= "$cgi_path/status.cgi"; 39 $config->{'nagios-server'}{'stylesheets'} ||= $config->{'nagios-server'}{'portal-url'} =~ s{/?$}{/stylesheets}r; 38 40 $config->{'host-mapping'} ||= {}; 39 41 $config->{'color-downtime'} ||= {}; … … 111 113 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 112 114 <title>Nagios Velvice</title> 115 <link rel="stylesheet" type="text/css" href="$config->{'nagios-server'}{'stylesheets'}/velvice.cgi"> 113 116 </head> 114 <style type="text/css">115 /* https://stackoverflow.com/questions/14920401/how-to-simulate-hfill-with-html-and-css */116 h1 ul {117 display: flex;118 justify-content: space-between;119 }120 h1 li {121 display: inline;122 }123 td.bold {124 font-weight: bold;125 }126 </style>127 117 <body> 128 118 <h1> -
trunk/nagios-velvice/velvice.sample.yml
r261 r263 5 5 portal-url: https://srv-nagios.example.com/nagios3/ 6 6 status-cgi: https://srv-nagios.example.com/cgi-bin/nagios3/status.cgi 7 stylesheets: https://srv-nagios.example.com/nagios3/stylesheets 7 8 8 9 host-mapping:
Note: See TracChangeset
for help on using the changeset viewer.