Solved

Disk discovery with NSClient05/NRPE

  • 28 November 2022
  • 1 reply
  • 218 views

Badge +2

Hello,

I try to configure discovery rules for Windows disks with nsclient but when i launch discovery, i have this error : No services found in discovery response

Here  gorgoned.log

2022-11-17 12:30:28 - DEBUG - [autodiscovery] Event: [ACK] [svc-disco-fc64a8e4:39-37-64] {"data":null,"code":0}

2022-11-17 12:30:44 - DEBUG - [autodiscovery] Event: [SERVICEDISCOVERYLISTENER] [svc-disco-fc64a8e4:39-37-64] [] { "code": 0, "data": {"message":"commands processing has started","request_content":[{"timeout":90,"command":"/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H tagersrv -p 5666 -t 30 -u -2 -P 8192 -c check_centreon_plugins -a 'os::windows::local::plugin' 'list-storages' ' --disco-show'"}]} }

2022-11-17 12:30:44 - DEBUG - [autodiscovery] Event: [SERVICEDISCOVERYLISTENER] [svc-disco-fc64a8e4:39-37-64] [] { "code": 0, "data": {"metadata":null,"message":"command has started","command":"/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H tagersrv -p 5666 -t 30 -u -2 -P 8192 -c check_centreon_plugins -a 'os::windows::local::plugin' 'list-storages' ' --disco-show'"} }

2022-11-17 12:30:44 - DEBUG - [autodiscovery] Event: [SERVICEDISCOVERYLISTENER] [svc-disco-fc64a8e4:39-37-64] [] { "code": 100, "data": {"metadata":null,"metrics":{"duration":3,"start":1668684628,"end":1668684631},"message":"command has finished successfully","command":"/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H tagersrv -p 5666 -t 30 -u -2 -P 8192 -c check_centreon_plugins -a 'os::windows::local::plugin' 'list-storages' ' --disco-show'","result":{"exit_code":0,"stdout":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<data>\r\n <label size=\"\" type=\"removableDisk\" free=\"\" name=\"A:\" desc=\"\"/>\r\n <label size=\"84673556480\" type=\"localDisk\" free=\"27704819712\" name=\"C:\" desc=\"Windows\"/>\r\n <label name=\"E:\" free=\"\" desc=\"\" size=\"\" type=\"compactDisc\"/>\r\n</data>"}} }

2022-11-17 12:30:44 - INFO - [autodiscovery] -servicediscovery- fc64a8e4:39 [OS-Windows-NSClient05-NRPE-Disk-Name] [poller] [tagersrv] [Disk- ] -> exclusion 'removableDisk'

2022-11-17 12:30:44 - ERROR - [autodiscovery] -servicediscovery- fc64a8e4:39 [OS-Windows-NSClient05-NRPE-Disk-Name] [poller] [tagersrv] -> service 'Disk- ' already created

2022-11-17 12:30:44 - ERROR - [autodiscovery] -servicediscovery- fc64a8e4:39 [OS-Windows-NSClient05-NRPE-Disk-Name] [poller] [tagersrv] -> service 'Disk- ' already created

2022-11-17 12:30:44 - DEBUG - [autodiscovery] -servicediscovery- fc64a8e4:39 current count 1/1

2022-11-17 12:30:44 - DEBUG - [autodiscovery] -servicediscovery- fc64a8e4:39 discovery finished

 

Does anyone have already setup this configuration ?

Regards

icon

Best answer by MrManjah 5 December 2022, 18:08

View original

1 reply

Badge +2

Hello,

Problem solve by following this topic : Découverte auto des disques | L'atelier de Kermith (sugarbug.fr)

Reply