Ad Widget

Collapse

Template for DHCP Scope monitoring for Windows Server 2008/12 R2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixfk
    Senior Member
    • Jun 2013
    • 256

    #1

    Template for DHCP Scope monitoring for Windows Server 2008/12 R2

    Hello All,

    Has anybody came across monitoring DHCP scopes on Windows Servers under zabbix? If yes, can you share the templates/items used.

    I am able to get the list by using below powershell commands.

    - Get the list of IP Scopes Defined
    Code:
    netsh dhcp server show mibinfo|findstr Subnet |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str"}
    - Number of IP address Used
    Code:
    netsh dhcp server show mibinfo|findstr use |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str"}
    - Number fo IP Free
    Code:
    netsh dhcp server show mibinfo|findstr free |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str”}
    - Number of IP pending to be assigned
    Code:
    netsh dhcp server show mibinfo|findstr pending |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str"}

    The problem here is I can't hardcode the list as some places scope has 5, and some has 10. I need to alert if the lease is going more than 80% ( of each scope).

    Any pointers are greatly helpful.

    Thanks.
  • zabbixfk
    Senior Member
    • Jun 2013
    • 256

    #2
    Help on Template for DHCP Scope monitoring for Windows Server 2008/12 R2

    Any pointers ?


    Thanks

    Comment

    • denser
      Member
      • Oct 2014
      • 30

      #3
      I made some template via SNMP

      If you have some comments - you are welcome
      Attached Files

      Comment

      • zabbixfk
        Senior Member
        • Jun 2013
        • 256

        #4
        [CLOSED] Template for DHCP Scope monitoring for Windows Server 2008/12 R2

        Denser: Thank you for the reply.

        We converted commands which is shared on first post to PS1 scripts. Then wrote an wrapper windows batch file which calls saved PS1 scripts for the data.
        Based on the data we wrote triggers in zabbix.

        Thanks.

        Comment

        • denser
          Member
          • Oct 2014
          • 30

          #5
          Originally posted by zabbixfk
          Denser: Thank you for the reply.

          We converted commands which is shared on first post to PS1 scripts. Then wrote an wrapper windows batch file which calls saved PS1 scripts for the data.
          Based on the data we wrote triggers in zabbix.

          Thanks.
          May be share results?

          Comment

          • zabbixfk
            Senior Member
            • Jun 2013
            • 256

            #6
            [CLOSED] Template for DHCP Scope monitoring for Windows Server 2008/12 R2

            Hello Denser,

            Not sure what results to be shared, can you please elaborate.

            Thanks.

            Comment

            • denser
              Member
              • Oct 2014
              • 30

              #7
              Your results, results of your work - template, scripts?

              Comment

              • zabbixfk
                Senior Member
                • Jun 2013
                • 256

                #8
                Template for DHCP Scope monitoring for Windows Server 2008/12 R2

                Will put inside cookbook section.

                Thanks.

                Comment

                Working...