DHCP configuration Wizard
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
DHCP configuration Wizard
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?
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
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
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
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: DHCP configuration Wizard
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?
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
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.
Nagios XI already came with "check_dhcp" script that you could try on your Nagios XI (UNIX) server:
Example:
Hope this helps!!
Vinh
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.
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.
Vinh
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: DHCP configuration Wizard
Hello,
Can we check if DHCP scope is fill or it is not releasing IP address?
Can we check if DHCP scope is fill or it is not releasing IP address?
Re: DHCP configuration Wizard
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
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
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: DHCP configuration Wizard
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.
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
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
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
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: DHCP configuration Wizard
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]#
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
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
Since you are using CentOS 8, try the below command:
Code: Select all
yum install python3-pysnmpCode: Select all
pip install pysnmpI use "yum" because I can un-install easily, if needed.
Regards,
Vinh