Greetings Everyone,
Still learning my way around Zabbix, so please be gentle. Running Zabbix version 6.4.1 on RedHat Enterprise Linux 8.6.
I am trying to set up custom templates for some per-SID Oracle monitoring (please don’t respond with ‘just use the agent.’ Some of the databases I’m monitoring are too old for the agent and I’m looking to standardize monitoring as much as I can across all of them). I have a host (onolx02 in my images) configured with the Linux by Zabbix agent template. That is the database server itself. I have a second host (onolx02-clart in my images) configured for grabbing data from a single instance on that server. The onolx02-clart host currently has no template assigned (same interface type (agent) and DNS address as the onolx02 host) . . . although I am seeing this behavior even if I have a custom template assigned to onolx02-clart.
Among other scripts, I have written a check to run a script on the onolx02 to grab the current session count and return the current count. For testing/troubleshooting purposes, I have that item/trigger configured on both the onolx02 and onolx02-clart hosts. When I artificially lower the threshold enough to trigger an event, the trigger fires an action on the onolx02 host, but not the onolx02-clart host.



This happens with any script I assign to an onolx02-$DBSID host in this way. As far as I can see, the only difference between the hosts that do work and the hosts that don’t is that onolx02 has the Linux by Zabbix template assigned and onbolx02-clart does not. I've looked/searched through the documentation and interwebs, but can't figure this one out. Although, I did just have a thought as I'm typing . . . Since I am using the agent interface type in the host configuration, do I need to include the "Linux by Zabbix agent" template on that host (even though I'm already grabbing that data with the server entry (onolx02 in my example)) for things to work properly? Is that what I'm running into? Something else?
Let me know if any other information would help.
Cheers,
Bill Anderson
Still learning my way around Zabbix, so please be gentle. Running Zabbix version 6.4.1 on RedHat Enterprise Linux 8.6.
I am trying to set up custom templates for some per-SID Oracle monitoring (please don’t respond with ‘just use the agent.’ Some of the databases I’m monitoring are too old for the agent and I’m looking to standardize monitoring as much as I can across all of them). I have a host (onolx02 in my images) configured with the Linux by Zabbix agent template. That is the database server itself. I have a second host (onolx02-clart in my images) configured for grabbing data from a single instance on that server. The onolx02-clart host currently has no template assigned (same interface type (agent) and DNS address as the onolx02 host) . . . although I am seeing this behavior even if I have a custom template assigned to onolx02-clart.
Among other scripts, I have written a check to run a script on the onolx02 to grab the current session count and return the current count. For testing/troubleshooting purposes, I have that item/trigger configured on both the onolx02 and onolx02-clart hosts. When I artificially lower the threshold enough to trigger an event, the trigger fires an action on the onolx02 host, but not the onolx02-clart host.
This happens with any script I assign to an onolx02-$DBSID host in this way. As far as I can see, the only difference between the hosts that do work and the hosts that don’t is that onolx02 has the Linux by Zabbix template assigned and onbolx02-clart does not. I've looked/searched through the documentation and interwebs, but can't figure this one out. Although, I did just have a thought as I'm typing . . . Since I am using the agent interface type in the host configuration, do I need to include the "Linux by Zabbix agent" template on that host (even though I'm already grabbing that data with the server entry (onolx02 in my example)) for things to work properly? Is that what I'm running into? Something else?
Let me know if any other information would help.
Cheers,
Bill Anderson
Comment