Page 1 of 1

Customization in additional information

Posted: Fri Aug 14, 2015 9:27 am
by yunushaikh
Hello Sir,

I have configured my notification email so that I should not receive full IP address in the email.

Below is the email for alerts how I get for check_http looking for the string -s success
suppose my httpd address is
http://192.168.0.100:8080/test/check.jsp

-------------------------------------------------------------------------------------------------
***** Nagios *****

Notification Type: PROBLEM

Service: Check Connection
Host: App1
Address: 0.100
State: CRITICAL

Date/Time: Fri Aug 14 14:14:15 UTC 2015

Additional Info:

connect to address 192.168.0.100 and port 8080: Connection refused

------------------------------------------------------------------------------------------------
I have used cut command so that in Address section it will not show the Full IP address
Now the problem is that, In additional info section the IP address is shown when I am getting the alerts. I want this to be same as it is looking in address.
Is there any way that wherever it uses IP address It should give alert with IP address with last 2 bytes.

Please help!!!

Re: Customization in additional information

Posted: Fri Aug 14, 2015 1:27 pm
by hsmith
Hi yunushaikh,

You should be able to edit the notify-host-by-email command inside of /usr/local/nagios/etc/objects to meet your needs.

If you want to change it elsewhere inside of the software, you'll have to edit and mess around with that to your liking, but we can't assist in the development of that.

If you want any serious customization, you can contact [email protected] to get rolling on that.

I also found this article online that someone else wrote.

Please let us know if we can assist you with anything else.

Re: Customization in additional information

Posted: Tue Aug 18, 2015 10:24 am
by yunushaikh
Thanks sir, I did this using cut command in notify-email.

Thanks a lot for your help.

Re: Customization in additional information

Posted: Tue Aug 18, 2015 10:26 am
by hsmith
yunushaikh wrote:Thanks sir, I did this using cut command in notify-email.

Thanks a lot for your help.
It worked out for you, then?

Is there anything else we can assist you with?

Always glad to help! :D

Re: Customization in additional information

Posted: Tue Aug 18, 2015 10:32 am
by yunushaikh
Thanks Sir,

You can close this thread
I will open another thread if I face any issue