Custom Notification & Alerts > Notification > All

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Custom Notification & Alerts > Notification > All

Post by amprantino »

Alerts > Notifications > "All Notifications" (top right corner) does not include "Service Custom".

Is this done on purpose or something is missing?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Custom Notification & Alerts > Notification > All

Post by dwhitfield »

I think you mean Notifications > "All Notifications" not Alerts > Notifications > "All Notifications". It might be a difference in version though. For example, I do have "Service custom" on my 4.2.2, but again, it isn't under Alerts, it's under Notifications.

What version of Core are you using? Was it compiled from source or installed from distro repos? On what OS/version is nagios running? cat /etc/*-release may be of use.
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Custom Notification & Alerts > Notification > All

Post by amprantino »

Yes, Notifications > "All Notifications"

Nagios Core 4.1.1
Debian
Installed from source

cat /etc/debian_version
8.8
uname -a
Linux SERVER 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
Attachments
Snap1.png
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Custom Notification & Alerts > Notification > All

Post by tgriep »

Can you look in the nagios.log file and see if you see the Custom notification like the example below.

Code: Select all

EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;192.168.112.129;HTTP;3;Nagios Administrator;Custom Service Notification
Can you post your nagios.cfg file so we can check it's settings?
Be sure to check out our Knowledgebase for helpful articles and solutions!
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Custom Notification & Alerts > Notification > All

Post by amprantino »

I sent a few custom notification (2 different hosts) and then:
root@SERVER:/var/log/nagios# cat nagios.log | grep SEND_CUSTOM_SVC_NOTIFICATION
[1496038567] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;NMS;CPU;0;USER;test1
[1496039009] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;SERVER2;NetBackup_Service_bpcd;0;USER;test - ignore
[1496039398] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;SERVER2;Memory;0;USER;test2 - ignore
[1496039460] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;SERVER2;Memory;0;USER;test3 - ignore
Here is what I see to the notifications list:
Snap2.png
The last two messages, from Server2, are missing from the list

This is the definition of "Memory"

Code: Select all


define host {
        host_name                       Servers2
        address                         192.168.11.11
        hostgroups                     grp1,grp2
        parents                        hypervX
        check_command                   check-host-alive
        max_check_attempts              2
        process_perf_data               0
        retain_nonstatus_information    1
        notification_interval           120
        notification_period             24x7
        notification_options            d,u,r
        contact_groups                  aaa,bbb,ccc
        contacts                        xxx,yyy,zzz
        }

define service{
        host_name                       Server2
        service_description             Memory
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           20
        retry_check_interval            2
        notification_interval           720
        notification_period             24x7
        notification_options            w,c,r
        check_command                   check_snmp_windows_memory!a3-public!89!90
        }
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Custom Notification & Alerts > Notification > All

Post by tgriep »

That is strange that is is displaying some of the custom notifications and not the rest.
If you go back and just display the Service Custom notifications, do they show up then?
Can you upgrade to the latest Nagios Core and see if the issue goes away?
Be sure to check out our Knowledgebase for helpful articles and solutions!
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Custom Notification & Alerts > Notification > All

Post by amprantino »

I will upgrade Nagios Core during the next month and then I will update the post

Thank you
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Custom Notification & Alerts > Notification > All

Post by avandemore »

Ok, we'll keep the thread open for now. Let us know after you have tested.
Previous Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Custom Notification & Alerts > Notification > All

Post by tmcdonald »

Just responding as @avandemore is no longer with the company (good terms) but we will still keep this open for you.
Former Nagios employee
Locked