Ad Widget

Collapse

Adding UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thought
    Junior Member
    • Aug 2006
    • 4

    #1

    Adding UserParameter

    I've just started running zabbix, and am trying to set up a few custom checks for the remote agent to do, such as:

    UserParameter=net[in],netstat -i |grep -v "^Name" |awk '{i+=$5} END {print i}'
    UserParameter=net[out],netstat -i |grep -v "^Name" |awk '{i+=$7} END {print i}'

    to get some I/O stats, however, they never show up within the list of available checks that I can add to a graph, is there something i'm missing?
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    You have to add those items first to a host, then you will be able to graph them

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • thought
      Junior Member
      • Aug 2006
      • 4

      #3
      Adding UserParameter

      No, I've added this UserParameter directly to the zabbix_agentd.conf file on the monitored host, yet it still does not show up in any drop down as an available check to use. How does zabbix generate its' list of possible checks, is it ignoring its' own config files?

      Comment

      • thought
        Junior Member
        • Aug 2006
        • 4

        #4
        can't add them as items

        I can't add those things as items to the host, zabbix seemingly wont even read it's own config file and put my self-generated checks into itself.

        Nobody has any idea why this doesnt work?

        Comment

        • dantheman
          Senior Member
          • May 2006
          • 209

          #5
          If you have only put these items in the zabbix agent config, that is not enough for zabbix to be collecting these items.. on the zabbix frontend you need to go to configuration, items and choose that particular host that you want to monitor this on.. and add an item type zabbix agent or zabbix agent (active) then use the key that matches the name in your config file, so in this case one would have a key of net[in] and another with net[out] (I don't know if the brackets will cause a problem or not... they *might* I dont' know. And then configure the rest of the item config as you want.. now this should start collecting data that you can see by going to latest data and choose that host.. once this is happening properly, now you will be able to add this to a graph.

          Comment

          • thought
            Junior Member
            • Aug 2006
            • 4

            #6
            thanks!

            thx for the breif tutorial, that helped loads, I was figuring zabbix would populate the drop down lists of checks with what I had entered into the config file, by just forcing the name in there, it started polling data from that check

            Comment

            Working...