Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

Problems monitoring DHCP

0 votes
1,884 views
I am trying to monitor the DHCP service on a couple of servers. I've read the page in the wiki (http://www.opennms.org/wiki/DHCP_Configuration) and also in the Admin Guide (http://docs.opennms.org/OpenNMS/snapshot/develop/documentation/guide-admin/#_dhcpmonitor). After doing all those things I do now have a service called DHCP that I can add to the ForeignFS list and associate with an interface, and those servers have started showing up in the "DNS and DHCP servers" category on the home page. But when I drill down and look at the interface in the GUI it says that DHCP is "not monitored". I take it to mean that it wouldn't detect the DHCP service failing if the server stayed up?

Thanks for any help.

Mike
OpenNMS version
17.0.0
Java version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Operating system
Ubuntu 14.04.3 LTS
PostgreSQL version
psql (PostgreSQL) 9.3.9
asked Dec 18, 2015 by thqt07 (270 points)

1 Answer

+1 vote
 
Best answer

"Not monitored" means for some reasons there is no matching "Service Monitor" in your poller-configuration.xml. It happens also very often you create the "service" configuration but miss the last line to assign a service monitor to your configuration. Can please check the following things:

  • Do you have installed the opennms-plugin-protocol-dhcp package?
  • Do you have the 
    <monitor service="DHCP" class-name="org.opennms.protocols.dhcp.monitor.DhcpMonitor"/>

    at the end of the poller-configuration.xml file?

  • If you are not sure you can use paste.opennms.eu and show us your configuration file
answered Dec 18, 2015 by indigo (11,640 points)
selected Feb 11, 2016 by indigo
Thank you for replying. My Linux is very rusty but I did do the "sudo apt-get install opennms-plugin-protocol-dhcp" command when I was following the instructions, which I presume is what your first point is about, and I have just edited the poller-configuration.xml file to add that line. I then restarted the whole thing with "sudo /etc/init.d/opennms restart" (is there a quicker way?) and some 10 minutes later it is still appearing as "not monitored" so I don't think I got everything yet. I also tried removing the service from the interfaces and then adding it back in just in case, but that didn't work either. What configuration files do you want me to post on paste.opennms.eu?
It's about the poller-configuration.xml, please make sure you have new security sensitive data in there.
OK - I've done that.
You have to share the unique link :)
You haven't created a service configuration. Please read here: http://docs.opennms.org/opennms/branches/develop/guide-admin/guide-admin.html#_dhcpmonitor. Please see also the example section.
Yes - it's working now!

My mistake - sorry for taking your time. I added the service configuration - the other parts were already all done. I tried to restart but it wouldn't stop (?) so I rebooted the whole box. Now it's working fine.
...