[ClusterLabs] Antw: crm_mon output to html-file - is there a way to manipulate the html-file ?

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon May 6 02:56:57 EDT 2019


>>> "Lentes, Bernd" <bernd.lentes at helmholtz-muenchen.de> schrieb am 03.05.2019
um
19:18 in Nachricht
<595056197.709875.1556903922143.JavaMail.zimbra at helmholtz-muenchen.de>:
> Hi,
> 
> on my cluster nodes i established a systemd service which starts crm_mon 
> which writes cluster information into a html-file so i can see the state 
> of my cluster in a webbrowser. 
> crm_mon is started that way: 
> /usr/sbin/crm_mon -d -i 10 -h /srv/www/hawk/public/crm_mon.html -m3 -nrfotAL

> -p /var/run/crm_mon.pid
> The output of the webpage is quite nice, you get a short and quick overview.

> Only some inactive resources are displayed in yellow which is impossible to

> read.
> 
> Is there a way to configure the output of the hmtl-file so that it's better

> readable ?
> I didn't find anything in the manpage.

Hi!

Many years ago I wrote some parser that converts a fixed-width HTML table to a
variable-width HTML table, also removing color settings. Maybe you can try a
similar approach. Basically it's written in Perl and uses HTML::Parser to do
the transformation.

Regards,
Ulrich

> 
> Bernd
> 
> -- 
> 
> Bernd Lentes 
> Systemadministration 
> Institut für Entwicklungsgenetik 
> Gebäude 35.34 - Raum 208 
> HelmholtzZentrum münchen 
> bernd.lentes at helmholtz-muenchen.de 
> phone: +49 89 3187 1241 
> phone: +49 89 3187 3827 
> fax: +49 89 3187 2294 
> http://www.helmholtz-muenchen.de/idg 
> 
> wer Fehler macht kann etwas lernen 
> wer nichts macht kann auch nichts lernen
>  
> 
> Helmholtz Zentrum Muenchen
> Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
> Ingolstaedter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de 
> Stellv. Aufsichtsratsvorsitzender: MinDirig. Dr. Manfred Wolter
> Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Heinrich 
> Bassler, Kerstin Guenther
> Registergericht: Amtsgericht Muenchen HRB 6466
> USt-IdNr: DE 129521671
> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users 
> 
> ClusterLabs home: https://www.clusterlabs.org/ 





More information about the Users mailing list