Page 1 of 2
DHCP configuration Wizard
Posted: Tue Dec 22, 2020 10:55 am
by kalyanpabolu
Hello Team,
We want to understand working of DHCP Configuration Wizard.
What all this can be checked using this Wizard? What other options related to DHCP server monitoring is available in Nagios?
Re: DHCP configuration Wizard
Posted: Tue Dec 22, 2020 5:37 pm
by vtrac
Hi kalyanpabolu,
Nagios provides complete monitoring of DHCP servers and protocols.
The below URL will give you more info on DHCP monitoring.
https://www.nagios.com/solutions/dhcp-monitoring/
There is a DHCP wizard in Nagios XI that can help you get started:
Nagios XI GUI > Configure > Configuration Wizards > DHCP (monitor a DHCP server)
Also, there are modules on the Nagios Exchange (below) that I'm sure one of them will meet your needs
You may be able to modify this to get any additional information that you're looking for.
https://exchange.nagios.org/directory/P ... -and-BOOTP
Best Regards,
Vinh
Re: DHCP configuration Wizard
Posted: Thu Dec 24, 2020 6:25 am
by kalyanpabolu
Hello,
I have tried Windows DHCP Scope Check plugin.
While trying to execute it from Nagios server, I am getting this error:
[root@vmaz-nagiosxi libexec]# ./check_dhcp_scopes.ps1 -Warning 80 -Critical 90
-bash: ./check_dhcp_scopes.ps1: cannot execute binary file: Exec format error
[root@vmaz-nagiosxi libexec]#
Will this work with NCPA?
Do I need to put the plugin in Windows server?
Re: DHCP configuration Wizard
Posted: Mon Dec 28, 2020 12:16 pm
by vtrac
Hi kalyanpabolu,
Looks like the "check_dhcp_scopes.ps1" is a PowerShell script to be ran only on Windows.
The "Exec format error" you were getting was caused by the script being ran on the wrong OS platform (UNIX).
From the description (below) provided by "check_dhcp_scopes", the PowerShell script was designed to be called by NSClient installed on the DHCP Server. However, we recommend that you install NCPA since it is one of our supported Nagios's product.
Code: Select all
DESCRIPTION - This script was designed to be called by the NSClient installed on a Windows DHCP Server. It will return "Critical" if any of the DHCP scopes (or a specified DHCP scope) is above the critical threshold, "Warning" if above the warning threshhold, or "OK" if below the warning threshold. It can also run standalone with or without parameters for informational purposes.
Nagios XI already came with "check_dhcp" script that you could try on your Nagios XI (UNIX) server:
Example:
Code: Select all
# /usr/local/nagios/libexec/check_dhcp --help
or
NOTE: remember to enter your DHCP server's IP below:
# /usr/local/nagios/libexec/check_dhcp -s 192.168.XXX.XXX -i ens192 -u
OK: Received 1 DHCPOFFER(s), 1 of 1 requested servers responded, max lease time = 86400 sec.
Hope this helps!!
Vinh
Re: DHCP configuration Wizard
Posted: Tue Jan 12, 2021 8:33 am
by kalyanpabolu
Hello,
Can we check if DHCP scope is fill or it is not releasing IP address?
Re: DHCP configuration Wizard
Posted: Tue Jan 12, 2021 3:34 pm
by vtrac
Hi kalyanpabolu,
I checked Nagios Exchange and found the below URL's that you can try on your DHCP server.
https://exchange.nagios.org/directory/P ... es/details
https://exchange.nagios.org/directory/P ... pe/details
Regards,
Vinh
Re: DHCP configuration Wizard
Posted: Tue Jan 19, 2021 4:40 am
by kalyanpabolu
Hello,
Thanks for the help!!
We are using NCPA agent on all our servers. The plugins suggested by you are compatible with NRPE or NSC++ client.
Could you please suggest a plugin for NCPA?
We want to check if DHCP scope is full or it is releasing IP address or not.
Re: DHCP configuration Wizard
Posted: Tue Jan 19, 2021 4:32 pm
by vtrac
Hi kalyanpabolu,
Please check out the Nagios Exchange's URL (below) that I'm sure one of them will meet your needs.
https://exchange.nagios.org/directory/P ... -and-BOOTP
Regards,
Vinh
Re: DHCP configuration Wizard
Posted: Mon Mar 01, 2021 7:17 am
by kalyanpabolu
Hello,
We are willing to use check_dhcp_free plugin.
https://exchange.nagios.org/directory/P ... ee/details
It needs some pysnmp to be installed. Our Nagios XI server is Centos 8.
Please provide the source to to download this package and install the same.
[root@HO1-NAGIOSXI ~]# cd /usr/local/nagios/libexec/
[root@HO1-NAGIOSXI libexec]# ./check_dhcp_free.py -h
File "./check_dhcp_free.py", line 19
print '\nPySNMP is required for this plugin.'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('\nPySNMP is required for this plugin.')?
[root@HO1-NAGIOSXI libexec]#
Re: DHCP configuration Wizard
Posted: Mon Mar 01, 2021 12:09 pm
by vtrac
Hi,
Since you are using CentOS 8, try the below command:
or you can try using "pip" also:
Remember you do not need to do both. Either "yum" or "pip".
I use "yum" because I can un-install easily, if needed.
Regards,
Vinh