O'Reilly logo

Learning Nagios 4 by Wojciech Kocjan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required