In Nagios GUI getting Critical error for HANA DB status

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.
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

In Nagios GUI getting Critical error for HANA DB status

Post 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
Last edited by dheerushops on Thu Jan 09, 2020 2:28 pm, edited 2 times in total.
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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]#
Attachments
check_hdbindexserver.py
Please check
(1.35 KiB) Downloaded 191 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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 ~]#
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post by dheerushops »

[root@nagioshost ~]# /usr/local/nagios/libexec/ -H localhost -c check_hdbnameserver.py
-bash: /usr/local/nagios/libexec/: Is a directory
[root@nagioshost ~]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

What was being asked is can you run check_hdbnameserver.py on the remote server to see what the response is.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dheerushops
Posts: 47
Joined: Fri Dec 06, 2019 7:44 am

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

Post 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]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked