Solved

Notification command does'nt work ...

  • 30 October 2023
  • 2 replies
  • 90 views

Badge +1

Hi all !

Centreon 23.04.2 / On premise / Debian 11.

I’ve added a script to get notifications in Google Chat but i can’t configure it correctly.

The script : /usr/lib/centreon/plugins/gchat_notify.sh

If i run the script drom command line (root user or standard user) it work perfectly.

I’ve added a new notification command :

If i click here i receive a empty notification :

 Next, i’ve created a new contact user :

And i’ve added this user to the notification host template (and to the host notificatio to test) :

When the host is down, i don’nt receive any notification but a can see in the logs that the command is executed :

 

Can you explain me where my configuration is wrong ?

Thank’s a lot,

 

JC

icon

Best answer by JCLOPEZ 3 November 2023, 08:45

View original

2 replies

Badge +1

Hi !

Problem Solved.

The script : https://github.com/drwestt/Nagios2GoogleChat

My initial command configuration : 

The correct command configuration : 

 

Userlevel 5
Badge +11

Hi @JCLOPEZ, Thanks for sharing this, I'm sure it will help someone! Cheers,

Reply