XYMOND_CHANNEL(8)
π XYMOND_CHANNEL(8) β the manual page, but make it a group chat π
okay bestie, sit down, hydrate, and let's talk about xymond_channel from the System Manager's Manual. yes it's a section 8 page, yes it's about daemons, no you don't have to be scared. i got you. π«Ά
β¨ NAME β¨
xymond_channel β feeds one of the xymond channels to a worker module. that's the whole job. it's the little relay goblin that keeps the whole Xymon machine fed. π
πΈ SYNOPSIS πΈ
xymond_channel --channel=CHANNEL [options] workerprogram [worker-options]
π DESCRIPTION π
so here's the vibe. xymond_channel hooks itself into one of the xymond(8) channels β those are the little streams of info about everything happening inside your Xymon system. it pulls messages out of the xymond daemon, and then it just... hands them over to workerprogram, piping them straight to STDIN (file descripter 1) of the worker program. and then the worker program does whatever it wants with them, because it's a grown program and it has main character energy. π
a bunch of worker programs actually ship with xymond already, iconic lineup:
and if you're feeling crafty and want to write your own worker module?? there's a sample worker module bundled right into the xymond distribution in the xymond_sample.c file. it shows you how to fetch and parse messages the easy way. it's giving tutorial-coded. β¨
π OPTIONS π
xymond_channel accepts a few options. not a million, just a few. very demure. π
--channel=CHANNELNAMEβ says which channel to receive messages from. only one channel can be used, bestie, don't get greedy. this option is required. the channels available are:"status"receives all Xymon status- and summary-messages"stachg"receives information about status changes"page"receives information about statuses triggering alerts"data"receives all Xymon "data" messages"notes"receives all Xymon "notes" messages"enadis"receives information about hosts being disabled or enabled.
--filter=EXPRESSIONβEXPRESSIONis a Perl-compatible regular expression.xymond_channelwill match the first line of each message against this expression, and silently drops any message that does not match. super useful for custom worker modules and for testing, so you can limit the amount of data the module has to chew through. π
β οΈ heads up: messages for"logrotate","shutdown","drophost","renamehost","droptest"and"renametest"are always forwarded byxymond_channel, whether they match the filter or not. they do not care about your regex. they have immunity. π
--msgtimeout=TIMEOUTβ changes the default timeout (30 seconds) that the worker module gets to handle a message. if a message isn't handled within that time, it's considered lost. π you normally don't have to touch this unless your server is extremely busy.--daemonβxymond_channelis normally started byxymonlaunch(8)as a task defined in thetasks.cfg(5)file. but if you're not usingxymonlaunch, then startingxymond_channelwith this option makes it run as a stand-alone background task. independent queen. π--pidfile=FILENAMEβ if running as a stand-alone daemon,xymond_channelsaves the process-ID of the daemon inFILENAME. great for automated startup- and shutdown- scripts. β¨--env=FILENAMEβ loads the environment variables defined inFILENAMEbefore startingxymond_channel. this is normally only used when running as a stand-alone daemon; ifxymond_channelis started byxymonlaunch, then the environment is controlled by the task definition in thetasks.cfg(5)file.--log=FILENAMEβ redirects output to this log-file. put it somewhere nice. π--md5/--no-md5β enable/disable checksumming of messages passed fromxymond_channelto the worker module. this can be useful if you suspect data may be corrupted, e.g. when it's sent to a remote worker module. note: enabling this may break communication with old versions of Xymon worker modules. Default: Disabled.--debugβ enables debugging output. for when you need to see everything. π
π¦ FILES π¦
this program does not use any configuration files. not a single one. it's low maintenance like that. π§
π SEE ALSO π
and that's the page, bestie!! you ate. π go forth and channel your messages responsibly.
Xymon β Version 4.3.30: 4 Sep 2019 π that's the version and the date, stamped right at the bottom like a little signature. periodt. π
π¦ where this page comes from
- debian bookworm: xymon 4.3.30-1+b2 Β· GPL-2.0-only WITH OpenSSL exception
- debian trixie: xymon 4.3.30-4 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu jammy: xymon 4.3.30-1build2 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu jammy: xymon 4.3.30-1ubuntu0.1 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu noble: xymon 4.3.30-2build3 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu noble: xymon 4.3.30-2ubuntu0.1 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu questing: xymon 4.3.30-4
- ubuntu resolute: xymon 4.3.30-5 Β· GPL-2.0-only WITH OpenSSL exception
- ubuntu stonking: xymon 4.3.30-6 Β· GPL-2.0-only WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms