Page 1 of 1

Custom Notification & Alerts > Notification > All

Posted: Tue May 23, 2017 4:00 am
by amprantino
Alerts > Notifications > "All Notifications" (top right corner) does not include "Service Custom".

Is this done on purpose or something is missing?

Re: Custom Notification & Alerts > Notification > All

Posted: Tue May 23, 2017 12:03 pm
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.

Re: Custom Notification & Alerts > Notification > All

Posted: Fri May 26, 2017 1:41 am
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

Re: Custom Notification & Alerts > Notification > All

Posted: Fri May 26, 2017 11:05 am
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?

Re: Custom Notification & Alerts > Notification > All

Posted: Mon May 29, 2017 1:29 am
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
        }

Re: Custom Notification & Alerts > Notification > All

Posted: Tue May 30, 2017 12:00 pm
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?

Re: Custom Notification & Alerts > Notification > All

Posted: Mon Jun 05, 2017 4:23 am
by amprantino
I will upgrade Nagios Core during the next month and then I will update the post

Thank you

Re: Custom Notification & Alerts > Notification > All

Posted: Mon Jun 05, 2017 12:03 pm
by avandemore
Ok, we'll keep the thread open for now. Let us know after you have tested.

Re: Custom Notification & Alerts > Notification > All

Posted: Wed Jun 21, 2017 1:32 pm
by tmcdonald
Just responding as @avandemore is no longer with the company (good terms) but we will still keep this open for you.