Ad Widget

Collapse

Zabbix & Samba

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Honey
    Junior Member
    • Jan 2006
    • 5

    #1

    Zabbix & Samba

    How can I add monitoring at the service level, say I want to monitor a Samba server, what parameters need to be set.

    Thanks,
    Honey
  • cameronsto
    Senior Member
    • Oct 2005
    • 148

    #2
    What specifically are you wanting to monitor?

    -cameron

    Comment

    • Honey
      Junior Member
      • Jan 2006
      • 5

      #3
      I would like to monitor whether Samba service is up.

      Thanks,
      Honey

      Comment

      • cameronsto
        Senior Member
        • Oct 2005
        • 148

        #4
        You could use the proc.num item to determine the number of smb processes running. See here, http://www.zabbix.com/manual/v1.1/config_items.php

        -cameron

        Comment

        • edeus
          Senior Member
          • Aug 2005
          • 120

          #5
          I would suggest using `smbstatus` or smbtree on the server as a user parameter. Then either parse through a script to get a 1 or 0 value or whatever floats your boat.

          Personally, presence of smbd/nmbd isnt a guarantee. At the end of the day, the best way is to have a script to: mount > copy a file > umount. But that is if your pedantic.

          Comment

          • jsosic
            Member
            • Apr 2008
            • 47

            #6
            I monitor smbd, nmbd and winbindd processes number and memory sum with graphs. I could provide XML template if anyone is interested.

            I'm also thinking about getting number of users from /etc/passwd and if it is equal to the number of users from 'getent passwd' then winbind is not working correctly - but this is OK only for Samba servers connected to Active Directory.

            More ideas are welcome.

            Comment

            • jsosic
              Member
              • Apr 2008
              • 47

              #7
              Ok, here's the template for anyone who asked
              Attached Files

              Comment


              • NigelHorne
                NigelHorne commented
                Editing a comment
                Has this been updated? That template gives this error on import:

                Invalid tag "/zabbix_export/templates/template(1)/items/item(1)": the tag "snmpv3_contextname" is missing.
            Working...