Error: Global service event handler command 'st2nagios' is not defined anywhere!

Hi

I have added " global_service_event_handler=st2nagios " property in nagios.cfg for Nagios - StackStorm integration but am getting below error after restarting Nagios server.

Error: Global service event handler command ‘st2nagios’ is not defined anywher

can anyone help me as how i can resole this ?

do we need to install st2 on nagios server ?

I have added below command in " nagios.cfg "

  • global_service_event_handler=st2nagios

Also i have added below command in nrpe.cfg

  • command[st2nagios]=/opt/nagios/libexec/st2service_handler.py /opt/nagios/libexec/st2service_handler.conf SERVICEEVENTIDSERVICEDESCSERVICESTATE SERVICESTATEID SERVICESTATETYPE SERVICEATTEMPT HOSTNAME

or do we need to add anything in command.cfg file ?