Hi Team,
I want to monitor CPU load on a remote host (linux server) which is added in Nagios via NCPA. I used check_local_load (attached the screenshot)but it is fetching data from Nagios server not from remote host. How can I monitor CPU load on remote host ?
Regards,
Preethu
CPU load monitor for remote host
CPU load monitor for remote host
You do not have the required permissions to view the files attached to this post.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: CPU load monitor for remote host
Hi,
The default API in NCPA does not include a load check but it does have a check for CPU usage. Please let me know if that would be sufficient.
See:NCPA CPU module
Otherwise, you can install the nagios plugins ( with check_load ) locally on the remote host and use the Plugin endpoint to setup load checks.
See: Nagios XI - Using Scripts / Plugins With NCPA | Nagios Plugins
Let me know if you need help with that process.
--Benjamin
The default API in NCPA does not include a load check but it does have a check for CPU usage. Please let me know if that would be sufficient.
See:NCPA CPU module
Otherwise, you can install the nagios plugins ( with check_load ) locally on the remote host and use the Plugin endpoint to setup load checks.
See: Nagios XI - Using Scripts / Plugins With NCPA | Nagios Plugins
Let me know if you need help with that process.
--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CPU load monitor for remote host
Hi Benjamin,
yes, can you please share the steps on how to monitor CPU load on remote host using plugin.
Regards,
Preethu
yes, can you please share the steps on how to monitor CPU load on remote host using plugin.
Regards,
Preethu
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: CPU load monitor for remote host
Hi Preethu,
So you'll want to follow the instructions below to install the nagios plugins on the remote system. If you do not want to install all of the plugins, do not run make install, but copy over the check_load plugin to your ncpa plugin directory after running make. However, it will be easiest to follow the instructions and install the entire set.
https://support.nagios.com/kb/article/n ... e-569.html
Once you have the plugins installed, open up the following file:
...and set the plugin path to the correct directory.
Restart the NCPA listener.
Then log into Nagios XI and run the NCPA Configuration Wizard. Select the plugin from the GUI on the second step.
Please note the plugin syntax, it should be as follows.
Let us know if you need further assistance
--Benjamin
So you'll want to follow the instructions below to install the nagios plugins on the remote system. If you do not want to install all of the plugins, do not run make install, but copy over the check_load plugin to your ncpa plugin directory after running make. However, it will be easiest to follow the instructions and install the entire set.
https://support.nagios.com/kb/article/n ... e-569.html
Once you have the plugins installed, open up the following file:
Code: Select all
/usr/local/ncpa/etc/ncpa.cfg
Code: Select all
[plugin directives]
#
# Plugin path where all plugins will be ran from.
#
plugin_path = /usr/local/nagios/libexec
Code: Select all
systemctl restart ncpa_listener
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H 192.168.XX.XX -t 'mytoken' -P 5693 -M 'plugins/check_load' -q 'args=-w "2,2,2" -c "5,4,4"'
--Benjamin
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CPU load monitor for remote host
Hi Benjamin,
It is working, thank you for the help. You can close the thread.
Regards,
Preethu
It is working, thank you for the help. You can close the thread.
Regards,
Preethu