Ad Widget

Collapse

nfs server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradhanparas
    Member
    • Jul 2012
    • 45

    #1

    nfs server

    Hi,

    Are there any templates to monitor the nfs server stats using zabbix? Basically the template that monitors nfs read and write.

    Thanks
    Paras.
  • pradhanparas
    Member
    • Jul 2012
    • 45

    #2
    No one?


    Paras.

    Comment

    • qix
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2006
      • 423

      #3
      I think you'll need to use some UserParameters in the agent config file.
      With kind regards,

      Raymond

      Comment

      • pradhanparas
        Member
        • Jul 2012
        • 45

        #4
        I have seen this

        GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.


        I can use that with UserParameters.

        But I need something like: No. of read/write requests per second. Is this possbile?




        Paras.

        Comment

        • qix
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2006
          • 423

          #5
          I don't have experience with monitoring that for NFS servers but if you can grab it via a cat on a file in /proc or a with a tool like iostat, it is possible.
          With kind regards,

          Raymond

          Comment

          • pradhanparas
            Member
            • Jul 2012
            • 45

            #6
            To be more precise something like this. See the img.
            Attached Files

            Comment

            • qix
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2006
              • 423

              #7
              What tool is that?

              Best thing to do is figure out where it is getting it's data from and start querying that via a UserParameter.
              With kind regards,

              Raymond

              Comment

              • pradhanparas
                Member
                • Jul 2012
                • 45

                #8
                that is munin

                Comment

                • eskytthe
                  Senior Member
                  Zabbix Certified Specialist
                  • May 2011
                  • 363

                  #9
                  Hi
                  I use the munin-run command in my UserParameters, as a fast way to get data via munin (here the munin netstat plugin):
                  UserParameter=netstat.estab,/usr/sbin/munin-run netstat | grep estab | cut -f2 -d" "

                  Or together with zabbix_sender.

                  There is also this munin "adapt" script at the old wiki - but I have not tested it.
                  BR
                  Erik

                  Comment

                  • LenR
                    Senior Member
                    • Sep 2009
                    • 1005

                    #10
                    I found this script and a related template somewhere. Let me know if you need the template. (uses trapper)

                    #! /usr/bin/perl -w
                    use Data:umper;
                    $command = '/usr/sbin/nfsstat -3';
                    $zs = '/usr/bin/zabbix_sender -v -z <%= zabbix_server %> -p 10051 -s <%= fqdn %> -i /tmp/znfs3c_tosend';
                    open (ZS, '>>/tmp/znfs3c_tosend');

                    my @output = `$command`;

                    $res{totcalls} = $output[0]; # First line contains total calls
                    $res{totcalls} =~ s/Version 3\D+(\d+)\D+/$1/g;
                    $line = 1;
                    while($line < $#output)
                    {
                    @fields = split /\s+/,$output[$line]; # First field names on one line
                    $output[$line+1] =~ s/\d+%//g; # Get rid of percentage values
                    @values = split /\s+/,$output[$line+1]; # On next line field values
                    for($field=0;$field <= $#fields;$field++)
                    {
                    print ZS "- znfs3c.$fields[$field] $values[$field]\n";
                    $res{$fields[$field]} = $values[$field];
                    }
                    $line+=2;
                    }
                    close (ZS);
                    $rc = system("$zs");
                    $rc = system("rm /tmp/znfs3c_tosend");

                    Comment

                    • SergeniuS
                      Member
                      • Jan 2012
                      • 68

                      #11
                      NFS Template need

                      Originally posted by LenR
                      I found this script and a related template somewhere. Let me know if you need the template. (uses trapper)
                      LenR, sorry for nekropost :-)

                      Can you attach Zabbix template? Thx

                      Comment

                      Working...