Page 1 of 2

In Nagios GUI getting Critical error for HANA DB status

Posted: Thu Jan 09, 2020 10:43 am
by dheerushops
Hi,

From https://exchange.nagios.org/directory/P ... se/details.

I have downloaded check_hdbnameserver.py and configured this in nagioshost. But, In Nagios server GUI.
For alert SAP HANA DB HDBName Server getting below error message.

HDBnameserver

UNKNOWN 01-09-2020 10:57:51 0d 0h 0m 24s 3/3 UNKNOWN - is .We can not identify process status

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Thu Jan 09, 2020 10:54 am
by dheerushops
Below outputs from nagiosserver and nagioshost.

[root@nagioshost libexec]# pwd
/usr/local/nagios/libexec
[root@nagioshost libexec]# ls -lh check_hdbnameserver.py
-rwxrwxr-x 1 nagios nagios 1.4K Jan 9 08:19 check_hdbnameserver.py
[root@snchbwatd11 libexec]#


[root@nagiosserver libexec]# pwd
/usr/local/nagios/libexec
[root@nagiosserver libexec]# tail /usr/local/nagios/etc/services.cfg

define service{
use generic-service
host_name nagioshost
service_description HDBnameserver
check_command check_nrpe!check_hdbnameserver.py
}

[root@nagiosserver libexec]#

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Thu Jan 09, 2020 5:53 pm
by Box293
The first step is to test the plugin directly on your host, this will remove NRPE from being a problem.

Please show us the command used to test the plugin and the output from the plugin.

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Fri Jan 10, 2020 7:58 am
by dheerushops
[root@nagioshost ~]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_hdbnameserver.py
UNKNOWN - is .We can not identify process status
[root@nagioshost ~]#

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Fri Jan 10, 2020 1:38 pm
by tacolover101
dheerushops wrote:[root@nagioshost ~]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_hdbnameserver.py
UNKNOWN - is .We can not identify process status
[root@nagioshost ~]#
can you please take nrpe out of the equation, and run the check_hdbnameserver.py script with the needed parameters? then, let us know the result.

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Mon Jan 13, 2020 9:29 am
by scottwilkerson

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Mon Jan 20, 2020 8:29 am
by dheerushops
[root@nagioshost ~]# /usr/local/nagios/libexec/ -H localhost -c check_hdbnameserver.py
-bash: /usr/local/nagios/libexec/: Is a directory
[root@nagioshost ~]#

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Mon Jan 20, 2020 8:49 am
by scottwilkerson
What was being asked is can you run check_hdbnameserver.py on the remote server to see what the response is.

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Mon Jan 20, 2020 3:37 pm
by dheerushops
[root@nagioshost libexec]# ls -lh check_hdbnameserver.py
-rwxrwxr-x 1 nagios nagios 1.4K Jan 9 08:19 check_hdbnameserver.py
[root@nagioshost libexec]# pwd
/usr/local/nagios/libexec
[root@nagioshost libexec]# check_hdbnameserver.py
-bash: check_hdbnameserver.py: command not found
[root@nagioshost libexec]#

Re: In Nagios GUI getting Critical error for HANA DB status

Posted: Mon Jan 20, 2020 4:37 pm
by scottwilkerson
I think you meant to run

Code: Select all

./check_hdbnameserver.py
You need to be able to get the plugin to work correctly (and giving you expected output) on the remote server before trying to make it work through NRPE