Page 1 of 1

How can I get Acknowledgement Type comment?

Posted: Thu Jul 21, 2022 10:46 pm
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