Monitor DHCP workstations

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Monitor DHCP workstations

Post by SDohmen »

Hello,

For some of ours customers we need to monitor there workstations which are using dhcp. I was wondering how i can monitor these best. On the nagios machine i tried using the dns as address but this did not work at all.

Does anyone have a solution for this? Setting the workstations to static ip's is not a option.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor DHCP workstations

Post by lmiltchev »

If setting the workstations to static IPs is not an option, then you will have to use passive checks. You can read more on the topic here:

http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

Hope this helps!
Be sure to check out our Knowledgebase for helpful articles and solutions!
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Monitor DHCP workstations

Post by SDohmen »

I was hoping that there is a option where i can still use active checks because of the distributed monitoring solution we use already with passive checks.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Monitor DHCP workstations

Post by mguthrie »

The only way for the active check to work is with a valid DNS name or IP address. You said that DNS didn't work, did you update the /etc/hosts file on your Nagios XI server to reflect the local DNS entries?
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Monitor DHCP workstations

Post by SDohmen »

I am not 100% sure what you mean but i can ping my dns just fine. Except when i added it in the nagios core (its a slave for the xi central) i dont even see it showing up in the host list on that site itself.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Monitor DHCP workstations

Post by agriffin »

Is it a possibility to assign each of these workstations a dynamic DNS name?
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Monitor DHCP workstations

Post by SDohmen »

It would be possible to create dns rules for each but seeing as some of our customers have over 50 workstations, i am pretty sure my co-workers will hate me if i ask them that :D

I guess the only option is to check out NSCA even though i would prefer active checks.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Monitor DHCP workstations

Post by mguthrie »

Yeah, I think passive checks are going to be the most practical option here. Take a look at the following docs, particularly the one on Unconfigured Objects, it should make the setup fairly straightforward.
http://assets.nagios.com/downloads/nagi ... sivechecks
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Monitor DHCP workstations

Post by SDohmen »

The problem is i cant use nagios xi to monitor the customers since its our central. We use a distributed monitoring system in which the older core version runs at the customer location.

What i am wondering however is why the documentation says i can monitor on fqdn (and ip) but when i try that on my own machine it doesn't show up on the local core version where its added. Is there something special needed to get this to work or is this only able to work with the xi version?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Monitor DHCP workstations

Post by mguthrie »

Take a look at the Core docs for setting up passive checks with Core:
http://nagios.sourceforge.net/docs/3_0/ ... hecks.html

Something you could do for these checks on the local Core servers is define an OCSP command that forwards the results to the central server each time they're received. Take a look at the doc below for the full description:
http://nagios.sourceforge.net/docs/3_0/distributed.html
Locked