Ad Widget

Collapse

Trigger on Regex value returned

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #16
    Let me dream:
    1) you have zabbix_agent configured on your zabbix server
    2) you can configure Userparameter= in zabbix_agent.conf file
    3) you don't mind to create an Item (or many Items) under Zabbix Server Host configuration to keep information about CPU load from switch.

    In that imaginary situation you can use something like:
    Code:
    UserParameter=cpu_load_xxx-yyy-zzz-aaa, snmpget -v 2c -c public XXX.YYY.ZZZ.AAA .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.4.0  | awk {'print [B]$9[/B];'} | tr -d '()%,'
    $9 can be incorrect. check in your environment, which number you get and fix it.

    After restarting zabbix_agent you can test it manually
    Code:
    zabbix_agentd -t cpu_load_xxx-yyy-zzz-aaa
    If it works correctly, you will get just numeric value.

    After that you can add an item under zabbix server host configuration.
    Of course, you can create as many UserParameter= lines as many Dell switches you have.
    Or just use Flexible User Parameters
    Sincerely yours,
    Aleksey

    Comment

    • ahahum
      Member
      • Jan 2009
      • 79

      #17
      Originally posted by aib
      Let me dream:
      1) you have zabbix_agent configured on your zabbix server
      2) you can configure Userparameter= in zabbix_agent.conf file
      3) you don't mind to create an Item (or many Items) under Zabbix Server Host configuration to keep information about CPU load from switch.

      In that imaginary situation you can use something like:
      Code:
      UserParameter=cpu_load_xxx-yyy-zzz-aaa, snmpget -v 2c -c public XXX.YYY.ZZZ.AAA .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.4.0  | awk {'print [B]$9[/B];'} | tr -d '()%,'
      $9 can be incorrect. check in your environment, which number you get and fix it.

      After restarting zabbix_agent you can test it manually
      Code:
      zabbix_agentd -t cpu_load_xxx-yyy-zzz-aaa
      If it works correctly, you will get just numeric value.

      After that you can add an item under zabbix server host configuration.
      Of course, you can create as many UserParameter= lines as many Dell switches you have.
      Or just use Flexible User Parameters
      I know that it has been a while on this, but I was finally able to get some time set aside to get this configured.

      Thank you very much for the suggestion!

      For anyone who finds this via search, make sure that you add this item to the zabbix server, not to the device you're trying to monitor, otherwise it will not work!

      Comment

      Working...