Page 1 of 1
could not fetch information from server
Posted: Mon Jul 22, 2024 11:30 pm
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.
Re: could not fetch information from server
Posted: Tue Jul 23, 2024 9:41 am
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)
Re: could not fetch information from server
Posted: Tue Jul 23, 2024 11:19 pm
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"
}
Re: could not fetch information from server
Posted: Wed Jul 24, 2024 9:53 am
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.
Re: could not fetch information from server
Posted: Wed Jul 24, 2024 2:22 pm
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.
Re: could not fetch information from server
Posted: Thu Jul 25, 2024 9:45 am
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.
Re: could not fetch information from server
Posted: Mon Jul 29, 2024 5:14 am
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.
Re: could not fetch information from server
Posted: Mon Jul 29, 2024 9:50 am
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
Re: could not fetch information from server
Posted: Wed Jul 31, 2024 7:28 am
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.