Page 5 of 5

Re: check_nt service state check not working

Posted: Tue Nov 26, 2019 1:33 pm
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'

Re: check_nt service state check not working

Posted: Tue Nov 26, 2019 1:42 pm
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#

Re: check_nt service state check not working

Posted: Tue Nov 26, 2019 4:29 pm
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

Re: check_nt service state check not working

Posted: Fri Jan 24, 2020 5:20 pm
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)

Re: check_nt service state check not working

Posted: Mon Jan 27, 2020 9:28 am
by tgriep
@sradas Thanks for the tip on the issue when the compat-openssl10 package is installed.