Ad Widget

Collapse

Zabbix Agent Userparameters overloads the System

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahrar.ahmed
    Junior Member
    • Aug 2019
    • 7

    #1

    Zabbix Agent Userparameters overloads the System

    Hi.

    I am monitoring unbound DNS. Snapshots of Items and ps output attached with this...
    This is the Userparamter
    UserParameter=unbound[*],sudo /usr/sbin/unbound-control stats_noreset | grep $1= | cut -d= -f2

    Default Polling interval is 60s i have also tried scheduled and flexible intervals as well..

    Total Items being monitord are around 80. So after one minute Zabbix Server polls unbound machine...

    The problem i face is that i want Zabbix agent to run this command once "sudo /usr/sbin/unbound-control stats_noreset | grep $1= | cut -d= -f2
    "

    But instead, for every item it run this separately (80 times) which results in processor overhead...
    Can some one help me how can i achieve to poll unbound statistics only once, not like 80 times.
    Click image for larger version

Name:	same query multiple times.png
Views:	442
Size:	483.7 KB
ID:	410945Click image for larger version

Name:	item examples.png
Views:	466
Size:	87.6 KB
ID:	410944
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    You'll probably have to redesign your custom item that runs the command to collect the data, but the solution to the issue is to use dependent items: https://www.zabbix.com/documentation...ependent_items

    Comment

    • ahrar.ahmed
      Junior Member
      • Aug 2019
      • 7

      #3
      Originally posted by tim.mooney
      You'll probably have to redesign your custom item that runs the command to collect the data, but the solution to the issue is to use dependent items: https://www.zabbix.com/documentation...ependent_items
      Thank You for your reply.. I will try dependent item and let you know if it worked for me..

      Comment

      • ahrar.ahmed
        Junior Member
        • Aug 2019
        • 7

        #4
        Originally posted by tim.mooney
        You'll probably have to redesign your custom item that runs the command to collect the data, but the solution to the issue is to use dependent items: https://www.zabbix.com/documentation...ependent_items
        Thank you Tim

        Dependent Item solved my problem

        Comment

        Working...