File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ export async function status(api) {
267
267
const servers = Object . keys ( config . app . servers )
268
268
. map ( key => config . servers [ key ] ) ;
269
269
const lines = [ ] ;
270
- const overallColor = 'green' ;
270
+ let overallColor = 'green' ;
271
271
272
272
const collectorConfig = {
273
273
nginxDocker : {
@@ -304,6 +304,10 @@ export async function status(api) {
304
304
lines . push ( ' - NGINX:' ) ;
305
305
lines . push ( ` - Status: ${ nginxDocker ? nginxDocker . State . Status : 'Stopped' } ` ) ;
306
306
307
+ if ( nginxDocker && nginxDocker . State . Status !== 'running' ) {
308
+ overallColor = 'red' ;
309
+ }
310
+
307
311
if ( nginxDocker ) {
308
312
lines . push ( ' - Ports:' ) ;
309
313
Object . keys ( nginxDocker . NetworkSettings . Ports || { } ) . forEach ( key => {
@@ -318,6 +322,10 @@ export async function status(api) {
318
322
lines . push ( ' - Let\'s Encrypt' ) ;
319
323
lines . push ( ` - Status: ${ letsEncryptDocker ? letsEncryptDocker . State . Status : 'Stopped' } ` ) ;
320
324
325
+ if ( letsEncryptDocker && letsEncryptDocker . State . Status !== 'running' ) {
326
+ overallColor = 'red' ;
327
+ }
328
+
321
329
if ( certificateExpire && certificateExpire . length > 0 ) {
322
330
lines . push ( ' - Certificates' ) ;
323
331
Object . keys ( certificateExpire ) . forEach ( key => {
You can’t perform that action at this time.
0 commit comments