dhcpd-snmp

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

Moderators: Moderators, Developers

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

Re: dhcpd-snmp

#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

Re: dhcpd-snmp

#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

Re: dhcpd-snmp

#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

Re: dhcpd-snmp

#34 Post by tosage » Sat Jan 28, 2012 11:52 am

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

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

Re: dhcpd-snmp

#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

Re: dhcpd-snmp

#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

Re: dhcpd-snmp

#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

Re: dhcpd-snmp

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

#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

Re: dhcpd-snmp

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

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

ok, that sounds great, thanks!

tosage
Cacti User
Posts: 154
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: dhcpd-snmp

#43 Post by tosage » Wed Feb 15, 2012 11:53 am

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 624 times
HOWTO - Installation.txt
Installation Manual
(2.61 KiB) Downloaded 1410 times
dhcpd-shared-network-state.xml
DHCPD Shared Network XML Query
(1.43 KiB) Downloaded 618 times
dhcpd-network-state.xml
DHCPD Network Template XMl Query
(1.11 KiB) Downloaded 587 times
DHCPD Scripts.zip
Scripts
(43.5 KiB) Downloaded 1029 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

#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

Re: dhcpd-snmp

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