In Nagios GUI getting Critical error for HANA DB status
-
- Posts: 47
- Joined: Fri Dec 06, 2019 7:44 am
In Nagios GUI getting Critical error for HANA DB status
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
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.
-
- Posts: 47
- Joined: Fri Dec 06, 2019 7:44 am
Re: In Nagios GUI getting Critical error for HANA DB status
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]#
[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
- 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
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.
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.
-
- Posts: 47
- Joined: Fri Dec 06, 2019 7:44 am
Re: In Nagios GUI getting Critical error for HANA DB status
[root@nagioshost ~]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_hdbnameserver.py
UNKNOWN - is .We can not identify process status
[root@nagioshost ~]#
UNKNOWN - is .We can not identify process status
[root@nagioshost ~]#
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: In Nagios GUI getting Critical error for HANA DB status
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.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 ~]#
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
-
- Posts: 47
- Joined: Fri Dec 06, 2019 7:44 am
Re: In Nagios GUI getting Critical error for HANA DB status
[root@nagioshost ~]# /usr/local/nagios/libexec/ -H localhost -c check_hdbnameserver.py
-bash: /usr/local/nagios/libexec/: Is a directory
[root@nagioshost ~]#
-bash: /usr/local/nagios/libexec/: Is a directory
[root@nagioshost ~]#
-
- 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
What was being asked is can you run check_hdbnameserver.py on the remote server to see what the response is.
-
- Posts: 47
- Joined: Fri Dec 06, 2019 7:44 am
Re: In Nagios GUI getting Critical error for HANA DB status
[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]#
-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]#
-
- 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
I think you meant to run
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
Code: Select all
./check_hdbnameserver.py