disable notification and change hostname

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
surachai.ch
Posts: 43
Joined: Tue Mar 27, 2012 9:58 pm

disable notification and change hostname

Post by surachai.ch »

Hi,

1 I got lot of alert notification from host A so I went to 'Notification Setting' of host A and selected 'Don't send any notifications' under 'When a problem is detected...'. After that I still got notifications about critical/warning of services running on host A.

What else should I do to disable all alert notifications from host A?

2 Can I change hostname of monitoring server in Nagios XI?

Regards,
Surachai.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: disable notification and change hostname

Post by scottwilkerson »

1. you will need to do what you did, but for each of the services for host A.

2. To change a host name for you XI server you can do the following


To make it permanent RedHat/CentOS based system use the file /etc/sysconfig/network to read the saved hostname at system boot. You can edit this file to make the change permanent.

Code: Select all

NETWORKING=yes
HOSTNAME="plain.domainname.com"
GATEWAY="192.168.0.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
surachai.ch
Posts: 43
Joined: Tue Mar 27, 2012 9:58 pm

Re: disable notification and change hostname

Post by surachai.ch »

Thanks for your answer and sorry for my 2nd question is not correct.
Actually I want to update hostname to each monitored host but when I go to 'Re-configure this host' I can only change IP address. Is there anyway to change hostname without losing old performance data?

Regards,
Surachai C.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: disable notification and change hostname

Post by lmiltchev »

I believe you can do this by doing the following:
1. Rename your host via the Core Config Manager
2. Wait until your "new" performance graphs show up
3. Log in terminal and copy the "old" rrd files into the new folder, for example:
If you had a host named: http://www.cnn.com and you just renamed it to: "CNN", you can do:

Code: Select all

cd /usr/local/nagios/share/perfdata/www.cnn.com
cp ./*.rrd /usr/local/nagios/share/perdata/CNN/
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
surachai.ch
Posts: 43
Joined: Tue Mar 27, 2012 9:58 pm

Re: disable notification and change hostname

Post by surachai.ch »

It works, thank you.
Locked