Skip to main content
Solved

check_icmp: Failed to resolve @IP: Nom ou service inconnu

  • Jun 27, 2022 5:24 AM UTC
  • 8 replies
  • 926 views

Forum|alt.badge.img+1

Hello there !

I have a little problem when i want to use the icmp_check on my firewall.

For the details :

  • My Firewall allow ping from my LAN (it’s a sophos firewall)
  • When i’m connected on Centreon an i use the check in CLI it work
  • When it’s the centreon-engine who use the check the error message is : check_icmp: Failed to resolve : Nom ou service inconnu

Thanks for your help !

Best answer by ponchoh

It looks like we are on the same page.. 

In the case of the centreon-engine user. Can they resolve the host in question? I ask because of this:

>  check_icmp: Failed to resolve : Nom ou service inconnu

View original

8 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Jun 27, 2022 8:47 PM UTC

Hi @ThomasL , can you share the command, does this check have a notification attached to it? mail?

🤞


Forum|alt.badge.img+1
  • Author
  • Steward *
  • Jun 28, 2022 7:11 AM UTC

The check command is the base_host_alive

 $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1

And the notification is link with the host


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Jun 30, 2022 4:07 PM UTC

Can the user resolve the address? as root as centreon-engine?


Forum|alt.badge.img+1
  • Author
  • Steward *
  • Jul 1, 2022 5:14 AM UTC

I’m not really sure to understand what you asking for … But i have already use the command check in my Centreon CLI using the root user and the centreon user. Both are working normally.

I hope i answer correctly X)


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Answer
  • Jul 5, 2022 2:46 PM UTC

It looks like we are on the same page.. 

In the case of the centreon-engine user. Can they resolve the host in question? I ask because of this:

>  check_icmp: Failed to resolve : Nom ou service inconnu


Forum|alt.badge.img+1
  • Author
  • Steward *
  • Jul 12, 2022 7:52 AM UTC

Hi, sorry for the delais of my response.

I just try the check-icmp with the centreon-engine user and it work …

bash-4.2$ /lib64/nagios/plugins/check_icmp -m 1 -H @IP -w 3000.0,80% -c 5000.0,100%
OK - @IP rta 0,191ms lost 0%|rta=0,191ms;3000,000;5000,000;0; pl=0%;80;100;0;100 rtmax=0,369ms;;;; rtmin=0,141ms;;;;


Forum|alt.badge.img+1
  • Author
  • Steward *
  • Jul 12, 2022 9:53 AM UTC

Sorry guys, i just found the problem … And I am ashamed, I just wrote an invalid IP address aka XXX.XXX.XXX.256


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Jul 12, 2022 12:58 PM UTC

Thank you for the update @ThomasL , no worries, life happens 

😎✌