dhcpd-snmp

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

OneZero
Posts: 14
Joined: Sat Jun 11, 2011 7:31 pm

Re: dhcpd-snmp

Post by OneZero »

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

Re: dhcpd-snmp

Post by Saniapa »

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

Re: dhcpd-snmp

Post by zitomedia »

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: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: dhcpd-snmp

Post by tosage »

Sorry zito, i have answer on your other topic, reply here please :wink:
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

Re: dhcpd-snmp

Post by zitomedia »

tosage wrote:Sorry zito, i have answer on your other topic, reply here please :wink:
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: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: dhcpd-snmp

Post by tosage »

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

Re: dhcpd-snmp

Post by zitomedia »

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

Re: dhcpd-snmp

Post by zitomedia »

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: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: dhcpd-snmp

Post by tosage »

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
DHCPD Network State & Shared Network State.png (250 KiB) Viewed 5924 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

Re: dhcpd-snmp

Post by zitomedia »

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: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: dhcpd-snmp

Post by tosage »

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 :wink:
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

Re: dhcpd-snmp

Post by zitomedia »

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 :wink:

ok, that sounds great, thanks!
tosage
Cacti User
Posts: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: dhcpd-snmp

Post by tosage »

Hello all,

I put my templates for graph dhcp3-server under Linux :D
I give you a little howto for the installation/configuration on your dhcp3 server and on your cacti server.

Good Luck :wink:

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 696 times
HOWTO - Installation.txt
Installation Manual
(2.61 KiB) Downloaded 1655 times
dhcpd-shared-network-state.xml
DHCPD Shared Network XML Query
(1.43 KiB) Downloaded 683 times
dhcpd-network-state.xml
DHCPD Network Template XMl Query
(1.11 KiB) Downloaded 654 times
DHCPD Scripts.zip
Scripts
(43.5 KiB) Downloaded 1109 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

Re: dhcpd-snmp

Post by andreukit »

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: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: dhcpd-snmp

Post by tosage »

@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 :wink:
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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests