Graphing DHCP pools

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Graphing DHCP pools

project722
Hey guys, I'm looking for a solution that can take the data from our dhcp server and use that to create charts and graphs of of our scopes. Currently we are using a homegrown bash script that uses the Google API for charts to do the graphing and create the charts. But, although its very nice looking it takes ALOT of re-working the script every time we add a pool or adjust a scope. I'm looking for another solution. One that can automatically detect and put up a new chart when we add scopes and one that could possibly retain historical data. I've thought about solarwinds but I'm not sure if it can plug into Linux like this or if it even has such a feature for dhcpd. 

Any suggestions?

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

Anderson, Charles R
There is:

https://github.com/ohitz/dhcpd-snmp

Then you can use your favorite SNMP graphing tool.

On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:

> Hey guys, I'm looking for a solution that can take the data from our dhcp
> server and use that to create charts and graphs of of our scopes. Currently
> we are using a homegrown bash script that uses the Google API for charts to
> do the graphing and create the charts. But, although its very nice looking
> it takes ALOT of re-working the script every time we add a pool or adjust a
> scope. I'm looking for another solution. One that can automatically detect
> and put up a new chart when we add scopes and one that could possibly
> retain historical data. I've thought about solarwinds but I'm not sure if
> it can plug into Linux like this or if it even has such a feature for
> dhcpd.
>
> Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

Munroe Sollog
We a script called dhpool.pl (found it on the internet, I can provide it if you need), to nagios (for alerting) and to influx/grafana (for visualization)

On Mon, Dec 4, 2017 at 10:33 AM, Chuck Anderson <[hidden email]> wrote:
There is:

https://github.com/ohitz/dhcpd-snmp

Then you can use your favorite SNMP graphing tool.

On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> Hey guys, I'm looking for a solution that can take the data from our dhcp
> server and use that to create charts and graphs of of our scopes. Currently
> we are using a homegrown bash script that uses the Google API for charts to
> do the graphing and create the charts. But, although its very nice looking
> it takes ALOT of re-working the script every time we add a pool or adjust a
> scope. I'm looking for another solution. One that can automatically detect
> and put up a new chart when we add scopes and one that could possibly
> retain historical data. I've thought about solarwinds but I'm not sure if
> it can plug into Linux like this or if it even has such a feature for
> dhcpd.
>
> Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users



--
Munroe Sollog
Senior Network Engineer

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Graphing DHCP pools

David Ramage
In reply to this post by Anderson, Charles R
I use that tool.  It is very nice because it allows you to monitor your pools via your existing NMS.

-----Original Message-----
From: dhcp-users [mailto:[hidden email]] On Behalf Of Chuck Anderson
Sent: Monday, December 04, 2017 7:33 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

There is:

https://github.com/ohitz/dhcpd-snmp

Then you can use your favorite SNMP graphing tool.

On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:

> Hey guys, I'm looking for a solution that can take the data from our
> dhcp server and use that to create charts and graphs of of our scopes.
> Currently we are using a homegrown bash script that uses the Google
> API for charts to do the graphing and create the charts. But, although
> its very nice looking it takes ALOT of re-working the script every
> time we add a pool or adjust a scope. I'm looking for another
> solution. One that can automatically detect and put up a new chart
> when we add scopes and one that could possibly retain historical data.
> I've thought about solarwinds but I'm not sure if it can plug into
> Linux like this or if it even has such a feature for dhcpd.
>
> Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
________________________________
The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

project722
David, which one are you referring to? dhcpd-snmp or dhpool.pl?

On Mon, Dec 4, 2017 at 10:29 AM, David Ramage <[hidden email]> wrote:
I use that tool.  It is very nice because it allows you to monitor your pools via your existing NMS.

-----Original Message-----
From: dhcp-users [mailto:[hidden email]] On Behalf Of Chuck Anderson
Sent: Monday, December 04, 2017 7:33 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

There is:

https://github.com/ohitz/dhcpd-snmp

Then you can use your favorite SNMP graphing tool.

On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> Hey guys, I'm looking for a solution that can take the data from our
> dhcp server and use that to create charts and graphs of of our scopes.
> Currently we are using a homegrown bash script that uses the Google
> API for charts to do the graphing and create the charts. But, although
> its very nice looking it takes ALOT of re-working the script every
> time we add a pool or adjust a scope. I'm looking for another
> solution. One that can automatically detect and put up a new chart
> when we add scopes and one that could possibly retain historical data.
> I've thought about solarwinds but I'm not sure if it can plug into
> Linux like this or if it even has such a feature for dhcpd.
>
> Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
________________________________
The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

project722
I'm looking into the dhcpd-snmp tool. I've downloaded the files, and they are working correctly. I'm at the part of the instructions where is says "it can now be installed in Net-SNMP".

 https://github.com/ohitz/dhcpd-snmp

I'm not the best with SNMP, and my team does not have our own NMS. That being said, I am looking into standing one up. But, first, can someone tell me where Net-SNMP needs to be installed? Is that on the DHCP server itself or the NMS? Can someone suggest a good open source NMS that can run on Red Hat/Cent and can then graph this data that it collects?

On Wed, Dec 6, 2017 at 8:20 AM, project722 <[hidden email]> wrote:
David, which one are you referring to? dhcpd-snmp or dhpool.pl?

On Mon, Dec 4, 2017 at 10:29 AM, David Ramage <[hidden email]> wrote:
I use that tool.  It is very nice because it allows you to monitor your pools via your existing NMS.

-----Original Message-----
From: dhcp-users [mailto:[hidden email]] On Behalf Of Chuck Anderson
Sent: Monday, December 04, 2017 7:33 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

There is:

https://github.com/ohitz/dhcpd-snmp

Then you can use your favorite SNMP graphing tool.

On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> Hey guys, I'm looking for a solution that can take the data from our
> dhcp server and use that to create charts and graphs of of our scopes.
> Currently we are using a homegrown bash script that uses the Google
> API for charts to do the graphing and create the charts. But, although
> its very nice looking it takes ALOT of re-working the script every
> time we add a pool or adjust a scope. I'm looking for another
> solution. One that can automatically detect and put up a new chart
> when we add scopes and one that could possibly retain historical data.
> I've thought about solarwinds but I'm not sure if it can plug into
> Linux like this or if it even has such a feature for dhcpd.
>
> Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
________________________________
The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

Anderson, Charles R
Add this:

pass_persist .1.3.6.1.4.1.21695.1.2 /usr/sbin/dhcpd-snmp /etc/dhcpd-snmp.conf

to the file /etc/snmp/snmpd.local.conf (create the file if it doesn't exist already).

Adjust file paths appropriately.  Then restart snmpd.

On Wed, Dec 06, 2017 at 09:58:11AM -0600, project722 wrote:

> I'm looking into the dhcpd-snmp tool. I've downloaded the files, and they
> are working correctly. I'm at the part of the instructions where is says
> "it can now be installed in Net-SNMP".
>
>  https://github.com/ohitz/dhcpd-snmp
>
> I'm not the best with SNMP, and my team does not have our own NMS. That
> being said, I am looking into standing one up. But, first, can someone tell
> me where Net-SNMP needs to be installed? Is that on the DHCP server itself
> or the NMS? Can someone suggest a good open source NMS that can run on Red
> Hat/Cent and can then graph this data that it collects?
>
> On Wed, Dec 6, 2017 at 8:20 AM, project722 <[hidden email]> wrote:
>
> > David, which one are you referring to? dhcpd-snmp or dhpool.pl?
> >
> > On Mon, Dec 4, 2017 at 10:29 AM, David Ramage <[hidden email]>
> > wrote:
> >
> >> I use that tool.  It is very nice because it allows you to monitor your
> >> pools via your existing NMS.
> >>
> >> -----Original Message-----
> >> From: dhcp-users [mailto:[hidden email]] On Behalf Of
> >> Chuck Anderson
> >> Sent: Monday, December 04, 2017 7:33 AM
> >> To: Users of ISC DHCP <[hidden email]>
> >> Subject: Re: Graphing DHCP pools
> >>
> >> There is:
> >>
> >> https://github.com/ohitz/dhcpd-snmp
> >>
> >> Then you can use your favorite SNMP graphing tool.
> >>
> >> On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> >> > Hey guys, I'm looking for a solution that can take the data from our
> >> > dhcp server and use that to create charts and graphs of of our scopes.
> >> > Currently we are using a homegrown bash script that uses the Google
> >> > API for charts to do the graphing and create the charts. But, although
> >> > its very nice looking it takes ALOT of re-working the script every
> >> > time we add a pool or adjust a scope. I'm looking for another
> >> > solution. One that can automatically detect and put up a new chart
> >> > when we add scopes and one that could possibly retain historical data.
> >> > I've thought about solarwinds but I'm not sure if it can plug into
> >> > Linux like this or if it even has such a feature for dhcpd.
> >> >
> >> > Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Graphing DHCP pools

David Ramage
In reply to this post by project722

Sorry for the ambiguity.  I use dhcpd-snmp.

 

I added this line to snmpd.conf on my dhcp server after installing dhcpd-snmp:

 

pass_persist .1.3.6.1.4.1.21695.1.2 /opt/dhcpd-snmp/dhcpd-snmp /opt/dhcpd-snmp/dhcpd-snmp.conf

 

Here’s an example dhcpd-snmp.conf:

 

leases: /var/lib/dhcp/dhcpd.leases

pool: 1, "POOL 1 a_pool", 10.3.0.2-10.3.0.254

pool: 2, "POOL 2 another_pool", 10.4.0.2-10.4.0.254

 

Each of these pools now has a few pollable OIDs associated with them, which will in turn return the number of available addresses in the pool.  1.3.6.1.4.1.21695.1.2.2.6.1 is for the first pool, 1.3.6.1.4.1.21695.1.2.2.6.2 for the second, etc.

 

I think there may be other OIDs that return other statistics, but I cannot remember them offhand.

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of project722
Sent: Wednesday, December 06, 2017 7:58 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

 

I'm looking into the dhcpd-snmp tool. I've downloaded the files, and they are working correctly. I'm at the part of the instructions where is says "it can now be installed in Net-SNMP".

 https://github.com/ohitz/dhcpd-snmp

I'm not the best with SNMP, and my team does not have our own NMS. That being said, I am looking into standing one up. But, first, can someone tell me where Net-SNMP needs to be installed? Is that on the DHCP server itself or the NMS? Can someone suggest a good open source NMS that can run on Red Hat/Cent and can then graph this data that it collects?

 

On Wed, Dec 6, 2017 at 8:20 AM, project722 <[hidden email]> wrote:

David, which one are you referring to? dhcpd-snmp or dhpool.pl?

 

On Mon, Dec 4, 2017 at 10:29 AM, David Ramage <[hidden email]> wrote:

I use that tool.  It is very nice because it allows you to monitor your pools via your existing NMS.


-----Original Message-----
From: dhcp-users [mailto:[hidden email]] On Behalf Of Chuck Anderson
Sent: Monday, December 04, 2017 7:33 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

There is:

https://github.com/ohitz/dhcpd-snmp

Then you can use your favorite SNMP graphing tool.

On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> Hey guys, I'm looking for a solution that can take the data from our
> dhcp server and use that to create charts and graphs of of our scopes.
> Currently we are using a homegrown bash script that uses the Google
> API for charts to do the graphing and create the charts. But, although
> its very nice looking it takes ALOT of re-working the script every
> time we add a pool or adjust a scope. I'm looking for another
> solution. One that can automatically detect and put up a new chart
> when we add scopes and one that could possibly retain historical data.
> I've thought about solarwinds but I'm not sure if it can plug into
> Linux like this or if it even has such a feature for dhcpd.
>
> Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

________________________________
The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 

 


The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

Anderson, Charles R
In reply to this post by project722
Here is my previous email on this topic with a patch for dhcpd-snmp
that gives more detailed stats, especially for DHCP Failover:

https://lists.isc.org/pipermail/dhcp-users/2014-March/017693.html

On Wed, Dec 06, 2017 at 11:23:22AM -0500, Chuck Anderson wrote:

> Add this:
>
> pass_persist .1.3.6.1.4.1.21695.1.2 /usr/sbin/dhcpd-snmp /etc/dhcpd-snmp.conf
>
> to the file /etc/snmp/snmpd.local.conf (create the file if it doesn't exist already).
>
> Adjust file paths appropriately.  Then restart snmpd.
>
> On Wed, Dec 06, 2017 at 09:58:11AM -0600, project722 wrote:
> > I'm looking into the dhcpd-snmp tool. I've downloaded the files, and they
> > are working correctly. I'm at the part of the instructions where is says
> > "it can now be installed in Net-SNMP".
> >
> >  https://github.com/ohitz/dhcpd-snmp
> >
> > I'm not the best with SNMP, and my team does not have our own NMS. That
> > being said, I am looking into standing one up. But, first, can someone tell
> > me where Net-SNMP needs to be installed? Is that on the DHCP server itself
> > or the NMS? Can someone suggest a good open source NMS that can run on Red
> > Hat/Cent and can then graph this data that it collects?
> >
> > On Wed, Dec 6, 2017 at 8:20 AM, project722 <[hidden email]> wrote:
> >
> > > David, which one are you referring to? dhcpd-snmp or dhpool.pl?
> > >
> > > On Mon, Dec 4, 2017 at 10:29 AM, David Ramage <[hidden email]>
> > > wrote:
> > >
> > >> I use that tool.  It is very nice because it allows you to monitor your
> > >> pools via your existing NMS.
> > >>
> > >> -----Original Message-----
> > >> From: dhcp-users [mailto:[hidden email]] On Behalf Of
> > >> Chuck Anderson
> > >> Sent: Monday, December 04, 2017 7:33 AM
> > >> To: Users of ISC DHCP <[hidden email]>
> > >> Subject: Re: Graphing DHCP pools
> > >>
> > >> There is:
> > >>
> > >> https://github.com/ohitz/dhcpd-snmp
> > >>
> > >> Then you can use your favorite SNMP graphing tool.
> > >>
> > >> On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> > >> > Hey guys, I'm looking for a solution that can take the data from our
> > >> > dhcp server and use that to create charts and graphs of of our scopes.
> > >> > Currently we are using a homegrown bash script that uses the Google
> > >> > API for charts to do the graphing and create the charts. But, although
> > >> > its very nice looking it takes ALOT of re-working the script every
> > >> > time we add a pool or adjust a scope. I'm looking for another
> > >> > solution. One that can automatically detect and put up a new chart
> > >> > when we add scopes and one that could possibly retain historical data.
> > >> > I've thought about solarwinds but I'm not sure if it can plug into
> > >> > Linux like this or if it even has such a feature for dhcpd.
> > >> >
> > >> > Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

project722
What do you guys use for the NMS graphing part ? Cacti? Solarwinds?

On Wed, Dec 6, 2017 at 10:43 AM, Chuck Anderson <[hidden email]> wrote:
Here is my previous email on this topic with a patch for dhcpd-snmp
that gives more detailed stats, especially for DHCP Failover:

https://lists.isc.org/pipermail/dhcp-users/2014-March/017693.html

On Wed, Dec 06, 2017 at 11:23:22AM -0500, Chuck Anderson wrote:
> Add this:
>
> pass_persist .1.3.6.1.4.1.21695.1.2 /usr/sbin/dhcpd-snmp /etc/dhcpd-snmp.conf
>
> to the file /etc/snmp/snmpd.local.conf (create the file if it doesn't exist already).
>
> Adjust file paths appropriately.  Then restart snmpd.
>
> On Wed, Dec 06, 2017 at 09:58:11AM -0600, project722 wrote:
> > I'm looking into the dhcpd-snmp tool. I've downloaded the files, and they
> > are working correctly. I'm at the part of the instructions where is says
> > "it can now be installed in Net-SNMP".
> >
> >  https://github.com/ohitz/dhcpd-snmp
> >
> > I'm not the best with SNMP, and my team does not have our own NMS. That
> > being said, I am looking into standing one up. But, first, can someone tell
> > me where Net-SNMP needs to be installed? Is that on the DHCP server itself
> > or the NMS? Can someone suggest a good open source NMS that can run on Red
> > Hat/Cent and can then graph this data that it collects?
> >
> > On Wed, Dec 6, 2017 at 8:20 AM, project722 <[hidden email]> wrote:
> >
> > > David, which one are you referring to? dhcpd-snmp or dhpool.pl?
> > >
> > > On Mon, Dec 4, 2017 at 10:29 AM, David Ramage <[hidden email]>
> > > wrote:
> > >
> > >> I use that tool.  It is very nice because it allows you to monitor your
> > >> pools via your existing NMS.
> > >>
> > >> -----Original Message-----
> > >> From: dhcp-users [mailto:[hidden email]] On Behalf Of
> > >> Chuck Anderson
> > >> Sent: Monday, December 04, 2017 7:33 AM
> > >> To: Users of ISC DHCP <[hidden email]>
> > >> Subject: Re: Graphing DHCP pools
> > >>
> > >> There is:
> > >>
> > >> https://github.com/ohitz/dhcpd-snmp
> > >>
> > >> Then you can use your favorite SNMP graphing tool.
> > >>
> > >> On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> > >> > Hey guys, I'm looking for a solution that can take the data from our
> > >> > dhcp server and use that to create charts and graphs of of our scopes.
> > >> > Currently we are using a homegrown bash script that uses the Google
> > >> > API for charts to do the graphing and create the charts. But, although
> > >> > its very nice looking it takes ALOT of re-working the script every
> > >> > time we add a pool or adjust a scope. I'm looking for another
> > >> > solution. One that can automatically detect and put up a new chart
> > >> > when we add scopes and one that could possibly retain historical data.
> > >> > I've thought about solarwinds but I'm not sure if it can plug into
> > >> > Linux like this or if it even has such a feature for dhcpd.
> > >> >
> > >> > Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Graphing DHCP pools

David Ramage

I have custom pollers built in Solarwinds, and that handles the graphs for me.

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of project722
Sent: Wednesday, December 06, 2017 9:19 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

 

What do you guys use for the NMS graphing part ? Cacti? Solarwinds?

 

On Wed, Dec 6, 2017 at 10:43 AM, Chuck Anderson <[hidden email]> wrote:

Here is my previous email on this topic with a patch for dhcpd-snmp
that gives more detailed stats, especially for DHCP Failover:

https://lists.isc.org/pipermail/dhcp-users/2014-March/017693.html

On Wed, Dec 06, 2017 at 11:23:22AM -0500, Chuck Anderson wrote:
> Add this:
>
> pass_persist .1.3.6.1.4.1.21695.1.2 /usr/sbin/dhcpd-snmp /etc/dhcpd-snmp.conf
>
> to the file /etc/snmp/snmpd.local.conf (create the file if it doesn't exist already).
>
> Adjust file paths appropriately.  Then restart snmpd.
>
> On Wed, Dec 06, 2017 at 09:58:11AM -0600, project722 wrote:

> > I'm looking into the dhcpd-snmp tool. I've downloaded the files, and they
> > are working correctly. I'm at the part of the instructions where is says
> > "it can now be installed in Net-SNMP".
> >
> >  https://github.com/ohitz/dhcpd-snmp
> >
> > I'm not the best with SNMP, and my team does not have our own NMS. That
> > being said, I am looking into standing one up. But, first, can someone tell
> > me where Net-SNMP needs to be installed? Is that on the DHCP server itself
> > or the NMS? Can someone suggest a good open source NMS that can run on Red
> > Hat/Cent and can then graph this data that it collects?
> >
> > On Wed, Dec 6, 2017 at 8:20 AM, project722 <[hidden email]> wrote:
> >
> > > David, which one are you referring to? dhcpd-snmp or dhpool.pl?
> > >
> > > On Mon, Dec 4, 2017 at 10:29 AM, David Ramage <[hidden email]>
> > > wrote:
> > >
> > >> I use that tool.  It is very nice because it allows you to monitor your
> > >> pools via your existing NMS.
> > >>
> > >> -----Original Message-----
> > >> From: dhcp-users [mailto:[hidden email]] On Behalf Of
> > >> Chuck Anderson
> > >> Sent: Monday, December 04, 2017 7:33 AM
> > >> To: Users of ISC DHCP <[hidden email]>
> > >> Subject: Re: Graphing DHCP pools
> > >>
> > >> There is:
> > >>
> > >> https://github.com/ohitz/dhcpd-snmp
> > >>
> > >> Then you can use your favorite SNMP graphing tool.
> > >>
> > >> On Mon, Dec 04, 2017 at 08:52:51AM -0600, project722 wrote:
> > >> > Hey guys, I'm looking for a solution that can take the data from our
> > >> > dhcp server and use that to create charts and graphs of of our scopes.
> > >> > Currently we are using a homegrown bash script that uses the Google
> > >> > API for charts to do the graphing and create the charts. But, although
> > >> > its very nice looking it takes ALOT of re-working the script every
> > >> > time we add a pool or adjust a scope. I'm looking for another
> > >> > solution. One that can automatically detect and put up a new chart
> > >> > when we add scopes and one that could possibly retain historical data.
> > >> > I've thought about solarwinds but I'm not sure if it can plug into
> > >> > Linux like this or if it even has such a feature for dhcpd.
> > >> >
> > >> > Any suggestions?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 


The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

Simon Hobson
In reply to this post by project722
project722 <[hidden email]> wrote:

> Can someone suggest a good open source NMS that can run on Red Hat/Cent and can then graph this data that it collects?

It's not an NMS itself, but Cacti is good at polling devices by SNMP and graphing the data (using RRD). The key to ease of use with Cacti is to configure templates for data sources and graphs - that way, setting up a new one is a few clicks, fill in the IP and OID, and there's another data source added.
As I read the docs (very briefly), the dhcpd-snmp needs to be configured for each pool - so you still need to so some configuring as you add/delete pools. But with templating it shouldn't be too onerous.

Cacti does take a bit of learning, but it's a good tool when you get into it.

I've also used Nagios for monitoring - and that can collect stats as it polls to device status. So there's another route.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Graphing DHCP pools

Patrick Trapp
In reply to this post by project722

Our developers (I can make no such claim) developed a script that populates a web page on the fly with a simple report of what pools we have and how many of their addresses are currently allocated. It could possibly be modified and used to populate a database for graphing, but I think you probably have plenty of options already presented to you, so I will hold off throwing another one on the pile.

 

Let me know if you want me to inquire about the details.

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of project722
Sent: Monday, December 4, 2017 8:53 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Graphing DHCP pools

 

Hey guys, I'm looking for a solution that can take the data from our dhcp server and use that to create charts and graphs of of our scopes. Currently we are using a homegrown bash script that uses the Google API for charts to do the graphing and create the charts. But, although its very nice looking it takes ALOT of re-working the script every time we add a pool or adjust a scope. I'm looking for another solution. One that can automatically detect and put up a new chart when we add scopes and one that could possibly retain historical data. I've thought about solarwinds but I'm not sure if it can plug into Linux like this or if it even has such a feature for dhcpd. 

 

Any suggestions?


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Graphing DHCP pools

David Ramage
In reply to this post by Simon Hobson
You are correct, dhcp-snmpd does indeed need to be configured for each pool.

I have an Ansible template that builds my dhcpd.conf.  I have another one that uses the same data to  build snmpd.conf, so both jobs are handled automatically.

-----Original Message-----
From: dhcp-users [mailto:[hidden email]] On Behalf Of Simon Hobson
Sent: Wednesday, December 06, 2017 12:27 PM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

project722 <[hidden email]> wrote:

> Can someone suggest a good open source NMS that can run on Red Hat/Cent and can then graph this data that it collects?

It's not an NMS itself, but Cacti is good at polling devices by SNMP and graphing the data (using RRD). The key to ease of use with Cacti is to configure templates for data sources and graphs - that way, setting up a new one is a few clicks, fill in the IP and OID, and there's another data source added.
As I read the docs (very briefly), the dhcpd-snmp needs to be configured for each pool - so you still need to so some configuring as you add/delete pools. But with templating it shouldn't be too onerous.

Cacti does take a bit of learning, but it's a good tool when you get into it.

I've also used Nagios for monitoring - and that can collect stats as it polls to device status. So there's another route.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
________________________________
The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

Gregory Sloop
Re: Graphing DHCP pools If someone does get this running under Cacti/Nagios/OMD, I'd love to have a recap of the steps. I've wanted to set it up that way for a long time, but have frankly been too lazy and busy to take the time to make it work.

If someone was so kind as to share your process it would probably save me some time and aggravation! :)

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

project722
I'm going to look into Cacti, as we will probably not deem this high enough on the priority list to purchase Solarwinds. But, for the moment, I have setup dhcpd-snmp on my DHCP server. When I perform an snmpwalk remotely, I get the following message:

#snmpwalk -v 2c host -c public .1.3.6.1.4.1.21695.1.2
SNMPv2-SMI::enterprises.21695.1.2 = No more variables left in this MIB View (It is past the end of the MIB tree)

I have inserted the following line into my snmpd.conf file on the DHCP server and restarted snmpd:

pass_persist .1.3.6.1.4.1.21695.1.2 /path-to/dhcpd-snmp /path-to/dhcpd-snmp.conf

Any suggestions on how to fix?


On Wed, Dec 6, 2017 at 2:50 PM, Gregory Sloop <[hidden email]> wrote:
If someone does get this running under Cacti/Nagios/OMD, I'd love to have a recap of the steps. I've wanted to set it up that way for a long time, but have frankly been too lazy and busy to take the time to make it work.

If someone was so kind as to share your process it would probably save me some time and aggravation! :)

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Graphing DHCP pools

David Ramage

What does your dhcpd-snmp.conf look like?

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of project722
Sent: Thursday, December 07, 2017 6:10 AM
To: Greg Sloop <[hidden email]>; Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

 

I'm going to look into Cacti, as we will probably not deem this high enough on the priority list to purchase Solarwinds. But, for the moment, I have setup dhcpd-snmp on my DHCP server. When I perform an snmpwalk remotely, I get the following message:

 

#snmpwalk -v 2c host -c public .1.3.6.1.4.1.21695.1.2

SNMPv2-SMI::enterprises.21695.1.2 = No more variables left in this MIB View (It is past the end of the MIB tree)

 

I have inserted the following line into my snmpd.conf file on the DHCP server and restarted snmpd:

 

pass_persist .1.3.6.1.4.1.21695.1.2 /path-to/dhcpd-snmp /path-to/dhcpd-snmp.conf

 

Any suggestions on how to fix?

 

 

On Wed, Dec 6, 2017 at 2:50 PM, Gregory Sloop <[hidden email]> wrote:

If someone does get this running under Cacti/Nagios/OMD, I'd love to have a recap of the steps. I've wanted to set it up that way for a long time, but have frankly been too lazy and busy to take the time to make it work.

If someone was so kind as to share your process it would probably save me some time and aggravation! :)


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 


The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

Simon Hobson
In reply to this post by project722
project722 <[hidden email]> wrote:

> I'm going to look into Cacti, as we will probably not deem this high enough on the priority list to purchase Solarwinds. But, for the moment, I have setup dhcpd-snmp on my DHCP server.

Just a thought ...
Cacti doesn't HAVE to use SNMP, you can supply your own data externally. So you could use any means of extracting the pool status and insert that into RRD files, and let Cacti handle the graphing. Obviously it starts getting more complicated if the DHCP and Cacti servers are on different hosts.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Graphing DHCP pools

project722
@David Rampage - I am still wrestling with that error when poling externally. Here is my dhcpd-snmp.conf file structure, as you requested. 

# Configuration file for dhcpd-snmp

# Path to the dhcpd.leases file.
#
# leases: /var/lib/dhcp3/dhcpd.leases

leases: /var/lib/dhcpd/dhcpd.leases

# Definition of the pools
#
# pool: number, description, from-to, from-to, from-to...

pool: 1, "Market 1", 192.168.100.100 192.168.100.254 192.168.101.100 192.168.101.254

pool: 2, "Market 2", 192.168.200.100 192.168.200.254 192.168.201.100 192.168.201.254

pool: 3, "Market 3", 192.168.202.100 192.168.202.254 192.168.203.100 192.168.203.254


Just to recap, I can run the dhcpd-snmp script locally, and it works. But if I try an smnpwalk from a remote device, I get the following error:

#snmpwalk -v 2c <host> -c public .1.3.6.1.4.1.21695.1.2
SNMPv2-SMI::enterprises.21695.1.2 = No more variables left in this MIB View (It is past the end of the MIB tree)

Do I need to place some dhcpd-snmp specific MIB's somewhere on the server?


On Thu, Dec 7, 2017 at 3:34 PM, Simon Hobson <[hidden email]> wrote:
project722 <[hidden email]> wrote:

> I'm going to look into Cacti, as we will probably not deem this high enough on the priority list to purchase Solarwinds. But, for the moment, I have setup dhcpd-snmp on my DHCP server.

Just a thought ...
Cacti doesn't HAVE to use SNMP, you can supply your own data externally. So you could use any means of extracting the pool status and insert that into RRD files, and let Cacti handle the graphing. Obviously it starts getting more complicated if the DHCP and Cacti servers are on different hosts.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Graphing DHCP pools

David Ramage

That dhcpd-snmp.conf looks good to me, so I’m afraid I have to ask you a couple of other questions.

 

Are you able to poll any OIDs from your server at all?

 

If you are, do you have the pass-through MIB extension in your sntmpd.conf?

 

 

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of project722
Sent: Thursday, December 21, 2017 10:51 AM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Graphing DHCP pools

 

@David Rampage - I am still wrestling with that error when poling externally. Here is my dhcpd-snmp.conf file structure, as you requested. 

 

# Configuration file for dhcpd-snmp

 

# Path to the dhcpd.leases file.

#

# leases: /var/lib/dhcp3/dhcpd.leases

 

leases: /var/lib/dhcpd/dhcpd.leases

 

# Definition of the pools

#

# pool: number, description, from-to, from-to, from-to...

 

pool: 1, "Market 1", 192.168.100.100 192.168.100.254 192.168.101.100 192.168.101.254

 

pool: 2, "Market 2", 192.168.200.100 192.168.200.254 192.168.201.100 192.168.201.254

 

pool: 3, "Market 3", 192.168.202.100 192.168.202.254 192.168.203.100 192.168.203.254

 

 

Just to recap, I can run the dhcpd-snmp script locally, and it works. But if I try an smnpwalk from a remote device, I get the following error:

 

#snmpwalk -v 2c <host> -c public .1.3.6.1.4.1.21695.1.2

SNMPv2-SMI::enterprises.21695.1.2 = No more variables left in this MIB View (It is past the end of the MIB tree)

 

Do I need to place some dhcpd-snmp specific MIB's somewhere on the server?

 

 

On Thu, Dec 7, 2017 at 3:34 PM, Simon Hobson <[hidden email]> wrote:

project722 <[hidden email]> wrote:

> I'm going to look into Cacti, as we will probably not deem this high enough on the priority list to purchase Solarwinds. But, for the moment, I have setup dhcpd-snmp on my DHCP server.

Just a thought ...
Cacti doesn't HAVE to use SNMP, you can supply your own data externally. So you could use any means of extracting the pool status and insert that into RRD files, and let Cacti handle the graphing. Obviously it starts getting more complicated if the DHCP and Cacti servers are on different hosts.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 


The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
12