could not fetch information from server

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.
Post Reply
mandar18
Posts: 31
Joined: Thu Feb 08, 2024 6:43 am

could not fetch information from server

Post by mandar18 »

Hello Team,
I am getting the issue of "could not fetch information from server" for 2 services; the rest are working fine.
I am trying to get the service status of "Sybase ASE Backup Service" and "Sybase ASE Server" I did match with the same name in services.msc for those, but still not able to resolve this issue, while for Drives and memory, it's showing perfectly.

Note- I can monitor Drives and memory but not the services on the same server.
bbahn
Posts: 382
Joined: Thu Jan 12, 2023 5:42 pm

Re: could not fetch information from server

Post by bbahn »

Hello @mandar18,

Are you saying you are able to monitor other services and those are working, but these particular services are not? Are you certain you have the service names correct?
How are you trying to monitor these services? Through NRPE?

If you are using NRPE, you can check the status of the checks manually for better information on what's going wrong with the following:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remote_host> -c check_service -a <sybase_service_name>
(I believe these are the service names)
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
mandar18
Posts: 31
Joined: Thu Feb 08, 2024 6:43 am

Re: could not fetch information from server

Post by mandar18 »

Yes, I can monitor other services and only I can't monitor 2 services.
I am certain the names are correct, I tried to monitor other services like netlogon that too is not working.

I am not using NRPE.

This is what I am using..

define service{
use generic-service
host_name Server name
service_description Sybase ASE Server
is_volatile 0
check_period 24x7
max_check_attempts 3
check_interval 5
retry_interval 1
contact_groups admins
notification_interval 60
notification_period 24x7
notification_options w,c,u,r
check_command check_service!"SYBSQL_TRANZACTOH"
}

define service{
use generic-service
host_name Server name
service_description Sybase ASE Backup Service
is_volatile 0
check_period 24x7
max_check_attempts 3
check_interval 5
retry_interval 1
contact_groups admins
notification_interval 60
notification_period 24x7
notification_options w,c,u,r
check_command check_service!"SYBBCK_TRANZACTOH_BS"
}
bbahn
Posts: 382
Joined: Thu Jan 12, 2023 5:42 pm

Re: could not fetch information from server

Post by bbahn »

Where did you get your check_service plugin? My installation of the recent version of Nagios Core has a check_services plugin and a check_services.ps1.py, but doesn't have a check_service plugin.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
mandar18
Posts: 31
Joined: Thu Feb 08, 2024 6:43 am

Re: could not fetch information from server

Post by mandar18 »

I am also using the same check_service with other servers, and it is working.
I am getting this issue with the specific server itself as with other server its working perfect.
bbahn
Posts: 382
Joined: Thu Jan 12, 2023 5:42 pm

Re: could not fetch information from server

Post by bbahn »

@mandar18,

Have you verified that the configuration is the same for your other servers? If other servers are using the same plugin for the same task and it works, and this server can use the plugin for other services, then the only thing that would make sense is a difference in configuration or a difference in the script. I would check your configurations and if they're the same, the script contents against each other.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
mandar18
Posts: 31
Joined: Thu Feb 08, 2024 6:43 am

Re: could not fetch information from server

Post by mandar18 »

Yes, I have verified the configuration is the same as on other servers. I have attached the NS-Client config file for your reference.
Last edited by mandar18 on Mon Jul 29, 2024 10:52 pm, edited 1 time in total.
swolf

Re: could not fetch information from server

Post by swolf »

Hi @mandar18,

We usually recommend people not to use NSClient, since it's a 3rd-party codebase and our developers/support staff aren't as familiar with it. Our preferred agent for Windows is the Nagios Cross-Platform Agent. You might have more success asking on the official NSClient discussion forum.

-Sebastian
mandar18
Posts: 31
Joined: Thu Feb 08, 2024 6:43 am

Re: could not fetch information from server

Post by mandar18 »

Now, I am trying with NRPE, and I am getting an error as "CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with 192.168.xx.xx: 1

I have installed NRPE version 4.1.0 on Nagios core server.
Post Reply