ACKNOWLEDGE.CGI(1)

✨ NAME ✨

Okay bestie, welcome to ACKNOWLEDGE.CGI(1) πŸ’– Meet acknowledge.cgi, the Xymon CGI script that lets you acknowledge alerts. It's literally the one you need when you want to say "yep, I've got this" πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

acknowledge.cgi?ACTION=action&NUMBER=acknum&DELAY=validity&MESSAGE=text

🌸 DESCRIPTION 🌸

So acknowledge.cgi doesn't just show up alone 🧚 It gets invoked as a CGI script through the acknowledge.sh CGI wrapper, which is lowkey its ride to the party.

It gets handed a QUERY_STRING environment variable holding the ACTION, NUMBER, DELAY and MESSAGE parameters. Main character energy, no cap πŸ‘‘


πŸ¦‹ PARAMETERS πŸ¦‹

  • ACTION β€” the move you want it to make. The only one it supports is "Ack", which acknowledges an alert ✨
  • NUMBER β€” the number that identifies the host/service you're acknowledging. Good news: Xymon includes it in every alert message it sends out πŸ”₯
  • DELAY β€” how long the acknowledge stays valid, in minutes ⏰
  • MESSAGE β€” an optional note that shows up on the status page while the acknowledgment is active. Use it to tell people not to contact you about the problem, or to let them know when it's expected to be resolved 🫢

πŸ’… OPTIONS πŸ’…

  • --no-pin β€” normally the user has to type in the acknowledgment code from an alert message. Run it with this option and they instead get a list of the current non-green statuses, and they can send an acknowledge without knowing the code πŸ™ˆ
  • --no-cookies β€” normally it uses the cookie your browser sends to pre-filter the list of hosts. If you don't want that, switch it off by calling acknowledge.cgi with --no-cookies. This usually goes in the CGI_ACK_OPTS setting in cgioptions.cfg(5) πŸ“
  • --env=FILENAME β€” loads the environment defined in FILENAME before the CGI script runs 🌈
  • --debug β€” turns on debugging output πŸ›

🌷 FILES 🌷

  • $XYMONHOME/web/acknowledge_header β€” the HTML header for the generated web page πŸŽ€
  • $XYMONHOME/web/acknowledge_footer β€” the HTML footer for the generated web page πŸ¦‹
  • $XYMONHOME/web/acknowledge_form β€” the query form that pops up when acknowledge.cgi is called with no parameters πŸ’œ

🧚 ENVIRONMENT VARIABLES 🧚

  • XYMONHOME β€” used to find the template files for the generated web pages 🌸
  • QUERY_STRING β€” holds the parameters for the CGI script πŸ”₯

πŸ™ˆ BUGS πŸ™ˆ

Okay, this one's a little messy, bestie 😭 When you're using alternate pagesets, hosts only show up on the acknowledgment page if you access it from the primary page where they're defined. So if your hosts are spread across multiple pages, they'll only be visible for acknowledging from their main page, which is not what you'd expect.

🌈 SEE ALSO 🌈

xymongen(1), hosts.cfg(5), xymonserver.cfg(5) ⭐


That's the tea, bestie 🫢 This was Xymon 4.3.30, from 4 Sep 2019. Now go acknowledge something and make it iconic! πŸ’–βœ¨

πŸ“¦ where this page comes from