How can I get Acknowledgement Type comment?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
tunlyinaung
Posts: 1
Joined: Thu Jul 21, 2022 10:31 pm

How can I get Acknowledgement Type comment?

Post by tunlyinaung »

Hello Guys,

If I comment on a Service or a Host as nagios admin, the type of the comment is "User" . How can I get Acknowledgement Type comment? I used this script and it didn't work. If someone knows, please guide me.
#!/bin/bash

now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'

/bin/printf "[%lu] ACKNOWLEDGE_SVC_PROBLEM;localhost;HTTP;1;1;2;Nagios Admin;Acknowledged after Restart" $now > $commandfile
Post Reply