Ad Widget

Collapse

custom item in agentd.conf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riegersteve
    Member
    • Oct 2004
    • 68

    #1

    custom item in agentd.conf

    will this work in agentd.conf or is it too long

    /usr/bin/rsh fl1 sysstat -c 1 -x 1 | tail -1 | cut -d " " -f 2 | cut -d % -f 1


    nother questions

    i cant have any agents on host fl1, must i monitor this on stg1 (a host with an agent) or is there a way i can somehow tell zabbix to use stg1 as the host-agent for fl1 ?
    Last edited by riegersteve; 20-09-2006, 20:10.
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,
    Originally posted by riegersteve
    will this work in agentd.conf or is it too long

    /usr/bin/rsh fl1 sysstat -c 1 -x 1 | tail -1 | cut -d " " -f 2 | cut -d % -f 1
    By default, and under normal loads, this will work fine. The default timeout value is 3 seconds, and under normal load this should take just over 2 seconds to run. Personally, if you are going to do that I would suggest bumping the timeout up on the zabbix_agentd.conf or changing this to a Zabbix Agent (Active) check.

    i cant have any agents on host fl1, must i monitor this on stg1 (a host with an agent) or is there a way i can somehow tell zabbix to use stg1 as the host-agent for fl1 ?
    This is a trick question actually. Zabbix provides multiple mechanisms for checking hosts and only two of them require the Zabbix Agent be installed. As you stated, neither of these two features will work for you, but there is also SNMP and zabbix_send. Since I don't know enough about your environment to talk about SNMP well enough, I will focus on zabbix_send.

    The zabbix_send tool is designed to allow a host to send near arbitrary information to the Zabbix Server. I say near arbitrary because the data will still need to fall into the normal Zabbix schema. For example, your query above could be converted into a zabbix_send, but you would still need to configure the host / item list for the host that you are sending the data about. A small pseudo code for this would be something like;
    Code:
    #!/bin/bash
    # Get sysstat
    RETVAL=`/usr/bin/rsh fl1 sysstat -c 1 -x 1 | tail -1 | cut -d " " -f 2 | cut -d % -f 1`
    /usr/sbin/zabbix_send <Zabbix Server> <PORT> fl1 <ITEM KEY> ${RETVAL}
    Once this was in place, you would add the host, in this case fl1 to your Zabbix Server, then you would create an item attached to that host with the type 'Zabbix Trapper'. Then on your third machine, you would set this code to execute periodically to gather then information and send it to the Zabbix Server. In this way, the data will be sent from the third machine, but Zabbix will show it as coming from fl1.

    Hope this helps.
    Unofficial Zabbix Developer

    Comment

    • riegersteve
      Member
      • Oct 2004
      • 68

      #3
      ok fair enough,
      BTW FYI we are talking about a netapp filer, snmp is very limited and one cant install zabbix_anything on it.

      once i have all the parameters in place will share them with all.

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        You might want to try doing an snmpwalk on it. Been a while since I saw one, but as I recall, anything that you could get with the online tools, you could also get through SNMP.
        Unofficial Zabbix Developer

        Comment

        • paolo_pozzoli
          Junior Member
          • Jan 2008
          • 2

          #5
          Anyone with a FAS250 template

          I would like to monitor FAS250. Does anyone a template ready for this ?

          Thanks,

          Comment

          Working...