Closed jenningsloy318 closed 6 years ago
Hi @jenningsloy318, Thanks for reporting! Could you please check if this fixed on master now? Please do not hesitate to report any issue you could find or even if you miss some information I should include anywhere.
@mjtrangoni
I compile it again, now it works.
And can you also update the readme to specified that it needs super privileges to for pacemaker_exporter to invoke "crm_mon -X"
Hi I'm getting the same error after compiling it again. Please see below for error messages.
./pacemaker_exporter INFO[0000] Starting pacemaker_exporter (version=0.0.1, branch=master, revision=893a693b43da9b4cf87a86111388f0bc6411a199) source="pacemaker_exporter.go:89" INFO[0000] Build context (go=go1.9.1, user=cloud@test, date=20180824-03:30:39) source="pacemaker_exporter.go:90" INFO[0000] Enabled collectors: source="pacemaker_exporter.go:97" INFO[0000] - crm_mon source="pacemaker_exporter.go:99" INFO[0000] Listening on :9356 source="pacemaker_exporter.go:120" ERRO[0003] strconv.ParseFloat: parsing "galera-bundle-0": invalid syntax source="crm_mon_linux.go:48" ERRO[0003] strconv.ParseFloat: parsing "galera-bundle-0": invalid syntax source="crm_mon_linux.go:64" ERRO[0003] ERROR: crm_mon collector failed after 0.059715s: couldn't get crm_mon information: strconv.ParseFloat: parsing "galera-bundle-0": invalid syntax source="collector.go:133"
Additional info:
<node name="galera-bundle-0" id="galera-bundle-0" online="true" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" shutdown="false" expected_up="false" is_dc="false" resources_running="1" type="remote" id_as_resource="galera-bundle-docker-0" />
<node name="galera-bundle-0" id="galera-bundle-0" cached="false"/>
<resource id="galera-bundle-0" resource_agent="ocf::pacemaker:remote" role="Started" active="true" orphaned="false" blocked="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="1" >
<node name="galera-bundle-0">
<resource_history id="galera-bundle-0" orphan="false" migration-threshold="1000000">
<node name="galera-bundle-0">
Hi @wat101,
Could you please open a new separate issue for this? And please provide the complete crm_mon -X
, anonymized or privately per e-mail if you want, but I want to see the complete XML structure. BTW, I want to know which pacemaker version it is. Thanks!
Hi @jenningsloy318, I added a note, that this has to be run as root user. Thanks for pointing this!
Host operating system: output of
uname -r
SLES 12 SP1 3.12.74-60.64.82-default
pacemaker_exporter version: output of
pacemaker_exporter --version
version=0.0.1, branch=master, revision=7400c41ee027ecd73bc7dddc9105cd5114901fdd
pacemaker_exporter command line flags
no flags specified
What did you do that produced an error?
output of crm_mon -X