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

Question on Readme instructions for installation. #4

Open
mbribeiro opened this issue May 2, 2018 · 19 comments
Open

Question on Readme instructions for installation. #4

mbribeiro opened this issue May 2, 2018 · 19 comments

Comments

@mbribeiro
Copy link

The second step in the installation says: "Create zabbix api user with read permissions on group, where databases hosts will be."

We got confused regarding this zabbix api user, if this user must be created in oracle database we want to monitor or in the server running the scripts. We also don't know what is this "group" that this user must have read permission. Is this api user a simple linux user we must create in the server that holds the agent or another user created in oracle just like in the step 1.

Thanks in advance.

Marcelo.

@dan-aksenov
Copy link
Contributor

Agree, sounds confusing. Yet I always user same user as one running zabbix-agent.
Works fine.

@mbribeiro
Copy link
Author

mbribeiro commented May 2, 2018

Great, so is this ok if I skip step 2 and simply use the "zabbix" user ?

@Lelik13a
Copy link
Owner

Lelik13a commented May 3, 2018

In second step we created zabbix user in web-interface. He will be read data from DB hosts and create items check list in /usr/lib/zabbix/cache/items-*.

@as007012
Copy link

Linux安装的zabbix.3.4.15版本,被监控端必须手动执行py脚本服务端才能展示数据。

@dmjaya
Copy link

dmjaya commented Apr 19, 2019

12 Configure needed template and hosts items
is this step must or can ignore, If it is must could you please advice how to do it?
And My Output is Nothing

image

@Lelik13a
Copy link
Owner

Lelik13a commented Apr 19, 2019

This is active checks.
"Perform checks by items list and print additional verbose information for every check"
pyora-active.py --address 10.0.0.1 --database SID -v
In this step data send on zabbix server to host.
Host and items must be exist.

@dmjaya
Copy link

dmjaya commented Apr 19, 2019

Hello Lelik
Thanks For replying , Im newer to Oracle monitoring,
Could you please send me the steps how to monitoring the Oracle DB using your scripts
Even I dont know how to edit .py files Please Help Me

Thanks

@Lelik13a
Copy link
Owner

Unfortunately, I worked for a long time with oracle monitoring. And now I have no opportunity to test the script.
Try to see the instructions of the original verification script https://github.com/bicofino/Pyora

@dmjaya
Copy link

dmjaya commented Apr 19, 2019

image
do you have any idea regarding above attachment

@Lelik13a
Copy link
Owner

Check step 7 and 8 - zabbix agent must have checks items:

UserParameter=pyora-discovery[*],/usr/lib/zabbix/externalscripts/pyora-discovery.py --address $1 --database $2 $3
UserParameter=pyora-items-list[*],/usr/lib/zabbix/externalscripts/pyora-items-list.py --zabbixurl "$1" --zabbixuser "$2" --zabbixpassword "$3" --hostname "$4" --address "$5" --database "$6"

@dmjaya
Copy link

dmjaya commented Apr 27, 2019

I update the above file like this Please check is this ok?

UserParameter=pyora-discovery[],/usr/lib/zabbix/externalscripts/pyora-discovery.py --address '192.168.10.10' $1 --database 'TEST1' $2 $3
UserParameter=pyora-items-list[
],/usr/lib/zabbix/externalscripts/pyora-items-list.py --zabbixurl'http://192.168.10.20/zabbix' "$1" --zabbixuser 'SYS' "$2" --zabbixpassword 'admin@123' "$3" --hostname "ol7" "$4" --address '192.168.10.10' "$5" --database 'TEST1' "$6"

@Lelik13a
Copy link
Owner

No.
$1, $2 and so - zabbix variables, you don't need edit them.
Just copy file oracle_pyora.conf to /etc/zabbix/zabbix_agentd.d/ directory and restart zabbix agent.
When a zabbix server requests an agent, instead of "$1" variables will be presented.
See step 10.

@dmjaya
Copy link

dmjaya commented Apr 27, 2019

it means no need to change any $ values?
UserParameter=pyora-discovery[],/usr/lib/zabbix/externalscripts/pyora-discovery.py --address $1 --database $2 $3
UserParameter=pyora-items-list[
],/usr/lib/zabbix/externalscripts/pyora-items-list.py --zabbixurl "$1" --zabbixuser "$2" --zabbixpassword "$3" --hostname "$4" --address "$5" --database "$6"

& step 10
image

for your reference

image

@Lelik13a
Copy link
Owner

Yes.
Try use zabbix_get.
https://www.zabbix.com/documentation/current/manual/concepts/get
Check agent settings. May be config not included.

@dmjaya
Copy link

dmjaya commented May 13, 2019

Hi.
Thanks, @Lelik13a finally I manage to configure the script, Thanks Again. Do I need to reduce the check_active checking interval time 800 to 10 please advice how to do it? "{Template Pyora active send:check_active.nodata(800)}=1"
Thanks.

@Lelik13a
Copy link
Owner

The period should not be less than 30 seconds because the timer process calculates this function only every 30 seconds.
https://www.zabbix.com/documentation/3.4/manual/appendix/triggers/functions
Verification period is determined by cron (cron.d/zabbix-pyora). You can set necessary time, but 1 minute is the minimal interval supported.
If you want to check the availability of the database, it is better to use other, separate checks.

@dmjaya
Copy link

dmjaya commented May 13, 2019

Noted, but after that, I got below issue

image

@wang509020
Copy link

wang509020 commented Apr 26, 2021

hi,dmjaya

image
do you have any idea regarding above attachment
tell me ,thks

@dmjaya
Copy link

dmjaya commented Apr 28, 2021

What is the zabbix version your using?
if your using 4.6+ versions download the new shared template & change the trigger & item values according to original template.

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

6 participants