check_nt service state check not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nt service state check not working

Post by tgriep »

You can try and use the check_nrpe plugin to run the check_service check on the Windows system to see if that service is running.
See this link for examples.
https://support.nagios.com/kb/article/s ... s-775.html

Code: Select all

./check_nrpe -H xxx.xxx.xxx.xxx -c check_service -a service='eSPNaniConnector$MN'
Be sure to check out our Knowledgebase for helpful articles and solutions!
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: check_nt service state check not working

Post by kmartin2007 »

tgriep wrote:You can try and use the check_nrpe plugin to run the check_service check on the Windows system to see if that service is running.
See this link for examples.
https://support.nagios.com/kb/article/s ... s-775.html

Code: Select all

./check_nrpe -H xxx.xxx.xxx.xxx -c check_service -a service='eSPNaniConnector$MN'

I was following some other posts on here and googling some issues. and i came across where they were checking the nrpe plugin. so i decided to check ours and got the following


root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_nrpe -H localhost
./check_nrpe: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory


root@dalsrvitmon03:/usr/local/nagios/libexec# ldd /usr/local/nagios/libexec/check_nrpe
linux-vdso.so.1 (0x00007ffe809fb000)
libssl.so.10 => not found
libcrypto.so.10 => not found
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007fade1dc8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fade19d0000)
/lib64/ld-linux-x86-64.so.2 (0x00007fade1fe8000)
root@dalsrvitmon03:/usr/local/nagios/libexec#
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nt service state check not working

Post by tgriep »

You need to install the openssl and the openssl-devel packages on the Nagios server as the plugin needs them to run.
If there are a lot of services running on the Windows server, it could take the agent more that the 10 second timeout that is in the plugin.
To increase the timeout to 60 seconds, add this to the command.

Code: Select all

-t 60
Be sure to check out our Knowledgebase for helpful articles and solutions!
sradas
Posts: 1
Joined: Fri Jan 24, 2020 5:03 pm

Re: check_nt service state check not working

Post by sradas »

This libssl.so.10 problem when calling nrpe can also be on CentOS 8, when compat-openssl10 package is not installed.

Code: Select all

#dnf install compat-openssl10
and when checked:

Code: Select all

]# ldd /usr/local/nagios/libexec/check_nrpe
        linux-vdso.so.1 (0x00007fff5a6c7000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007f2455b8c000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f2455729000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f2455510000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f245514d000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f2454f49000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f2454d32000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f2455dfb000)
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nt service state check not working

Post by tgriep »

@sradas Thanks for the tip on the issue when the compat-openssl10 package is installed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked