Skip to main content
Solved

Notification command does'nt work ...

  • October 30, 2023
  • 2 replies
  • 175 views

Forum|alt.badge.img+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

Best answer by JCLOPEZ

Hi !

Problem Solved.

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

My initial command configuration : 

The correct command configuration : 

 

2 replies

Forum|alt.badge.img+1
  • Author
  • Steward *
  • 1 reply
  • Answer
  • November 3, 2023

Hi !

Problem Solved.

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

My initial command configuration : 

The correct command configuration : 

 


fgbetokpanou
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • 189 replies
  • November 6, 2023

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