![]() ![]() %HOSTNAME%|CPU Usage = cpu/percent -warning 60 -critical 80 -aggregate avg Use the following outline for passive checks to send to the NRDP server of your choice. Add checks to your ncpa configurationĪdd a new NCPA configuration file to the directory located in the base NCPA installation directory. However, it would be a good idea to take a closer look at your configuration just in case. If you installed on Windows and set up NRDP during the install process then you will already have a configuration set up. By default in new installs of NCPA 2, no passive handler is configured. In order for passive checks to work, you have to configure your passive service to actually send the checks. This will tell Nagios to perform active checks and will create a host called "NCPA 2 Host" with checks for CPU Usage, Memory Usage, and Process Count. Replace the -t 'mytoken' with your own token. For this example we will create a config file called ncpa.cfg with the following defined:Ĭheck_command check_ncpa!-t 'mytoken' -P 5693 -M system/agent_versionĬheck_command check_ncpa!-t 'mytoken' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'Ĭheck_command check_ncpa!-t 'mytoken' -P 5693 -M memory/virtual -w 50 -c 80 -u GĬheck_command check_ncpa!-t 'mytoken' -P 5693 -M processes -w 150 -c 200 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. However, if you recently installed an application that requires a significant amount of resources or the total memory usage is hitting around 70% all the time, you may want to consider upgrading the system memory or getting a new computer that can handle the load.Start Monitoring Find our what you want to monitor In the case your device suddenly becomes slow, then an app may be a problem. Some software like photo and video editing and games usually require a large amount of system RAM to operate. While it is always recommended to understand which apps are using the most system memory because an app uses many resources, it does not necessarily mean that it's not behaving correctly. If you have problems ending a task or there too many processes consuming most of the memory, consider restarting the computer as the process will reset all the applications, potentially fixing the resources issue. ![]() ![]() Source: Windows Central (Image credit: Source: Windows Central)Īfter you complete the steps, you will know the apps consuming the most memory on the device. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |