Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PB template zabbix pacemaker check #1

Open
barto95100 opened this issue Mar 31, 2017 · 8 comments
Open

PB template zabbix pacemaker check #1

barto95100 opened this issue Mar 31, 2017 · 8 comments

Comments

@barto95100
Copy link

barto95100 commented Mar 31, 2017

HI,
I have this problem in log of zabbix server :
error reason for "DB-CBV-01:pacemaker.nodes_configured" changed: Received value [sh: /root/scripts/crm_mon_stats.sh: Permission denied] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
51720:20170331:023758.424 error reason for "DB-CBV-01:pacemaker.resources_configured" changed: Received value [sh: /root/scripts/crm_mon_stats.sh: Permission denied] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]

And I don't understand why ?
do you help me ?

@czhujer
Copy link
Member

czhujer commented Apr 2, 2017

Hi,

which distro and version do you have?
Plus zabbix & pacemaker version?

Patrick

@barto95100
Copy link
Author

Hi,

The distro is :
CentOS release 6.7 (Final)

version of pacemaker is :
Pacemaker 1.1.11

and zabbix agent :
zabbix_agentd (daemon) (Zabbix) 3.2.4
Revision 65975 27 February 2017, compilation time: Feb 28 2017 23:17:08

@czhujer
Copy link
Member

czhujer commented Apr 3, 2017

Hi,

thanks.
Can you run these commands from bash promp?
Ideally under zabbix user..

something like this:

[root@b8786896b921 configs]# sudo -u zabbix bash
bash-4.1$ cd /etc/zabbix/scripts/
bash-4.1$ ./crm_mon_stats.sh -i nodes_resources_running

@barto95100
Copy link
Author

Hi,

the result :

./crm_mon_stats.sh -i nodes_resources_running
8 3

@czhujer
Copy link
Member

czhujer commented Apr 5, 2017

Hi,

thanks. That's weird.
Can you run original command "crm_mon --one-shot --as-xml"?

@barto95100
Copy link
Author

barto95100 commented Apr 6, 2017 via email

@czhujer
Copy link
Member

czhujer commented May 6, 2017

hi,

you have to update python parsing lines.

But I can't see section with nodes in this XML.
Is this complete output?

@newthinz
Copy link

if you're using python3 make sure you add that to the script or fix your path. also, the print upjects should be in parentheses(). just add that and you should be good.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants