L’interface Web NetWorker n’a pas pu extraire les derniers comptes pour la surveillance du tableau de bord
Summary: NetWorker Web User Interface (NWUI) est utilisé pour gérer netWorker Datazone. L’onglet NWUI Dashboard affiche l’erreur « Impossible d’extraire les derniers comptes pour le tableau de bord » et n’affiche pas les détails des politiques, des workflows et des actions. ...
Symptoms
La console NWUI affiche les éléments suivants :
Failed to fetch latest counts for Dashboard Error is fetching count of activities based on status from Monitoring Service

Le fichier C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\logs\nwui.log affiche les éléments suivants :
... HH:MM:SS [https-jsse-nio-9090-exec-6] INFO c.e.n.c.n.impl.GlobalApi - Authenticating user Administrator on authentication server Emcbkp01p.berlitz.com.co. HH:MM:SS [https-jsse-nio-9090-exec-6] INFO c.e.n.c.n.impl.GlobalApi - Testing server details for nw calls. HH:MM:SS [https-jsse-nio-9090-exec-8] ERROR c.e.n.c.n.i.MonitoringApi - Error in fetching count of activities based on status from Monitoring Service. java.net.ConnectException: Connection refused: connect ...
Le fichier C :\Program Files\EMC NetWorker\nwui\monitoring\app\logs\monitoring-app.log indique :
... YYYY-MM-DD HH:MM:SS [TomcatWebServer] [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9095 (https) YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["https-jsse-nio-9095"] YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.48] YYYY-MM-DD HH:MM:SS [DirectJDKLog] [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/monitoring] - Initializing Spring embedded WebApplicationContext YYYY-MM-DD HH:MM:SS [ServletWebServerApplicationContext] [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3092 ms YYYY-MM-DD HH:MM:SS [DataSourceConfig] [main] INFO monitoring - DB password file not present. YYYY-MM-DD HH:MM:SS [DataSourceConfig] [main] ERROR monitoring - Unable to retrieve the database password from Keystore java.lang.NullPointerException: null at com.dell.emc.nw.monitoring.utils.DataSourceConfig.getDBPasswordFromKeystore(DataSourceConfig.java:75) ~[classes!/:?] at com.dell.emc.nw.monitoring.utils.DataSourceConfig.getDataSource(DataSourceConfig.java:64) ~[classes!/:?] at com.dell.emc.nw.monitoring.utils.DataSourceConfig$$EnhancerBySpringCGLIB$$c434748a.CGLIB$getDataSource$0(<generated>) ~[classes!/:?] ...
Cause
Le processus de surveillance nécessite des autorisations sur le magasin de clés NWUI pour renseigner les informations du tableau de bord. La commande "monitoringdbpasswordalias" L’alias a été supprimé du fichier de magasin de clés NWUI (nwui.keystore) et le processus de surveillance n’est pas en mesure de s’authentifier. La cause de la disparition "monitoringdbpasswordalias" L’alias n’est pas connu.
Le magasin de clés NWUI doit afficher le "monitoringdbpasswordalias" alias:
C:\>"C:\Program Files\NRE\java\jre1.8.0_321\bin\keytool.exe" -list -keystore "C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystore"
Enter keystore password:
Keystore type: PKCS12
Keystore provider: SunJSSE
Your keystore contains 3 entries
emcauthctomcat, MONTH DD, YYYY, PrivateKeyEntry,
Certificate fingerprint (SHA-256): B2:D3:E1:8D:65:12:8D:51:3F:EA:CA:41:9C:A9:93:C2:21:8D:A7:A7:25:F8:CE:69:F9:21:90:55:37:43:6E:4E
emcauthcsaml, MONTH DD, YYYY, PrivateKeyEntry,
Certificate fingerprint (SHA-256): 5B:9D:23:57:5F:A7:A0:0F:83:D5:AE:61:C2:06:AF:60:0C:60:19:F8:7B:4F:6E:D2:BC:18:DD:96:6E:A1:A5:FB
monitoringdbpasswordalias, MONTH DD, YYYY SecretKeyEntry,
L’environnement affecté ne dispose pas de l’attribut "monitoringdbpasswordalias" alias:
C:\>"C:\Program Files\NRE\java\jre1.8.0_321\bin\keytool.exe" -list -keystore "C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystore" Enter keystore password: Keystore type: PKCS12 Keystore provider: SunJSSE Your keystore contains 2 entries emcauthctomcat, MONTH DD, YYYY, PrivateKeyEntry, Certificate fingerprint (SHA-256): B2:D3:E1:8D:65:12:8D:51:3F:EA:CA:41:9C:A9:93:C2:21:8D:A7:A7:25:F8:CE:69:F9:21:90:55:37:43:6E:4E emcauthcsaml, MONTH DD, YYYY, PrivateKeyEntry, Certificate fingerprint (SHA-256): 5B:9D:23:57:5F:A7:A0:0F:83:D5:AE:61:C2:06:AF:60:0C:60:19:F8:7B:4F:6E:D2:BC:18:DD:96:6E:A1:A5:FB
Resolution
La commande "monitoringdbpasswordalias" L’alias doit être recréé dans le magasin de clés NWUI. Le mot de passe du magasin de clés NWUI est requis pour l’authentification dans le fichier de magasin de clés NWUI. Dans la procédure, le mot de passe du magasin de clés NWUI doit être utilisé à la place du mot de <passe>.
- Ouvrez une fenêtre d’invite de commande avec l’option « Exécuter en tant qu’administrateur ».
- Créez une copie du fichier pg_hba.conf :
copy "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf" "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf_original"
- Ouvrez le fichier pg_hba.conf dans un éditeur de texte :
notepad "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf"
- Modifiez la MÉTHODE de « md5 » à « trust » pour tous les utilisateurs sans commentaire au bas du fichier.
- Enregistrez les modifications dans pg_hba.conf
- Arrêtez « NetWorker WebUI Database » et « NetWorker Web Management UI Server »
services: net stop nwui - Démarrez les services « NetWorker WebUI Database » et « NetWorker Web Management UI Server » :
net start nwui - Connectez-vous à la base de données NWUI avec
psql:
"C:\Program Files\EMC NetWorker\nwui\monitoring\postgres\12\bin\psql" -U nwuiuser -d nwui -p 5435
- Remplacez le mot de passe« nwuiruser » par mot de passe du magasin de clés NWUI :
ALTER USER nwuiuser WITH PASSWORD 'password'; - Quittez la connexion psql :
quit - Arrêtez les services « NetWorker WebUI Database » et « NetWorker Web Management UI Server » :
net stop nwui - Créez un nouveau fichier nwuidb.conf :
notepad "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\nwuidb.conf"
- Entrez l’encodage Base64 du mot de passe <> du magasin de clés NWUI dans le nouveau fichier nwuidb.conf : https://www.base64encode.org/
- Enregistrez la modification dans le nouveau fichier nwuidb.conf.
- Rétablissez le fichier pg_hba.conf :
copy "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf_original" "C:\Program Files\EMC NetWorker\nwui\monitoring\nwuidb\pgdata\pg_hba.conf"
- Démarrez les services « NetWorker WebUI Database » et « NetWorker Web Management UI Server » :
net start nwui - Confirmez le
monitoringdbpasswordaliasa été créé dans le magasin de clés NWUI :
"C:\Program Files\NRE\java\jre1.8.0_321\bin\keytool.exe" -list -keystore "C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystore"
- Vérifiez que le symptôme a disparu dans NWUI.