

Learn how to send host and service alerts from Nagios
Nagios is powerful for monitoring, but alerting is not its strong suit.
Signalgrid adds a fast and modern mobile layer so your Nagios host and service alerts arrive instantly on iPhone, Android, and the web.
This allows you to receive monitoring alerts directly on your devices when hosts or services change state.
Prerequisites
- curl must be installed to send API requests
- The script must be executable by the nagios user
Installation
Get your credentials here
Define Notification Commands
Add the following commands to your Nagios configuration:
Assign the Notification Commands
Attach the commands to a contact definition:
Assign the Contact to a Service
To actually receive alerts, assign that contact to the services that should send notifications:
The same approach also works for host definitions. If you prefer using contact groups, assign the matching contact_groups entry instead of contacts.
Script Arguments
The script accepts four positional arguments:
$1$2$3OK, UP, WARNING, CRITICAL, or DOWN$4true or falseNagios state mapping
Nagios host and service states are automatically mapped to the corresponding Signalgrid notification type to reflect the severity of each alert.
OK / UP
SUCCESS
WARNING
WARN
CRITICAL / DOWN
CRIT
INFO
Manual Testing
You can verify the integration directly from the command line: