[ZBX-16189] Active checks not working:host name configured correctly in zabbix_agentd.conf file Created: 2019 May 29  Updated: 2019 May 29  Resolved: 2019 May 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 4.0.8
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Raj Assignee: Zabbix Support Team
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File zabbix_agent.txt    

 Description   

Steps to reproduce:

  1. Changes in configuration...
  2. Navigate to screen title...
  3. Click on screen element...
  4. ...

Result:
See screenshot...
See log file...
See memory dump...
Expected:
See screenshot....
See attached patch file...



 Comments   
Comment by Raj [ 2019 May 29 ]

Active checks are not working.

I have configured the host name correctly yet not able to perform log monitoring.

 

Comment by Edgar Akhmetshin [ 2019 May 29 ]

Hello Raj,

The hostname specified in the Zabbix agent settings and on the Zabbix web frontend side must match for the host. If you changed hostname in the agent configuration file you need to restart agent. I've tested on 4.0.8 agent with 4.0.8 server and not able to repeat the problem. You have name set to "zabbix server", by default "Zabbix server", the name is case sensitive. You need to check hostname on the frontend.

Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, we are closing this ticket. Thank you for understanding.

Regards,
Edgar

Comment by Raj [ 2019 May 29 ]

Logs from zabbix agent;

 

11191:20190529:095529.385 __zbx_zbx_setproctitle() title:'collector [processing data]'
11191:20190529:095529.385 In update_cpustats()
11191:20190529:095529.385 End of update_cpustats()
11191:20190529:095529.386 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
11195:20190529:095529.608 In send_buffer() host:'52.89.240.204' port:10051 entries:0/100
11195:20190529:095529.608 End of send_buffer():SUCCEED
11195:20190529:095529.608 __zbx_zbx_setproctitle() title:'active checks #1 [processing active checks]'
11195:20190529:095529.608 In process_active_checks() server:'52.89.240.204' port:10051
11195:20190529:095529.608 In process_logrt() flags:0x04 filename:'/var/log/syslog' lastlogsize:336 mtime:1558604199
11195:20190529:095529.608 In add_logfile() filename:'/var/log/syslog' mtime:1558604199 size:336
11195:20190529:095529.608 add_logfile() logfiles:0x55adb7273620 logfiles_alloc:64
11195:20190529:095529.608 End of add_logfile()
11195:20190529:095529.608 create_old2new_and_copy_of(): is_same_file(/var/log/syslog, /var/log/syslog) = 1
11195:20190529:095529.608 process_logrt() old file list:
11195:20190529:095529.608 nr:0 filename:'/var/log/syslog' mtime:1558604199 size:336 processed_size:336 seq:1 copy_of:-1 incomplete:0 dev:51713 ino_hi:0 ino_lo:16829200 md5size:336 md5buf:41e545e7c2e27f64fb0f5346ccee2299
11195:20190529:095529.608 process_logrt() new file list: (mtime:1558604199 lastlogsize:336 start_idx:0)
11195:20190529:095529.608 nr:0 filename:'/var/log/syslog' mtime:1558604199 size:336 processed_size:336 seq:1 copy_of:-1 incomplete:0 dev:51713 ino_hi:0 ino_lo:16829200 md5size:336 md5buf:41e545e7c2e27f64fb0f5346ccee2299
11195:20190529:095529.608 End of process_logrt():SUCCEED
11195:20190529:095529.608 In need_meta_update() key:log[/var/log/syslog,Stopped]
11195:20190529:095529.608 End of need_meta_update():FAIL
11195:20190529:095529.608 In send_buffer() host:'52.89.240.204' port:10051 entries:0/100
11195:20190529:095529.608 End of send_buffer():SUCCEED
11195:20190529:095529.608 End of process_active_checks()
11195:20190529:095529.608 In get_min_nextcheck()
11195:20190529:095529.608 End of get_min_nextcheck():1559123734
11195:20190529:095529.608 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
11191:20190529:095530.386 __zbx_zbx_setproctitle() title:'collector [processing data]'
11191:20190529:095530.386 In update_cpustats()
11191:20190529:095530.386 End of update_cpustats()
11191:20190529:095530.386 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
11195:20190529:095530.608 In send_buffer() host:'52.89.240.204' port:10051 entries:0/100
11195:20190529:095530.608 End of send_buffer():SUCCEED
11195:20190529:095530.608 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
11191:20190529:095531.386 __zbx_zbx_setproctitle() title:'collector [processing data]'
11191:20190529:095531.386 In update_cpustats()
11191:20190529:095531.386 End of update_cpustats()
11191:20190529:095531.386 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
11195:20190529:095531.609 In send_buffer() host:'52.89.240.204' port:10051 entries:0/100
11195:20190529:095531.609 End of send_buffer():SUCCEED
11195:20190529:095531.609 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
11191:20190529:095532.387 __zbx_zbx_setproctitle() title:'collector [processing data]'
11191:20190529:095532.387 In update_cpustats()
11191:20190529:095532.387 End of update_cpustats()
11191:20190529:095532.387 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
11195:20190529:095532.609 In send_buffer() host:'52.89.240.204' port:10051 entries:0/100
11195:20190529:095532.609 End of send_buffer():SUCCEED
11195:20190529:095532.609 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
11191:20190529:095533.387 __zbx_zbx_setproctitle() title:'collector [processing data]'
11191:20190529:095533.387 In update_cpustats()
11191:20190529:095533.387 End of update_cpustats()
11191:20190529:095533.387 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'

Generated at Thu Mar 28 22:55:06 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.