Search found 206 matches

by hhlodge
Tue Feb 25, 2014 11:55 am
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

Regarding abrist's inquiry - 1) I presume that you have defined the $SERVICEACTIONURL$ on the object? No, I assumed the macro was populated by XI since the xi_notification handler has content in the macro, but now I see those are different macros. Are those Xi ones (responseurl and xiserverurl) even...
by hhlodge
Mon Feb 24, 2014 5:15 pm
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

I have this working well now but cannot get $SERVICEACTIONURL$ macro to expand. All documents I see say it should be available in a service notification. ??? Here's the command. /usr/local/scripts/notify-custom-service-by-email.ksh "$NOTIFICATIONTYPE$" "$SERVICEDESC$" "$SERV...
by hhlodge
Mon Feb 24, 2014 12:32 pm
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

Scratch that, I was tricked! :-) # ./args.ksh "one word" "two more words" "how many here" Arg1 is: one word Arg2 is: two more words Arg3 is: how many here Arg4 is: Arg5 is: Arg6 is: Arg7 is: Arg8 is: Arg9 is: Arg10 is: one word0 Arg11 is: one word1 Arg12 is: one word2 A...
by hhlodge
Mon Feb 24, 2014 12:26 pm
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

Not what I am seeing. # cat args.ksh #!/bin/ksh echo "Arg1 is: $1" echo "Arg2 is: $2" echo "Arg3 is: $3" echo "Arg4 is: $4" echo "Arg5 is: $5" echo "Arg6 is: $6" echo "Arg7 is: $7" echo "Arg8 is: $8" echo "Arg9 is: ...
by hhlodge
Mon Feb 24, 2014 9:26 am
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

I am running into trouble passing arguments from Nagios to a Korn shell script. Can someone shed some light on these PROBLEM[0-9] values? Is it some sort of limit? /usr/local/scripts/notify-custom-service-by-email.ksh "$NOTIFICATIONTYPE$" "$SERVICEDESC$" "$SERVICEGROUPNAMES$...
by hhlodge
Fri Feb 21, 2014 3:21 pm
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

On an aside, this exercise has gotten me to pursue something I've wanted Nagios to do for years and that's to have all the recipients of a notification be in the To: header so people can "reply all" to issues, yet each notification from Nagios only go the one intended recipient ($CONTACTEM...
by hhlodge
Wed Feb 19, 2014 9:12 am
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

Make your new notification command something like this. /usr/local/bin/notifications.ksh $NOTIFICATIONTYPE$ $SERVICEDESC$ $HOSTALIAS$ $HOSTADDRESS$ $SERVICESTATE$ $LONGDATETIME$ $CONTACTEMAIL$ .... etc. ... Then in notifications.ksh, something along these lines. #!/bin/ksh NOTIFICATIONTYPE=$1 SERVIC...
by hhlodge
Fri Feb 14, 2014 9:33 am
Forum: Nagios XI
Topic: Different Emails For Different Alerts
Replies: 21
Views: 3512

Re: Different Emails For Different Alerts

I would clone notify-service-by-email to a new handler, like notify-custom-service-by-email and make it call a script with all the macros as arguments. In the script, just put the logic to include the URL you want based on the value of one of those macros, depending on what you need. I've done this ...
by hhlodge
Fri Feb 14, 2014 8:40 am
Forum: Nagios XI
Topic: auto-discovery wizard never finishes
Replies: 5
Views: 709

Re: auto-discovery wizard never finishes

My bad, I was already monitoring that particular host so I was seeing normal SNMP polls from already-in-place Nagios checks. Beyond that, if the Linux SNMP wizard can query for file systems, processes, etc., surely the auto-discovery wizard could be enhanced to do so. It would make it much more usef...
by hhlodge
Thu Feb 13, 2014 4:27 pm
Forum: Nagios XI
Topic: auto-discovery wizard never finishes
Replies: 5
Views: 709

Re: auto-discovery wizard never finishes

Sure did - it finished in about 10 seconds. I see all the services it discovered. I don't see any file systems or other entiities. Maybe it's not supposed to capture those, even though I see the data being returned to the XI host.