I just received a report that multiple people are getting Nagios alerts they're not supposed to be receiving. The specific systems that these alerts are for should only be getting sent to two specific individuals and after reviewing the settings everything appears to be properly configured, yet alerts are being distributed to everyone.
The following is an example of the format used in the API calls that are made when systems are spun up on AWS. As you can see the contact group is properly set. Yet these systems and all others even deployed with the wizards are deploying notifications to every contact in the system if an alert is triggered.
Code: Select all
# SERVICE CPU STATS
curl -XPOST "http://nagios.flhi.com/nagiosxi/api/v1/config/service?apikey=${API}&pretty=1" -d "host_name=${ID}&\
service_description=CPU Stats&\
check_command=check_nrpe\!check_cpu_stats\!-a '-w 85 -c 95'&\
check_interval=5&\
retry_interval=1&\
max_check_attempts=5&\
check_period=24x7&\
contact_groups=Linux&\
notification_interval=5&\
notification_period=24x7&\
applyconfig=1"- 1.Linux Distribution and version? CentOS Linux release 7.4.1708
2. 32 or 64bit? x64
3. VMware Image or Manual Install of XI? Manual
4. Are there special configurations on your system? No.
Code: Select all
[1513023896] SERVICE ALERT: i-044826cb9a126f379;Winbind Daemon;CRITICAL;SOFT;4;(Return code of 255 is out of bounds)
[1513023961] SERVICE ALERT: i-044826cb9a126f379;System Logging Daemon;CRITICAL;HARD;5;CHECK_NRPE: Socket timeout after 30 seconds.
[1513023961] SERVICE NOTIFICATION: fjubas;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout
after 30 seconds.
[1513023961] SERVICE NOTIFICATION: fsuarez;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout
after 30 seconds.
[1513023961] SERVICE NOTIFICATION: jfisher;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout
after 30 seconds.
[1513023961] SERVICE NOTIFICATION: jvelez;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout
after 30 seconds.
[1513023961] SERVICE NOTIFICATION: mmoscater;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeo
ut after 30 seconds.
[1513023961] SERVICE NOTIFICATION: nagiosadmin;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket tim
eout after 30 seconds.
[1513023961] SERVICE NOTIFICATION: rweatherbee;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket tim
eout after 30 seconds.
[1513023961] SERVICE NOTIFICATION: jandrews;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeou
t after 30 seconds.
[1513023961] SERVICE NOTIFICATION: mcole;i-044826cb9a126f379;System Logging Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout a
fter 30 seconds.
[1513023983] SERVICE ALERT: i-044826cb9a126f379;Winbind Daemon;CRITICAL;HARD;5;CHECK_NRPE: Socket timeout after 30 seconds.
[1513023983] SERVICE NOTIFICATION: fjubas;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after 3
0 seconds.
[1513023983] SERVICE NOTIFICATION: fsuarez;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after
30 seconds.
[1513023983] SERVICE NOTIFICATION: jfisher;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after
30 seconds.
[1513023983] SERVICE NOTIFICATION: jvelez;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after 30 seconds.
[1513023983] SERVICE NOTIFICATION: mmoscater;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after 30 seconds.
[1513023983] SERVICE NOTIFICATION: nagiosadmin;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after 30 seconds.
[1513023983] SERVICE NOTIFICATION: rweatherbee;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after 30 seconds.
[1513023983] SERVICE NOTIFICATION: jandrews;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after 30 seconds.
[1513023983] SERVICE NOTIFICATION: mcole;i-044826cb9a126f379;Winbind Daemon;CRITICAL;xi_service_notification_handler;CHECK_NRPE: Socket timeout after 30 seconds.