We've moved to a new support system!
The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.
Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users
After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.
tgriep wrote:Quick question. The first plugin runs on the nagios server and requires the host you are checking to have SNMP enabled and the second one is a Visual Basic script that runs on a Windows server using the NSClient++ agent, which one do you want to use?
define command {
command_name check_dhcp_all_pools
command_line $USER1$/check_dhcp_all_pools.sh $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}
define service {
host_name WindowsHost
service_description Check DHCP
use local-service
check_command check_dhcp_all_pools!public!20!30!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_period 24x7
notification_options w,c,u,r,s,
notifications_enabled 1
contacts nagiosadmin
register 1
}
tgriep wrote:First, install and configure SNMP on the Windows server. You can search Microsoft for instructions for doing that.
The plugin requires Net-SNMP to be installed on the Nagios server, install that.
Download the plugin and put it in the /usr/local/nagios/libexec folder and call it check_dhcp_all_pools.sh and make is executable.
Create a command for it in the commands.cfg file line this example.
- Code: Select all
define command {
command_name check_dhcp_all_pools
command_line $USER1$/check_dhcp_all_pools.sh $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}
An example service is below. It uses $ARG1$ as the SNMP Community string. $ARG2$ as the warning threshold. $ARG3$ as the critical threshold.
- Code: Select all
define service {
host_name WindowsHost
service_description Check DHCP
use local-service
check_command check_dhcp_all_pools!public!20!30!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_period 24x7
notification_options w,c,u,r,s,
notifications_enabled 1
contacts nagiosadmin
register 1
}
If you view the plugin, is has a bit more details in it.
I don't have access to a Windows DHCP server so I can't show you the plugin's output but it says that it will show the total amount of scopes available vs those shown.
tgriep wrote:For instructions on installing NSClient++, you can find it on the NSClient++ web site.
http://nsclient.org/
You would have to create an external command in the NSClient's config file for the visual basic script. Details on how to do that.
https://docs.nsclient.org/reference/check/CheckExternalScripts/
Then, you would have to use the check_nrpe plugin to connect to the Windows system running NSClient++
At the bottom in this article are the instructions for Install check_nrpe Plugin Only.
https://support.nagios.com/kb/article.php?id=515
Your server may already the check_nrpe plugin installed so check for that.
Or, you can use NCPA instead of NSClient++ and some details on that are at these links.
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/monitoring-windows.html
https://www.nagios.org/ncpa/
Users browsing this forum: vkwithmsd and 28 guests