Templates, scripts for templates, scripts and requests for templates.
Moderators: Moderators, Developers
-
OneZero
- Posts: 14
- Joined: Sat Jun 11, 2011 7:31 pm
#31
Post
by OneZero » Sun Jan 08, 2012 8:52 pm
dahl1632 wrote:Hi, got a problem with dhcpd-snmp.
Everything works OK when i start dhcpd-snmp manually. But when i debug my snmpd it says following:
ucd-snmp/pass_persist: open_persist_pipe(2,'/usr/local/sbin/dhcpd-snmp /etc/dhcpd-snmp.conf')
ucd-snmp/pass_persist: open_persist_pipe: PONG not received!
Thank you in advance
I would like to bump this. I am attempting to set this up as well, and am getting the same error. Should that just be pass, not pass_persist? snmpwalk does not work even with it as pass. Thanks for any help with this.
Mike
-
Saniapa
- Posts: 3
- Joined: Tue Mar 29, 2011 1:47 pm
#32
Post
by Saniapa » Fri Jan 27, 2012 12:03 pm
Hello. I have a problem with running dhcp-snmp.
dhcpd-snmp /usr/local/etc/dhcpd-snmp.conf
defined(%hash) is deprecated at /usr/local/sbin/dhcpd-snmp line 224.
(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/local/sbin/dhcpd-snmp line 226.
(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/local/sbin/dhcpd-snmp line 228.
(Maybe you should just omit the defined()?)
And nothing...process hangs
-
zitomedia
- Posts: 10
- Joined: Mon Jan 23, 2012 4:37 pm
#33
Post
by zitomedia » Fri Jan 27, 2012 1:41 pm
i'm not understanding how to edit the script to work with my DHCP server, help anybody??
i am also doing this on a live box or i would mess with it more, i just don't want to do something wrong and crash the box, we have about 700 customers running from it.
-
tosage
- Cacti User
- Posts: 154
- Joined: Wed Jul 28, 2010 5:05 am
- Location: France
#34
Post
by tosage » Sat Jan 28, 2012 11:52 am
Sorry zito, i have answer on your other topic, reply here please

Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
-
zitomedia
- Posts: 10
- Joined: Mon Jan 23, 2012 4:37 pm
#35
Post
by zitomedia » Mon Jan 30, 2012 10:51 am
tosage wrote:Sorry zito, i have answer on your other topic, reply here please

ok i just want to monitor dhcpd leases, what are in use, and how many there are total this way we can add more address space if need be.
we are also using vyatta 6.2 on our dhcp servers if that helps.
-
tosage
- Cacti User
- Posts: 154
- Joined: Wed Jul 28, 2010 5:05 am
- Location: France
#36
Post
by tosage » Tue Jan 31, 2012 4:43 am
OK, vyatta is a specific distribution ?
On, you use dhcp3-server ?
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
-
zitomedia
- Posts: 10
- Joined: Mon Jan 23, 2012 4:37 pm
#37
Post
by zitomedia » Tue Jan 31, 2012 10:25 am
i take that back, we are not using vyatta, we are using ubuntu, here is the readout from first logging into the servers
Linux serv0-XXXX 2.6.32-28-generic-pae #55-Ubuntu SMP Mon Jan 10 22:34:08 UTC 2011 i686 GNU/Linux
Ubuntu 10.04.2 LTS
and yes, we are using dhcp3-server.
-
zitomedia
- Posts: 10
- Joined: Mon Jan 23, 2012 4:37 pm
#38
Post
by zitomedia » Fri Feb 03, 2012 11:24 am
can anybody help? i'm sort of at a stand still until i can figure out what to edit in the script or where to put the script in order to make this work.
-
tosage
- Cacti User
- Posts: 154
- Joined: Wed Jul 28, 2010 5:05 am
- Location: France
#39
Post
by tosage » Tue Feb 07, 2012 3:57 am
Hello zitomedia,
I took a bit of complete information provided on this forum and adapted a script to finished doing what I wanted.
I will put a screenshot, tell me if you're interested that I push them on the forum.
-
Attachments
-

- DHCPD Network State & Shared Network State.png (250 KiB) Viewed 4732 times
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
-
zitomedia
- Posts: 10
- Joined: Mon Jan 23, 2012 4:37 pm
#40
Post
by zitomedia » Tue Feb 07, 2012 10:39 am
if those are monitoring free, available, and used addresses, yes...those templates would help a lot if you would be able to post them.
-
tosage
- Cacti User
- Posts: 154
- Joined: Wed Jul 28, 2010 5:05 am
- Location: France
#41
Post
by tosage » Tue Feb 07, 2012 2:58 pm
Yep this 2 template monitor dhcpd free, expired, used and available IP with a CDEF function
I export all, i write a little manual and post all of them here

Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
-
zitomedia
- Posts: 10
- Joined: Mon Jan 23, 2012 4:37 pm
#42
Post
by zitomedia » Tue Feb 14, 2012 10:53 am
tosage wrote:Yep this 2 template monitor dhcpd free, expired, used and available IP with a CDEF function
I export all, i write a little manual and post all of them here

ok, that sounds great, thanks!
-
tosage
- Cacti User
- Posts: 154
- Joined: Wed Jul 28, 2010 5:05 am
- Location: France
#43
Post
by tosage » Wed Feb 15, 2012 11:53 am
Hello all,
I put my templates for graph dhcp3-server under Linux
I give you a little howto for the installation/configuration on your dhcp3 server and on your cacti server.
Good Luck
EDIT : Correction of the error recovery by andreukit, thanks

EDIT2 : Put the Zip with the two Graph Template and Data Queries, i had forgotten :/
-
Attachments
-
- DHCPD Graph Template and Date Queries.zip
- DHCPD Graph Template for Network State and Shared-Network State
DHCPD Data Queries - (17 KiB) Downloaded 628 times
-
- HOWTO - Installation.txt
- Installation Manual
- (2.61 KiB) Downloaded 1415 times
-
- dhcpd-shared-network-state.xml
- DHCPD Shared Network XML Query
- (1.43 KiB) Downloaded 622 times
-
- dhcpd-network-state.xml
- DHCPD Network Template XMl Query
- (1.11 KiB) Downloaded 591 times
-
- DHCPD Scripts.zip
- Scripts
- (43.5 KiB) Downloaded 1033 times
Last edited by
tosage on Wed Mar 14, 2012 6:04 am, edited 3 times in total.
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
-
andreukit
- Posts: 3
- Joined: Sat Mar 03, 2012 4:44 am
#44
Post
by andreukit » Sat Mar 03, 2012 5:01 am
I have some problems...
I can't execute your compiled dhcp-pools, on my PC, maybe you can give source code, to I recompile it for my box.
In your Instalation guide find one mistake.
sudo chown dhcpd /srv/scripts/dhcp-pools
must be
sudo chown dhcpd /srv/scripts/dhcpd-pools
-
tosage
- Cacti User
- Posts: 154
- Joined: Wed Jul 28, 2010 5:05 am
- Location: France
#45
Post
by tosage » Tue Mar 06, 2012 3:27 am
@andreukit
Thnaks for the tip, i go correct my mistake

So for the dhcpd-pools, you can found it here :
http://sourceforge.net/projects/dhcpd-pools/files/
Good Luck

Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7