[ClusterLabs] crm_mon -h (writing to a html-file) not showing all desired information and having trouble with the -d option
Ken Gaillot
kgaillot at redhat.com
Mon May 8 12:44:03 EDT 2017
On 05/08/2017 11:13 AM, Lentes, Bernd wrote:
> Hi,
>
> playing around with my cluster i always have a shell with crm_mon running because it provides me a lot of useful and current information concerning cluster, nodes, resources ...
> Normally i have a "crm_mon -nrfRAL" running.
> I'd like to have that output as a web page too.
> So i tried the option -h.
> I have crm_mon from pacemaker 1.1.12 on a SLES 11 SP4 box. I'm writing the file to /srv/www/hawk/public/crm_mon.html.
> I have hawk running, so i don't need an extra webserver for that.
>
> First, i was very astonished when i used the option -d (daemonize). Using that hawk does not find the html-file, although i see it in the fs, and it's looking good.
> Hawk (or lighttpd) throws an error 404. Without -d lighttpd finds the files and presents it via browser !?!
>
> This is the file without -d:
>
> ha-idg-2:/srv/www/hawk/public # stat crm_mon.html
> File: `crm_mon.html'
> Size: 1963 Blocks: 8 IO Block: 4096 regular file
> Device: 1fh/31d Inode: 7082 Links: 1
> Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
> Access: 2017-05-08 18:03:25.695754151 +0200
> Modify: 2017-05-08 18:03:20.875680374 +0200
> Change: 2017-05-08 18:03:20.875680374 +0200
>
>
> Same file with crm_mon -d:
>
> ha-idg-2:/srv/www/hawk/public # stat crm_mon.html
> File: `crm_mon.html'
> Size: 1963 Blocks: 8 IO Block: 4096 regular file
> Device: 1fh/31d Inode: 7084 Links: 1
> Access: (0640/-rw-r-----) Uid: ( 0/ root) Gid: ( 0/ root)
The "other" bit is gone, is that it?
> Access: 2017-05-08 18:04:16.048524856 +0200
> Modify: 2017-05-08 18:04:16.048524856 +0200
> Change: 2017-05-08 18:04:16.048524856 +0200
> Birth: -
>
> I see no important difference, just the different inode.
>
> This is the access.log from lighttpd:
>
> 10.35.34.70 ha-idg-2:7630 - [08/May/2017:18:04:10 +0200] "GET /crm_mon.html HTTP/1.1" 200 563 "https://ha-idg-2:7630/crm_mon.html" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safa
> ri/537.36"
> 10.35.34.70 ha-idg-2:7630 - [08/May/2017:18:04:15 +0200] "GET /crm_mon.html HTTP/1.1" 200 563 "https://ha-idg-2:7630/crm_mon.html" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safa
> ri/537.36"
> 10.35.34.70 ha-idg-2:7630 - [08/May/2017:18:04:20 +0200] "GET /crm_mon.html HTTP/1.1" 404 1163 "https://ha-idg-2:7630/crm_mon.html" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Saf
> ari/537.36"
>
> It simply changes from http status code 200 to 404. Why ?
>
> And using "crm_mon -nfrotRALV -h /srv/www/hawk/public/crm_mon.html" i get the following output:
>
>
> Cluster summary
>
> Last updated: Mon May 8 18:08:58 2017
> Current DC: ha-idg-2
> 2 Nodes configured.
> 14 Resources configured.
> Config Options
>
> STONITH of failed nodes : enabled
> Cluster is : symmetric
> No Quorum Policy : Ignore
> Node List
>
> Node: ha-idg-1: online
> prim_clvmd (ocf::lvm2:clvmd): Started
> prim_stonith_ipmi_ha-idg-2 (stonith:external/ipmi): Started
> prim_ocfs2 (ocf::ocfs2:o2cb): Started
> prim_vm_mausdb (ocf::heartbeat:VirtualDomain): Started
> prim_vg_cluster_01 (ocf::heartbeat:LVM): Started
> prim_fs_lv_xml_vm (ocf::heartbeat:Filesystem): Started
> prim_dlm (ocf::pacemaker:controld): Started
> prim_vnc_ip_mausdb (ocf::lentes:IPaddr): Started
> Node: ha-idg-2: online
> prim_clvmd (ocf::lvm2:clvmd): Started
> prim_stonith_ipmi_ha-idg-1 (stonith:external/ipmi): Started
> prim_ocfs2 (ocf::ocfs2:o2cb): Started
> prim_vg_cluster_01 (ocf::heartbeat:LVM): Started
> prim_fs_lv_xml_vm (ocf::heartbeat:Filesystem): Started
> prim_dlm (ocf::pacemaker:controld): Started
> Inactive Resources
>
> I'm missing the constraints, operations and timing details. How can i get them ?
>
>
> Bernd
The crm_mon HTML code doesn't get many reports/requests/submissions from
users, so it doesn't get a lot of attention. I wouldn't be too surprised
if there are some loose ends.
I'm not sure why those sections wouldn't appear. The code for it seems
to be there.
More information about the Users
mailing list