Customization in additional information

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
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Customization in additional information

Post 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!!!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Customization in additional information

Post 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.
Former Nagios Employee.
me.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Customization in additional information

Post by yunushaikh »

Thanks sir, I did this using cut command in notify-email.

Thanks a lot for your help.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Customization in additional information

Post 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
Former Nagios Employee.
me.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Customization in additional information

Post by yunushaikh »

Thanks Sir,

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