Page 1 of 1
measure the temperature of the servers
Posted: Thu Mar 18, 2021 10:35 am
by abpro
Hello, I am a user who bought nagios xi I have a question, what happens is that I want a plugin where I can measure the temperature of my servers and windows clients, I have investigated, I do not find information that works for me

Re: measure the temperature of the servers
Posted: Fri Mar 19, 2021 12:17 pm
by lmiltchev
I don't know what are the plugins/solutions that you tried so far, but there are many different plugins on the Nagios Exchange than may possibly do the job for you. I simple search for "temperature" produced numerous results for me:
https://exchange.nagios.org/index.php?o ... emperature
Once you find a plugin that works for you from the command line, you can add a command, and a service to your Nagios XI server, and start monitoring the temperature. Please review our official documentation on managing plugins here:
https://support.nagios.com/kb/article.php?id=235
Hope this helps.
Re: measure the temperature of the servers
Posted: Thu Mar 25, 2021 11:11 am
by abpro
I have seen some more plugins and I did not understand very well one that I found I do not know if you could help me ...
https://exchange.nagios.org/directory/P ... es/details
Re: measure the temperature of the servers
Posted: Fri Mar 26, 2021 10:27 am
by benjaminsmith
Hi,
So that plugin is a PowerShell script and it will require an agent to execute the script on the remote host. I would recommend using NCPA if you haven't installed that already.
NCPA Agent Installation Instructions
Then copy this into the plugins directory and setup a check Nagios XI. We have a knowledgebase article on this with a PowerShell example to follow.
Nagios XI - Using Scripts / Plugins With NCPA
Let's us know if you have further questions as you start to set this up.
Regards,
Benjamin
Re: measure the temperature of the servers
Posted: Fri Mar 26, 2021 12:14 pm
by abpro
Hello Benjamin, thank you for answering, I already made
the guide that you sent me the plugin and powersheld is already in the directory C: \ Program Files (x86) \ Nagios \ NCPA \ plugins
At the time of monitoring it by nagios xi when adding the plugin it does not perform any monitoring, it would help me a lot to know what command I can enter to be able to monitor the temperature,
I get this error and this is the command I add:
check_xi_ncpa! -t 'windows10' -P 5693 -M 'plugins / check_ohm_temperatures.ps1' -q -warning 80 -critical 90
It would help me to know what command I can enter, which is what it would show me.
Re: measure the temperature of the servers
Posted: Mon Mar 29, 2021 10:42 am
by benjaminsmith
Hi,
Are you able to run the PowerShell script locally and get the correct results? If so, try running it from the XI server side and add the
-v option for verbose output. If you get an error, please post the full output from the CLI to the thread for us to review.
For example (run from XI server)
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H <ipaddress> -t 'windows10' -P 5693 -M 'plugins/check_ohm_temperatures.ps1' -q '-warning 80 -critical 90' -v
Regards,
Benjamin
Re: measure the temperature of the servers
Posted: Mon Mar 29, 2021 12:27 pm
by abpro
Benjamin thank you very much .. I was able to monitor the temperature of my client servers I will only have to modify the powershell script to define it and know what I am monitoring
Re: measure the temperature of the servers
Posted: Mon Mar 29, 2021 3:01 pm
by benjaminsmith
Hi,
Your welcome! Sounds like you got it working. Shall we close out this topic or did you have any other questions?
Regards,
Benjamin
Re: measure the temperature of the servers
Posted: Tue Mar 30, 2021 12:17 pm
by abpro
yes, this question closes
Re: measure the temperature of the servers
Posted: Tue Mar 30, 2021 12:56 pm
by benjaminsmith
yes, this question closes
Excellent!
Have a great day.