Ad Widget

Collapse

New Installation, Stuck trying to setup monitors...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kristiaan_d
    Junior Member
    • May 2009
    • 15

    #1

    New Installation, Stuck trying to setup monitors...

    Hi Guys,
    before someone posts a reply i have RTFM but its not exactly based at someone who does'nt know a lot about Zabbix, linux and windows....

    I am struggling to grasp how you setup a new item to be monitored on a windows 2003 server, i have installed the Zabbix_agentd.exe and its running Zabbix server is reporting things are fine, but i would like to keep an eye on things like

    MYSQL
    MS SQL
    and a bunch of custom services our company has written, is there an idiots guide out there on how you go about setting this sort of thing up.

    The first thing that is confusing me is the agent config file, there is nothing of interest in this file but the zabbix server is reporting on a load of information.

    where is it getting this from if its not in the config file and how to i go about adding to it????

    This is my agents config file,

    Code:
    # This is config file for zabbix_agent
    # To get more information about ZABBIX,
    # go http://www.zabbix.com
    
    # IP address of ZABBIX server
    # Connections from other hosts will be denied
    
    Server=10.0.0.192
    
    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30
    
    ListenPort=10050
    
    Timeout=3
    
    
    
    ####### USER-DEFINED MONITORED PARAMETERS #######
    # Format: UserParameter=<key>,<shell command>
    # Note that shell command must not return empty string or EOL only
    #UserParameter=system.test,who|wc -l
    ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
    ### Change -u<username> and add -p<password> if required
    #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
    #UserParameter=mysql.uptime,mysqladmin -u root status|cut -f2 -d":"|cut -f1 -d"T"
    #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
    #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
    #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
    #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
    #UserParameter=mysql.version,mysql -V
    as you can see there is nothing in this file execept some connection parameters.

    Please guys give us a hint, i was told with great praise that this is easier to use than Nagios, so far im 50/50 on that statement, as this seems just as difficult to configure as Nagios.

    thanks in advance
    Kris
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    zabbix_agent has some built-in capabilities (that depend on what OS you are). For example on Windows zabbix_agentd.exe is :
    - CPU
    - number of processes (all or by name)
    - service state
    - memory usage
    - disk space usage
    - perfmon.exe items (not all are available)

    So once zabbix_agentd.exe is deployed (without extra configuration apart from networking stuff) zabbix_server will be able to poll those items.

    Go to Configuration > Items. Choose your windows host. Click "Create new item". Type: Zabbix Agent.

    Type the following key: vfs.fs.size[c:,free]

    Set the polling time as you want.

    This instructs zabbix_server what to collect from the agent.

    Of course if you need extra info, you can create 'UserParameters' in zabbix_agentd.conf. This will associate a key name with a command to be by zabbix_agentd. On windows you could use batch scripts or VBS.

    Comment

    • sbarnett
      Member
      • Mar 2009
      • 35

      #3
      Hi once again kristiaan_d,

      I use the (see link) to monitor all my nics on my severs. You can also get all your perfs by running this at the command prompt. c:\typeperf -qx perf.txt gives a full list. From there you have a better idea of what you can maybe monitor. Hope this helps somewhat. Also search the threads for agent configs.



      This link may also help.

      http://www.zabbix.com/wiki/doku.php?...oring_solution

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        This post will also give you some good insight into setting up and using perfcounters: http://www.zabbix.com/forum/showthread.php?t=12525

        By the way, in the zabbix_agentd.conf file you show up above, those mysql userparameters are commented out. To enable them on your mysql client, uncomment them and restart your agent.

        Also, you will need to fix the syntax for those items in your mysql template. Only God knows why they haven't corrected that yet. In the userparamter in the conf, the key is stated as this:
        Code:
        UserParameter=mysql.uptime,mysqladmin -u root status|cut -f2 -d":"|cut -f1 -d"T"
        Note the period between the words mysql and uptime in that statement. It is a mismatch to the statement they have in the mysql template, so you need to change it there, then those items will become "supported" and reportable.

        I forget what they have it seperated with, but it isn't a period.

        Comment

        Working...