[ZBX-23086] Apache and nginx template process discovery is too broad Created: 2023 Jul 12  Updated: 2023 Nov 14  Resolved: 2023 Aug 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 6.4.4
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Stefan Assignee: Oleksii Zagorskyi
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Alma Linux 8
Zabbix Server and Agent2: 6.4.4-release1.el8
Apache by Zabbix agent template: 6.4-0
Nginx by Zabbix agent template: 6.4-0


Attachments: PNG File Bildschirmfoto_2023-06-15_08-44-42.png     PNG File Bildschirmfoto_2023-06-15_08-44-54.png    

 Description   

We've recently had some false positives where our monitoring alerted us that Apache or nginx were down when they were in fact running and working as expected.

Further investigation showed that Zabbix incorrectly discovered auxiliary processes named "nginx_control" or "libapache2-mod-" and was alerting because these were not running. (see screenshots)

Suggested fix:

  • change {$APACHE.PROCESS_NAME} to ^(httpd|apache2)$
  • change {$NGINX.PROCESS_NAME} to ^nginx$


 Comments   
Comment by Oleksii Zagorskyi [ 2023 Aug 07 ]

It's about template names:
Apache by Zabbix agent
Nginx by Zabbix agent

Comment by Oleksii Zagorskyi [ 2023 Aug 07 ]

There are corresponding macros on the templates:
{$NGINX.PROCESS.NAME.PARAMETER}
{$APACHE.PROCESS.NAME.PARAMETER}
which stand for the filtering in a Master item key.

Closed as Won't fix.

Comment by Stefan [ 2023 Aug 08 ]

Sorry, I don't understand the reasoning.

 

We have the Nginx template assigned to a host. Zabbix is alerting us that Nginx is down. We go and check the host, nginx is up and running correctly. This means there is clearly a bug in the template.

What am I missing?

Comment by Stefan [ 2023 Nov 14 ]

Is there any chance you can recheck/reconsider this report?

The latest version of the template still has this problem: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/apache_agent/template_app_apache_agent.yaml#811

 

Generated at Tue Apr 08 17:27:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.