Ad Widget

Collapse

No Data in graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • danderso
    Junior Member
    • Sep 2008
    • 3

    #1

    No Data in graphs

    I have my Zabbix server monitoring itself.
    Solaris 10 SPARC. and most graphs show no data.
    CPU Util, CPU Load, shared Memory. In fact the only ones that work that I can see so far in number of users and disk Usage.

    Did I miss a step?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    No, not really. You didn't miss a step. By default, Zabbix doesn't monitor a lot of Solaris metrics. Read this thread and maybe it can get you started in the right direction -




    Maybe if I have time tomorrow, I will post some of the userparameters we have come up with to help our Solaris 10 monitoring.

    Comment

    • danderso
      Junior Member
      • Sep 2008
      • 3

      #3
      I tried that. It did not work

      Could you give me more information. That is not seeming to work.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Alright, try this.

        On the host that you are monitoring, add these lines at the end of /etc/zabbix/zabbix_agentd.conf:

        UserParameter=kpi.cpu.usr,sar 1 1 | awk '{ A=$2 } END { print A }'
        UserParameter=kpi.cpu.sys,sar 1 1 | awk '{ A=$3 } END { print A }'
        UserParameter=kpi.cpu.wio,sar 1 1 | awk '{ A=$4 } END { print A }'
        UserParameter=kpi.cpu.idle,sar 1 1 | awk '{ A=$5 } END { print A }'

        Restart the agent.

        Then on the Zabbix server GUI, go to Configuration --> Items and select the host that you are setting this up for. Create a new item and make it look like the below screenshot. Do this for each item above and change the key as appropriate. You should then be able to produce graphs for CPU idle time, user time, System time and wio. basically it all comes down to the Zabbix admin adding in his own unique userparameters to the zabbix conf file.
        Attached Files

        Comment

        • danderso
          Junior Member
          • Sep 2008
          • 3

          #5
          that worked.

          now I just need templates for other common solaris metrics.

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            You are welcome to try some of these. Most work... some don't. Anywhere you see[*] you will need to insert the proper value in the GUI when configuring that item. For Instance, in the first line below, I would put ce0 to identify the interface on that particular host.

            UserParameter=kpi.net.if.in[*],/usr/bin/netstat -i | grep $1 | nawk '{ print $$5}'
            UserParameter=kpi.net.if.inerr[*],/usr/bin/netstat -i | grep $1 | nawk '{ print $$6}'
            UserParameter=kpi.net.if.out[*],/usr/bin/netstat -i | grep $1 | nawk '{ print $$7}'
            UserParameter=kpi.net.if.outerr[*],/usr/bin/netstat -i | grep $1 | nawk '{ print $$8}'
            UserParameter=kpi.net.if.collision[*],/usr/bin/netstat -i | grep $1 | nawk '{ print $$9}'


            UserParameter=kpi.solaris.cpu.usr,sar 1 1 | awk '{ A=$2 } END { print A }'
            UserParameter=kpi.solaris.cpu.sys,sar 1 1 | awk '{ A=$3 } END { print A }'
            UserParameter=kpi.solaris.cpu.wio,sar 1 1 | awk '{ A=$4 } END { print A }'
            UserParameter=kpi.solaris.cpu.idle,sar 1 1 | awk '{ A=$5 } END { print A }'


            UserParameter=kpi.solaris.1cpu.usr[*],mpstat -q | egrep "^ *$1 " | awk '{ print $$13 }'
            UserParameter=kpi.solaris.1cpu.sys[*],mpstat -q | egrep "^ *$1 " | awk '{ print $$14 }'
            UserParameter=kpi.solaris.1cpu.wio[*],mpstat -q | egrep "^ *$1 " | awk '{ print $$15 }'
            UserParameter=kpi.solaris.1cpu.idle[*],mpstat -q | egrep "^ *$1 " | awk '{ print $$16 }'


            UserParameter=kpi.solaris.disk.wait_pct[*],iostat -xn | egrep " $1$" | awk '{ print $$9 }'
            UserParameter=kpi.solaris.disk.busy_pct[*],iostat -xn | egrep " $1$" | awk '{ print $$10 }'

            UserParameter=kpi.solaris.disk.size[*],df -k | egrep " $1$" | awk '{ print $$2 }'
            UserParameter=kpi.solaris.disk.used[*],df -k | egrep " $1$" | awk '{ print $$3 }'
            UserParameter=kpi.solaris.disk.avail[*],df -k | egrep " $1$" | awk '{ print $$4 }'



            UserParameter=kpi.solaris.disk.wait[*],iostat -xn | egrep " $1$" | awk '{ print $$5 }'
            UserParameter=kpi.solaris.disk.activ[*],iostat -xn | egrep " $1$" | awk '{ print $$6 }'
            UserParameter=kpi.solaris.disk.svc_t[*],iostat -x | egrep "^$1 " | awk '{ print $$7 }'
            UserParameter=kpi.solaris.disk.wsvc_t[*],iostat -xn | egrep " $1$" | awk '{ print $$7 }'
            UserParameter=kpi.solaris.disk.asvc_t[*],iostat -xn | egrep " $1$" | awk '{ print $$8 }'


            UserParameter=kpi.solaris.disk.rs[*],iostat -xn | egrep " $1$" | awk '{ print $$1 }'


            UserParameter=kpi.solaris.disk.ws[*],iostat -xn | egrep " $1$" | awk '{ print $$2 }'


            UserParameter=kpi.solaris.disk.krs[*],iostat -xn | egrep " $1$" | awk '{ print $$3 }'
            UserParameter=kpi.solaris.disk.kws[*],iostat -xn | egrep " $1$" | awk '{ print $$4 }'
            UserParameter=kpi.solaris.disk.avgrss[*],iostat -xn | egrep " $1$" | awk '{ print $$3 / $$1 }'
            UserParameter=kpi.solaris.disk.avgwss[*],iostat -xn | egrep " $1$" | awk '{ print $$4 / $$2 }'

            UserParameter=kpi.solaris.kernel.scallss,sar -c 1 1 | grep -v call | awk '{ A=$2 } END { print A }'
            UserParameter=kpi.solaris.kernel.sreads,sar -c 1 1 | grep -v call | awk '{ A=$3 } END { print A }'
            UserParameter=kpi.solaris.kernel.swrits,sar -c 1 1 | grep -v call | awk '{ A=$4 } END { print A }'
            UserParameter=kpi.solaris.kernel.forks,sar -c 1 1 | grep -v call | awk '{ A=$5 } END { print A }'
            UserParameter=kpi.solaris.kernel.execs,sar -c 1 1 | grep -v call | awk '{ A=$6 } END { print A }'
            UserParameter=kpi.solaris.kernel.rchars,sar -c 1 1 | grep -v call | awk '{ A=$7 } END { print A }'
            UserParameter=kpi.solaris.kernel.wchars,sar -c 1 1 | grep -v call | awk '{ A=$8 } END { print A }'

            UserParameter=kpi.solaris.disk.capacity[*],df -k | egrep " $1$" | awk '{ print $3 / $2 }'

            By the way... you're welcome.

            Comment

            Working...