You can create the checks in a config file in /usr/local/nagios/etc. The command below will allow us to pass most of the arguments in with $ARG1$, allowing it to be more dynamic.Ĭommand_line $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$ usr/local/nagios/libexec/check_ncpa.py -VĬreating new command, host and service definitions for monitoring the Windows machine Create the check command definitionĬreate the check_ncpa command in your configuration files for Nagios Core, normally they are located in /usr/local/nagios/etc - you may have a commands.cfg file you will want to put this command in. To verify the version of the check_ncpa.py plugin, run the following command from the command line: Note: If you have a different path to the nagios plugins directory, you will need to modify the last command. Mv check_ncpa.py /usr/local/nagios/libexec Run the following commands from the command line on your Nagios server: The steps below will cover some basic information on how to install the check_ncpa.py plugin, create a new command, host, and service definitions in Nagios Core. NCPA can do both kinds of checks, so it's up to you to choose. Passive checks run on the client side and send the check results to Nagios Core for processing. If you have a lot of checks and want to move some of the load or you have a system that sometimes drops connections, you might want to use a passive check. Active checks are ran using a plugin on the Nagios Core side, which will put most of the load on the server. There are two types of checks you can use. Once you've decided what to monitor, you can choose how to monitor it. There are many more endpoints, but you can read the help documentation to see more options. For this example we will monitor the following using only NCPA built-ins: This could include your own custom plugins - or just data that NCPA can get itself. Knowing what you want to monitor will help you figure out what sort of checks you will need NCPA to perform. Start Monitoring Find our what you want to monitor
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |