ikzelf / zbxora

Zabbix Oracle monitoring plugin - replaced by zbxdb
42 stars 21 forks source link

Monitor Oracle installed on windows Host #19

Closed starlessboi closed 5 years ago

starlessboi commented 5 years ago

Hi again I have an oracle Instance installed on windows host, as far as I see, scripts are in bash and python, How can I monitor oracle on windows with zbxora, Or do you have any idea to monitor that with another tools or scripts? thanks

ikzelf commented 4 years ago

Are you sure that your zabbix server is on port 10050 and not on 10051?

Groeten, Ronald Rood

Op 15 apr. 2020 om 23:11 heeft amberchandel notifications@github.com het volgende geschreven:

 output of zbxdb.ZBXDB_NDLI_19.zbx

ZBXDB_NDLI_19 "zbxdb[checks,0,name]" 1586985003 /home/jboss/zbxdb/bin/zbxdb.py ZBXDB_NDLI_19 "zbxdb[checks,0,lmod]" 1586985003 1586984326 ZBXDB_NDLI_19 "zbxdb[checks,1,name]" 1586985003 /home/jboss/zbxdb/bin/dbconnections/oracle.py ZBXDB_NDLI_19 "zbxdb[checks,1,lmod]" 1586985003 1586984326 ZBXDB_NDLI_19 "zbxdb[checks,2,name]" 1586985003 /home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py ZBXDB_NDLI_19 "zbxdb[checks,2,lmod]" 1586985003 1586984326 ZBXDB_NDLI_19 "zbxdb[checks,3,name]" 1586985003 etc/logging.json ZBXDB_NDLI_19 "zbxdb[checks,3,lmod]" 1586985003 1585205674

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

amberchandel commented 4 years ago

need to cross check

amberchandel commented 4 years ago

i am bit confused as my senior installed zabbix, whether the port is 10050 or 10051 but since it is running on docker may be 10051 ia the port

netstat -anp|grep 10050 tcp 0 0 0.0.0.0:10050 0.0.0.0: LISTEN 10838/zabbix_agentd tcp6 0 0 :::10050 ::: LISTEN 10838/zabbix_agentd root@NPDFINN-200-161:/home/monitor# netstat -anp|grep 10051 tcp6 0 0 :::10051 ::: LISTEN 29986/docker-proxy tcp6 0 0 127.0.0.1:10051 127.0.0.1:46140 TIME_WAIT - root@NPDFINN-200-161:/home/monitor# netstat -anp|grep 10052 root@NPDFINN-200-161:/home/monitor# lsof -i:10051 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME docker-pr 29986 root 4u IPv6 2224146695 0t0 TCP :zabbix-trapper (LISTEN) root@NPDFINN-200-161:/home/monitor# lsof -i:10050 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME zabbix_ag 10838 zabbix 5u IPv4 3692791204 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10838 zabbix 6u IPv6 3692791205 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10839 zabbix 5u IPv4 3692791204 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10839 zabbix 6u IPv6 3692791205 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10840 zabbix 5u IPv4 3692791204 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10840 zabbix 6u IPv6 3692791205 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10841 zabbix 5u IPv4 3692791204 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10841 zabbix 6u IPv6 3692791205 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10842 zabbix 5u IPv4 3692791204 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10842 zabbix 6u IPv6 3692791205 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10843 zabbix 5u IPv4 3692791204 0t0 TCP :zabbix-agent (LISTEN) zabbix_ag 10843 zabbix 6u IPv6 3692791205 0t0 TCP :zabbix-agent (LISTEN)

amberchandel commented 4 years ago

If I change the port to 10051 will it pick it by itself or do i need to remove .cfg from etc folder and put it back after 2 min?

amberchandel commented 4 years ago

Sir zbxdb_starter.py.log is throwing error

CRITICAL:main:problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 386, in main _config = get_config(_args.configfile, ME) File "/home/jboss/zbxdb/bin/zbxdb.py", line 153, in get_config raise ValueError("Configfile " + filename + " does not exist") ValueError: Configfile etc/zbxdb.ZBXDB_NDLI_19.cfg does not exist

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 820, in main() File "/home/jboss/zbxdb/bin/zbxdb.py", line 785, in main err_code, err_msg = driver_errors.db_errorcode(db_driver, dberr) File "/home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py", line 24, in db_errorcode return _error.code, str(excep.args[0]) AttributeError: 'str' object has no attribute 'code' Thu Apr 16 01:54:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:38:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:39:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:40:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:41:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:42:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:43:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:44:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:45:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:46:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:47:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:48:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:49:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:50:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:51:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:52:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:53:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:54:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:55:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:56:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:57:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:58:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 02:59:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:00:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:01:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:02:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:03:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:04:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:05:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:06:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:07:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:08:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:10:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:11:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:12:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Thu Apr 16 03:13:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg

amberchandel commented 4 years ago

I wanted to know that the I filled the password in passwd column present in .cfg files now when i open the .cfg file the password column is blank is it encryoted and removed by the python script ??

ikzelf commented 4 years ago

You can print the decrypted password using zbxdb.py -c your.cfg -P password

the sender will automagically pick up the correct port number once you change it in the .bash_profile.

I am sure that by now you will see data coming in. port 10050 is normally the agent, 10051 the server.

On 15 Apr 2020, at 23:45, amberchandel <notifications@github.com mailto:notifications@github.com> wrote:

I wanted to know that the I filled the password in passwd column present in .cfg files now when i open the .cfg file the password column is blank is it encryoted and removed by the python script ??

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-614296119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBTR4WESEE7ZHCACK5LRMYTILANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

which data shall I check as there is no oracle client installed yet. did you check the version issue that I updated 2.07 in zbxdb.py is it fixed now ??

amberchandel commented 4 years ago

Still No data what shall I check now?? image

ikzelf commented 4 years ago

If zbxdb.py does generate at least a file with some content every minute if zbxdb_sender.py removes this file every minute and sends it to zabbix if the zbxdb_sender.log contains the correct address and port for the zabbix server

the zabbix server must be refusing the host. Did you define your host to use a proxy? if so, send the data to the proxy.

On 16 Apr 2020, at 08:02, amberchandel notifications@github.com wrote:

Still No data what shall I check now?? https://user-images.githubusercontent.com/46923738/79420155-f5fd4800-7fd5-11ea-8e85-164fc392ae41.png — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-614433611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBWV67R36XZUOXWG5JTRM2NQ5ANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

I don't think zbxdb.py is working as zbxdb.ZBXDB_NDLI_19.cfg.log are showing error

**2020-04-16 12:14:02,464main20_out_file : /home/jboss/zbxdb_out/zbxdb.ZBXDB_NDLI_19.zbx

2020-04-16 12:14:02,464main20_site_checks : sap,ebs

2020-04-16 12:14:02,465main20_connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-16 12:14:02,465main50_problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 97, in connect _x = _db.connect(connect_string(_c), mode=_c['omode']) cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 827, in main() File "/home/jboss/zbxdb/bin/zbxdb.py", line 788, in main err_code, err_msg = driver_errors.db_errorcode(db_driver, dberr) File "/home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py", line 24, in db_errorcode return _error.code, str(excep.args[0]) AttributeError: 'str' object has no attribute 'code'**

zbxdb.ZBXDB_NDLI_19.zbx is getting updated every minute. yes, zbxdb_sender.log contains the correct address and port for the zabbix server

how shoul i check that the zabbix server must be refusing the host. ?? No I am have not define zabbix host to use any proxy

Please tell me zbxdb_sender.py removes this file every minute and sends it to zabbix than where that files get stored on zabbix server I mean any directory structue where it gets saved?

ikzelf commented 4 years ago

read /var/log/zabbix/zabbix_server.log on the zabbix server

On 16 Apr 2020, at 08:50, amberchandel notifications@github.com wrote:

I don't think zbxdb.py is working as zbxdb.ZBXDB_NDLI_19.cfg.log are showing error

**2020-04-16 12:14:02,464main20_out_file : /home/jboss/zbxdb_out/zbxdb.ZBXDB_NDLI_19.zbx

2020-04-16 12:14:02,464main20_site_checks : sap,ebs

2020-04-16 12:14:02,465main20_connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-16 12:14:02,465main50_problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 97, in connect _x = _db.connect(connect_string(_c), mode=_c['omode']) cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux https://oracle.github.io/odpi/doc/installation.html#linux for help

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 827, in main() File "/home/jboss/zbxdb/bin/zbxdb.py", line 788, in main err_code, err_msg = driver_errors.db_errorcode(db_driver, dberr) File "/home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py", line 24, in db_errorcode return _error.code, str(excep.args[0]) AttributeError: 'str' object has no attribute 'code'**

zbxdb.ZBXDB_NDLI_19.zbx is getting updated every minute. yes, zbxdb_sender.log contains the correct address and port for the zabbix server

how shoul i check that the zabbix server must be refusing the host. ?? No I am have not define zabbix host to use any proxy

Please tell me zbxdb_sender.py removes this file every minute and sends it to zabbix than where that files get stored on zabbix server I mean any directory structue where it gets saved?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-614449377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBTJETMTJZ72PF275ULRM2TDXANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Sir Zabbix_server Logs are getting updated ever minute but now where I can see the logs of my machine (10.0.63.95) where i have done setup of zbxdb.

zabbix_server.log

895:20200416:153602.452 database is down: reconnecting in 10 seconds 895:20200416:153612.453 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153612.453 database is down: reconnecting in 10 seconds 895:20200416:153622.453 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153622.453 database is down: reconnecting in 10 seconds 895:20200416:153632.453 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153632.453 database is down: reconnecting in 10 seconds 895:20200416:153642.454 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153642.454 database is down: reconnecting in 10 seconds 895:20200416:153652.454 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153652.454 database is down: reconnecting in 10 seconds 895:20200416:153702.454 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 543

zabbix_agentd.log 10839:20200416:153705.331 End of update_cpustats() 10839:20200416:153705.331 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153706.331 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153706.331 End of send_buffer():SUCCEED 10843:20200416:153706.331 zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]' 10839:20200416:153706.331 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153706.331 In update_cpustats() 10839:20200416:153706.331 End of update_cpustats() 10839:20200416:153706.331 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153707.331 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153707.331 End of send_buffer():SUCCEED 10843:20200416:153707.347 zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]' 10839:20200416:153707.348 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153707.348 In update_cpustats() 10839:20200416:153707.348 End of update_cpustats() 10839:20200416:153707.348 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153708.348 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153708.348 End of send_buffer():SUCCEED 10843:20200416:153708.348 zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]' 10839:20200416:153708.348 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153708.348 In update_cpustats() 10839:20200416:153708.348 End of update_cpustats() 10839:20200416:153708.348 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153709.348 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153709.348 End of send_buffer():SUCCEED 10843:20200416:153709.348 zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]' 10839:20200416:153709.348 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153709.348 In update_cpustats() 10839:20200416:153709.348 End of update_cpustats() 10839:20200416:153709.348 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'

ikzelf commented 4 years ago

It looks like your installation is using postgres as zabbix database. It also looks like your zabbix database can not be reached by the zabbix server or is not running at all. You might want to start the database.

This has nothing to do with zbxdb. I think I helped you quite a lot and I am always willing to help but this is going a little too far for me. My advice is to follow the manual: https://www.zabbix.com/documentation/current/manual/installation/install_from_packages/rhel_centos https://www.zabbix.com/documentation/current/manual/installation/install_from_packages/rhel_centos

BTW: I did make a small tweak in zbxdb so you might want to issue a git pull in the zbxdb directory.

On 16 Apr 2020, at 12:13, amberchandel notifications@github.com wrote:

Sir Zabbix_server Logs are getting updated ever minute but now where I can see the logs of my machine (10.0.63.95) where i have done setup of zbxdb.

zabbix_server.log

895:20200416:153602.452 database is down: reconnecting in 10 seconds 895:20200416:153612.453 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153612.453 database is down: reconnecting in 10 seconds 895:20200416:153622.453 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153622.453 database is down: reconnecting in 10 seconds 895:20200416:153632.453 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153632.453 database is down: reconnecting in 10 seconds 895:20200416:153642.454 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153642.454 database is down: reconnecting in 10 seconds 895:20200416:153652.454 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

895:20200416:153652.454 database is down: reconnecting in 10 seconds 895:20200416:153702.454 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 543

zabbix_agentd.log 10839:20200416:153705.331 End of update_cpustats() 10839:20200416:153705.331 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153706.331 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153706.331 End of send_buffer():SUCCEED 10843:20200416:153706.331 zbx_zbx_setproctitle() title:'active checks #1 https://github.com/ikzelf/zbxora/issues/1 [idle 1 sec]' 10839:20200416:153706.331 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153706.331 In update_cpustats() 10839:20200416:153706.331 End of update_cpustats() 10839:20200416:153706.331 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153707.331 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153707.331 End of send_buffer():SUCCEED 10843:20200416:153707.347 zbx_zbx_setproctitle() title:'active checks #1 https://github.com/ikzelf/zbxora/issues/1 [idle 1 sec]' 10839:20200416:153707.348 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153707.348 In update_cpustats() 10839:20200416:153707.348 End of update_cpustats() 10839:20200416:153707.348 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153708.348 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153708.348 End of send_buffer():SUCCEED 10843:20200416:153708.348 zbx_zbx_setproctitle() title:'active checks #1 https://github.com/ikzelf/zbxora/issues/1 [idle 1 sec]' 10839:20200416:153708.348 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153708.348 In update_cpustats() 10839:20200416:153708.348 End of update_cpustats() 10839:20200416:153708.348 zbx_zbx_setproctitle() title:'collector [idle 1 sec]' 10843:20200416:153709.348 In send_buffer() host:'127.0.0.1' port:10051 entries:0/100 10843:20200416:153709.348 End of send_buffer():SUCCEED 10843:20200416:153709.348 zbx_zbx_setproctitle() title:'active checks #1 https://github.com/ikzelf/zbxora/issues/1 [idle 1 sec]' 10839:20200416:153709.348 zbx_zbx_setproctitle() title:'collector [processing data]' 10839:20200416:153709.348 In update_cpustats() 10839:20200416:153709.348 End of update_cpustats() 10839:20200416:153709.348 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-614553475, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBRVDDIHKVJCJDOVRP3RM3K3LANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Yes Sir,

Thanx for your paitence and at all time you helped me in every aspect a newbie like me it was really a help and thnx for replying me in odd hour thank you so muh sir really appreciate your patience

just last question

Is something is wrong as I cannot see any IP of my machine where I installed the zbxdb??

If all the things are in place than why I am not getting the data ??

Can i do the gitpull using below command only ?

git clone https://github.com/ikzelf/zbxdb.git

ikzelf commented 4 years ago

Normally ifconfig -a gives the ip addresses of the machine where you are on.

Just cd to zbxdb/ and issue “git pull”

that’s all.

On 16 Apr 2020, at 13:50, amberchandel notifications@github.com wrote:

Yes Sir,

Thanx for your paitence and at all time you helped me in every aspect a newbie like me it was really a help and thnx for replying me in odd hour thank you so muh sir really appreciate your patience

just last question

Is something is wrong as I cannot see any IP of my machine where I installed the zbxdb?? If all the things are in place than why I am not getting the data ?? Can i do the gitpull using below command only ? https://github.com/ikzelf/zbxdb.git https://github.com/ikzelf/zbxdb.git — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-614604321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBRP6SRCFTIGZ3Y7FVLRM3WJNANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Sir, thank you so much

just last one,

Why I am not getting the data when all the things are in place?

ikzelf commented 4 years ago

Is your zabbix installation functional at all? Do you get any data from other machines?

amberchandel commented 4 years ago

Yes sir it is functional and may be fue to some reason the zabbix database got down, all my remote scripts and data lik cPU usage open SOCKET etc are coming.

ikzelf commented 4 years ago

You could pick up a .zbx file from the archive and send it manually to zabbix and see what response comes…

zabbix_sender -z $ZABBIX_SERVERS -p $ZABBIX_SERVER_PORTS -T -i oneofthefiles.zbx -vv

On 16 Apr 2020, at 16:02, amberchandel notifications@github.com wrote:

Yes sir it is functional and may be fue to some reason the zabbix database got down, all my remote scripts and data lik cPU usage open SOCKET etc are coming.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-614672947, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBU7KCSC3HT5NT55ZU3RM4FZBANCNFSM4GP6BKKA.

ikzelf commented 4 years ago

What was the output if the manual zabbix_sender action?

amberchandel commented 4 years ago

Sir,

Output was

[jboss@TEST-UAT-63-95 ~]$ pwd /home/jboss [jboss@TEST-UAT-63-95 ~]$ zabbix_sender -z 10.1.61.161 -p 10051 -T -i zbxdb.ZBXDB_NDLI_19.zbx -vv zabbix_sender [107696]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 16; total: 16; seconds spent: 0.000159"}] Response from "10.1.61.161:10051": "processed: 0; failed: 16; total: 16; seconds spent: 0.000159" sent: 16; skipped: 0; total: 16

amberchandel commented 4 years ago

this is when I tried tried to decrypt my passwd

[jboss@TEST-UAT-63-95 bin]$ zbxdb.py -c zbxdb.ZBXDB_NDLI_19.cfg -p a25vd29uZWtub3dz Falling back to default logging config CRITICAL:main:problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 827, in main() File "/home/jboss/zbxdb/bin/zbxdb.py", line 280, in main _args.parameter, _config[_args.parameter])) KeyError: 'a25vd29uZWtub3dz'

ikzelf commented 4 years ago

$>bin/zbxdb.py -c etc/zbxdb.db2.cfg -p password parameter password: secret

On 17 Apr 2020, at 09:27, amberchandel notifications@github.com wrote:

this is when I tried tried to decrypt my passwd

[jboss@TEST-UAT-63-95 bin]$ zbxdb.py -c zbxdb.ZBXDB_NDLI_19.cfg -p a25vd29uZWtub3dz Falling back to default logging config CRITICAL:main:problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 827, in main() File "/home/jboss/zbxdb/bin/zbxdb.py", line 280, in main _args.parameter, _config[_args.parameter])) KeyError: 'a25vd29uZWtub3dz'

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-615089377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBTC62RXRPJ3CM57I53RNAAEXANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

I am able to check the passwd

bin/zbxdb.py -c etc/zbxdb.ZBXDB_NDLI_19.cfg -p password parameter password: knowoneknows

O/P of zbxdb_starter.py.log

Fri Apr 17 15:48:01 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Fri Apr 17 15:49:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Fri Apr 17 15:50:02 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg Fri Apr 17 15:51:03 IST 2020 Starting etc/zbxdb.ZBXDB_NDLI_19.cfg

O/P of zbxdb_sender.log

2020-04-17 15:52:02,479main30_Logging in /home/jboss/log/zbxdb_sender.log 2020-04-17 15:52:02,481main30_2020-04-17-1552 processing zbxdb.ZBXDB_NDLI_19.zbx 2020-04-17 15:52:02,501main30_removed lock /home/jboss/zbxdb_sender/zbxdb_sender.loc

o/p of zabbix_sender

[jboss@TEST-UAT-63-95 ~]$ zabbix_sender -z 10.1.61.161 -p 10051 -T -i zbxdb.ZBXDB_NDLI_19.zbx -vv zabbix_sender [51535]: DEBUG: answer [{"response":"success","info":"processed: 164; failed: 30; total: 194; seconds spent: 0.003349"}] Response from "10.1.61.161:10051": "processed: 164; failed: 30; total: 194; seconds spent: 0.003349" sent: 194; skipped: 0; total: 194

Sir I got Oracle client installed on my machine and I can seen now out of 194 request 164 are getting processed 30 are getting failed I have imported zbxdb_template_v4.xml in my zabbix server by hostname is ZBXDB_NDLI_19 both at zabbix server and .cfg file BUT NO DATA ON LATEST DATA TAB

amberchandel commented 4 years ago

I beleive there is an error in zbxdb.ZBXDB_NDLI_19.cfg.log

2020-04-17 15:53:02,004main30_start python-3.6.5 zbxdb-2.07 pid=55180 Connecting ...

2020-04-17 15:53:02,004main30_zbxdb found db_type=oracle, driver cx_Oracle; checking for driver

2020-04-17 15:53:02,008main20_<module 'cx_Oracle' from '/home/jboss/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cx_Oracle.cpython-36m-x86_64-linux-gnu.so'> 2020-04-17 15:53:02,009main20_zbxdb driver cx_Oracle loaded

2020-04-17 15:53:02,009main20_zbxdb driver drivererrors for cx_Oracle loaded

2020-04-17 15:53:02,010main20_zbxdb dbconnections for oracle loaded

2020-04-17 15:53:02,010main20_<module 'dbconnections.oracle' from '/home/jboss/zbxdb/bin/dbconnections/oracle.py'> 2020-04-17 15:53:02,010main20_<module 'drivererrors.cx_Oracle' from '/home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py'> 2020-04-17 15:53:02,010main20_hostname in zabbix: ZBXDB_NDLI_19 2020-04-17 15:53:02,010main20_connect string : c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-17 15:53:02,010main20_using sql_timeout : 60s

2020-04-17 15:53:02,011main20_out_file : /home/jboss/zbxdb_out/zbxdb.ZBXDB_NDLI_19.zbx

2020-04-17 15:53:02,011main20_site_checks : sap,ebs

2020-04-17 15:53:02,012main20_connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-17 15:53:02,070main50_problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 97, in connect _x = _db.connect(connect_string(_c), mode=_c['omode']) cx_Oracle.DatabaseError: ORA-28040: No matching authentication protocol

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 827, in main() File "/home/jboss/zbxdb/bin/zbxdb.py", line 788, in main err_code, err_msg = driver_errors.db_errorcode(db_driver, dberr) File "/home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py", line 24, in db_errorcode return _error.code, str(excep.args[0]) AttributeError: 'str' object has no attribute 'code'

ikzelf commented 4 years ago

Hah, progress. you installed the Oracle Client software.

ORA-28040: No matching authentication protocol

can you try to connect from this machine using sqlplus ? I think your authentication protocols in the sqlnet.ora is keeping us out.

(BTW: as far as I remember, I did a little tweak in the connection module…. cd zbxdb git pull to get that tweak)

On 17 Apr 2020, at 12:26, amberchandel notifications@github.com wrote:

I beleive there is an error in zbxdb.ZBXDB_NDLI_19.cfg.log

2020-04-17 15:53:02,004main30_start python-3.6.5 zbxdb-2.07 pid=55180 Connecting ...

2020-04-17 15:53:02,004main30_zbxdb found db_type=oracle, driver cx_Oracle; checking for driver

2020-04-17 15:53:02,008main20_<module 'cx_Oracle' from '/home/jboss/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cx_Oracle.cpython-36m-x86_64-linux-gnu.so'> 2020-04-17 15:53:02,009main20_zbxdb driver cx_Oracle loaded

2020-04-17 15:53:02,009main20_zbxdb driver drivererrors for cx_Oracle loaded

2020-04-17 15:53:02,010main20_zbxdb dbconnections for oracle loaded

2020-04-17 15:53:02,010main20_<module 'dbconnections.oracle' from '/home/jboss/zbxdb/bin/dbconnections/oracle.py'> 2020-04-17 15:53:02,010main20_<module 'drivererrors.cx_Oracle' from '/home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py'> 2020-04-17 15:53:02,010main20_hostname in zabbix: ZBXDB_NDLI_19 2020-04-17 15:53:02,010main20_connect string : c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-17 15:53:02,010main20_using sql_timeout : 60s

2020-04-17 15:53:02,011main20_out_file : /home/jboss/zbxdb_out/zbxdb.ZBXDB_NDLI_19.zbx

2020-04-17 15:53:02,011main20_site_checks : sap,ebs

2020-04-17 15:53:02,012main20_connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-17 15:53:02,070main50_problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 97, in connect _x = _db.connect(connect_string(_c), mode=_c['omode']) cx_Oracle.DatabaseError: ORA-28040: No matching authentication protocol

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 827, in main() File "/home/jboss/zbxdb/bin/zbxdb.py", line 788, in main err_code, err_msg = driver_errors.db_errorcode(db_driver, dberr) File "/home/jboss/zbxdb/bin/drivererrors/cx_Oracle.py", line 24, in db_errorcode return _error.code, str(excep.args[0]) AttributeError: 'str' object has no attribute 'code'

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-615170220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBS5LQ3S2WNM3OAZYFLRNAVE3ANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Hahahha Infra team is slow.

Btw same error while connecting manually just wanted to know zbxdb supports oracle-19c ? As it is 19c which we are trying to monitor.

ikzelf commented 4 years ago

you might want to copy the oracle 18 files to oracle 19 files. After the connection is established, zbxdb gets the database version, role and instance type. Based on that it picks the primary/standby/asm.{version}.cfg, containing the queries that should worrk for that version.

On 17 Apr 2020, at 12:51, amberchandel notifications@github.com wrote:

Hahahha Infra team is slow.

Btw same error while connecting manually just wanted to know zbxdb supports oracle-19c as it is 19c which we are trying to monitor.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-615180333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBXQHCENXCMC6PAHJC3RNAYEZANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Sir, The connection will be seen by oracle team why orcale client is not working we earlier using 12c and we have just moved to 19c we don't have oracle 18 and i didn't understood this "you might want to copy the oracle 18 files to oracle 19 files." ??

ikzelf commented 4 years ago

Just look in what is in etc/zbxdb_checks/oracle/

Groeten, Ronald Rood

Op 17 apr. 2020 om 15:42 heeft amberchandel notifications@github.com het volgende geschreven:

 Sir, The connection will be seen by oracle team why orcale client is not working we earlier using 12c and we have just moved to 19c we don't have oracle 18 and i didn't understood this "you might want to copy the oracle 18 files to oracle 19 files." ??

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

ikzelf commented 4 years ago

Do you already get some data in zabbix?

Groeten, Ronald Rood

Op 17 apr. 2020 om 15:59 heeft Ronald ronald@ronr.nl het volgende geschreven:

Just look in what is in etc/zbxdb_checks/oracle/

Groeten, Ronald Rood

Op 17 apr. 2020 om 15:42 heeft amberchandel notifications@github.com het volgende geschreven:

 Sir, The connection will be seen by oracle team why orcale client is not working we earlier using 12c and we have just moved to 19c we don't have oracle 18 and i didn't understood this "you might want to copy the oracle 18 files to oracle 19 files." ??

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

ikzelf commented 4 years ago

The zabbix_sender output only showed failures....

Groeten, Ronald Rood

Op 17 apr. 2020 om 16:11 heeft Ronald ronald@ronr.nl het volgende geschreven:

Do you already get some data in zabbix?

Groeten, Ronald Rood

Op 17 apr. 2020 om 15:59 heeft Ronald ronald@ronr.nl het volgende geschreven:

Just look in what is in etc/zbxdb_checks/oracle/

Groeten, Ronald Rood

Op 17 apr. 2020 om 15:42 heeft amberchandel notifications@github.com het volgende geschreven:

 Sir, The connection will be seen by oracle team why orcale client is not working we earlier using 12c and we have just moved to 19c we don't have oracle 18 and i didn't understood this "you might want to copy the oracle 18 files to oracle 19 files." ??

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

amberchandel commented 4 years ago

Yeah, zabbix_sender gave the exact error no so far i didn't recieved any kind of value in latest data section.

I wwnt Latest data --> selected my host (ZBXDB_NDLI_19) --> ok

NO DATA

image

ikzelf commented 4 years ago

During startup of zbxdb.py a list of items is gathered and sent to zabbix for which measurements will be accepted. If you stop the zbxdb.py process, the zbxdb_starter.py wil automagically restart it so it will create and send the list to zabbix again. Maybe you can see the items in zabbix after this. zbxdb.py will check some items every minute. Some every 5 minutes, others once an hour .

On 17 Apr 2020, at 17:07, amberchandel notifications@github.com wrote:

Yeah, zabbix_sender gave the exact error no so far i didn't recieved any kind of value in latest data section.

I wwnt Latest data --> selected my host (ZBXDB_NDLI_19) --> ok

NO DATA

https://user-images.githubusercontent.com/46923738/79583855-38647900-80eb-11ea-801b-dc2eea59b660.png — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-615297673, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBW277GDVANNHG7BN6LRNBWD3ANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Hi Sir, I am not able to tweak since internet proxy has been disabled on my rhel server so I wiill download the zbxdb.zip from https://github.com/ikzelf/zbxdb and will placed in $Home folder so that I can have the tweaks is it ok??

So I commented my crons

I removed "zbxdb.ZBXDB_NDLI_19.cfg" from $HOME/etc

put it again in $HOME/etc and ran cd $HOME zbxdb.py -c etc/zbxdb.ZBXDB_NDLI_19.cfg

db connection is still not resolved my bad

Logs-:

2020-04-20 22:00:45,432_main_ connecting to c##cistats/**@//10.1.63.123:1523/ndli19 2020-04-20 22:00:45,511main__ problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 97, in connect _x = _db.connect(connect_string(_c), mode=_c['omode']) cx_Oracle.DatabaseError: ORA-28040: No matching authentication protocol

"No file created in zbxdb_out neither it is clearing the ZBXDB_OUT/ folder nor it is moving the files to zbxdb_sender/in, send them to zabbix and archive the files to zbxdb_sender/archive/" the way it was doing earlier

Earlier the zbxdb.ZBXDB_NDLI_19.zbx was being created and also getting zipped and moved to archive folder zbxdb_sender/archive/ and "in" folder zbxdb_sender/in now it is not getting created

the client is not correctly installed so I won't receive data about the database contents but I still should receive data about the failing connection. in latest data for my hostname (ZBXDB_NDLI_19) in zabbix, why I am not receiving that?

ikzelf commented 4 years ago

You don’t have the changes I made. They are in zbxdb/bin/dbconnections/oracle.py Maybe you can pull the repository to your workstation, zip them over there and transfer to the machine?

Groeten, Ronald Rood

Op 20 apr. 2020 om 18:38 heeft amberchandel notifications@github.com het volgende geschreven:

 Hi Sir, I am not able to tweak since internet proxy has been disabled on my rhel server so I wiill download the zbxdb.zip from https://github.com/ikzelf/zbxdb and will placed in $Home folder so that I can have the tweaks is it ok??

So I commented my crons

I removed "zbxdb.ZBXDB_NDLI_19.cfg" from $HOME/etc

put it again in $HOME/etc and ran cd $HOME zbxdb.py -c etc/zbxdb.ZBXDB_NDLI_19.cfg

db connection is still not resolved my bad 2020-04-20 22:00:45,432_main connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-20 22:00:45,511_main problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 97, in connect _x = _db.connect(connect_string(_c), mode=_c['omode']) cx_Oracle.DatabaseError: ORA-28040: No matching authentication protocol

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

2020-04-20 22:00:45,432_main connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-20 22:00:45,511_main problem Traceback (most recent call last): File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 97, in connect _x = _db.connect(connect_string(_c), mode=_c['omode']) cx_Oracle.DatabaseError: ORA-28040: No matching authentication protocol

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/jboss/zbxdb/bin/zbxdb.py", line 396, in main _conn = db_connections.connect(db_driver, _config) File "/home/jboss/zbxdb/bin/dbconnections/oracle.py", line 107, in connect LOGGER.ERROR("connect failed %s with %s", _error.code, AttributeError: 'Logger' object has no attribute 'ERROR'

Next, I ran zbxdb_sender.py manually logs-: 2020-04-20 20:52:24,749main30_ZABBIX_SERVERS 10.1.61.161 ZABBIX_SERVER_PORTS 10051 2020-04-20 20:52:24,750main30_Logging in /home/jboss/log/zbxdb_sender.log 2020-04-20 20:52:24,751main30_2020-04-20-2052 processing zbxdb.ZBXDB_NDLI_19.zbx 2020-04-20 20:52:24,762main30_removed lock /home/jboss/zbxdb_sender/zbxdb_sender.lock

"No file created in zbxdb_out neither it is clearing the ZBXDB_OUT/ folder nor it is moving the files to zbxdb_sender/in, send them to zabbix and archive the files to zbxdb_sender/archive/" the way it was doing earlier

Earlier the zbxdb.ZBXDB_NDLI_19.zbx was being created and also getting zipped and moved to archive folder zbxdb_sender/archive/ and "in" folder zbxdb_sender/in now it is not getting created

the client is not correctly installed so I won't receive data about the database contents but I still should receive data about the failing connection. in latest data for my hostname (ZBXDB_NDLI_19) in zabbix, why I am not receiving that?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

amberchandel commented 4 years ago

After placing new zxbdb.

Output of-: zbxdb.py -c etc/zbxdb.ZBXDB_NDLI_19.cfg

2020-04-21 11:43:08,895_dbconnections.oracle connect failed 28040 with ORA-28040: No matching authentication protocol 2020-04-21 11:43:08,896_main (3.1)connection error: [28040] ORA-28040: No matching authentication protocol for c##cistats@//10.1.63.123:1523/ndli19

2020-04-21 11:43:09,899_main connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-21 11:43:09,945_dbconnections.oracle connect failed 28040 with ORA-28040: No matching authentication protocol 2020-04-21 11:43:09,945_main (4.1)connection error: [28040] ORA-28040: No matching authentication protocol for c##cistats@//10.1.63.123:1523/ndli19

2020-04-21 11:43:10,949_main connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-21 11:43:10,993_dbconnections.oracle connect failed 28040 with ORA-28040: No matching authentication protocol 2020-04-21 11:43:10,993_main (5.1)connection error: [28040] ORA-28040: No matching authentication protocol for c##cistats@//10.1.63.123:1523/ndli19

2020-04-21 11:43:11,997_main connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-21 11:43:12,035_dbconnections.oracle connect failed 28040 with ORA-28040: No matching authentication protocol 2020-04-21 11:43:12,036_main (6.1)connection error: [28040] ORA-28040: No matching authentication protocol for c##cistats@//10.1.63.123:1523/ndli19

2020-04-21 11:43:13,039_main connecting to c##cistats/**@//10.1.63.123:1523/ndli19

2020-04-21 11:43:13,084_dbconnections.oracle connect failed 28040 with ORA-28040: No matching authentication protocol 2020-04-21 11:43:13,084_main (7.1)connection error: [28040] ORA-28040: No matching authentication protocol for c##cistats@//10.1.63.123:1523/ndli19

zbxdb_sender.py

[jboss@TEST-UAT-63-95 ~]$ zbxdb_sender.py 2020-04-21 11:45:10,295_main ZABBIX_SERVERS 10.1.61.161 ZABBIX_SERVERPORTS 10051 2020-04-21 11:45:10,295main Logging in /home/jboss/log/zbxdbsender.log 2020-04-21 11:45:10,298main__ 2020-04-21-1145 processing zbxdb.ZBXDB_NDLI19.zbx 2020-04-21 11:45:10,307main__ removed lock /home/jboss/zbxdb_sender/zbxdb_sender.lock

I got a single data ... Please help me with other.

image

amberchandel commented 4 years ago

Eurekaaaa.........!!!

Hi Sir, my client is installed and I am able to connect t database I ran zbdb.py and it ran very smooth and than zbxdb_sender.py. Now I can see alot of data on my zabbix frontend. Now I have enabled the crons

  1. Data related to zbxdb functioning.
  2. It is fetching my all pdbs created in ndli19
  3. It is giving HELL lot of data (Thnx).

Thank You Sir...

The tool is amazing..

amberchandel commented 4 years ago

Hi Sir ,

I want to know some of the fields which I don't have any idea of

I didn't uderstood below blocks what it is showing, what data it is giving.

ZBXDB_NDLI_19 | users (12 Items)

image

And No data is coming in SQL section and ASM even I replicate asm.12.cfg as asm.19.cfg

image

image

Please help!

ikzelf commented 4 years ago

not all items make sense for an Oracle database, or not for your configuration.

On 21 Apr 2020, at 14:09, amberchandel notifications@github.com wrote:

Hi Sir ,

I want to know some of the fields which I don't have any idea of

ZBXDB_NDLI_19 users (12 Items) — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-617140209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBT55UHM7NS65MAJPL3RNWEJNANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Hi Sir,

You have placed a alot of templates I have imported and using zbxdb_template_v4.xml

Is it possible to import more than 1 template for a host, shall I import more template will they give me extra informations ?? Or they all are same eg-: zbxdb_template_v4_EN.xml, zbxdb_template_v3.xml

ikzelf commented 4 years ago

different versions of zabbix (3/4) different languages (ENglish or mixed dutch/English) Pick one to start with and adjust/add what you need.

On 21 Apr 2020, at 14:22, amberchandel notifications@github.com wrote:

Hi Sir,

You have placed a alot of templates I have imported zbxdb_template_v4.xml is it possible to import more than 1 template for a host, shall I import more template will they give me extra informations ?? Or they all are same eg-: zbxdb_template_v4_EN.xml, zbxdb_template_v3.xml

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ikzelf/zbxora/issues/19#issuecomment-617145942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZJBXCBTQCACMKOXPA4GTRNWF2BANCNFSM4GP6BKKA.

amberchandel commented 4 years ago

Please reply on this

https://github.com/ikzelf/zbxora/issues/19#issuecomment-617145942

ikzelf commented 4 years ago

No, it does not make sense to attach multiple zbxdb templates to the same db.

amberchandel commented 4 years ago

Hi Sir,

I am not getting any data for sql items!! Do I need to configure anything else for this?

This will be really great info if we get on our dashboard Please elaborate what I have to do to make them work.

image

ikzelf commented 4 years ago

I don't recall having created those ..... but what you need to do is add a file in your etc/zbxdb_checks/ with a unique name and fill that with queries that return a key as listed, with the value as you want it. Take the queries in primary* as examples.