Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Nagios 4
  • Table Of Contents Toc
Learning Nagios 4

Learning Nagios 4

By : Wojciech Kocjan
4.2 (10)
close
close
Learning Nagios 4

Learning Nagios 4

4.2 (10)
By: Wojciech Kocjan

Overview of this book

Table of Contents (19 chapters)
close
close
Learning Nagios 4
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Introducing Nagios Event Radio Dispatcher


The query handler also includes the NERD (Nagios Event Radio Dispatcher) service, which allows you to subscribe to the service or host check results. The service name is @nerd and it accepts the following commands:

@nerd list\0
@nerd subscribe <channel>\0
@nerd unsubscribe <channel>\0

The list command returns a list of channels separated by newlines, where the channel name is the first word of a line, followed by the channel's description. The subscribe and unsubscribe commands can be used to start and stop the receipt of notifications for specified channels.

For example, to list all available channels, we can simply use the following command from the shell:

# echo -e '@nerd list\0' | \
    socat - UNIX-CONNECT:/var/nagios/rw/nagios.qh

The output will be as follows:

hostchecks      Host check results
servicechecks   Service check results
opathchecks     Host and service checks in gource's log format

The opathchecks channel for notifications...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Nagios 4
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon