Page 1 of 1

disable notification and change hostname

Posted: Mon Jun 04, 2012 11:23 pm
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.

Re: disable notification and change hostname

Posted: Tue Jun 05, 2012 10:41 am
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"

Re: disable notification and change hostname

Posted: Tue Jun 05, 2012 9:34 pm
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.

Re: disable notification and change hostname

Posted: Wed Jun 06, 2012 10:40 am
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.

Re: disable notification and change hostname

Posted: Thu Jun 07, 2012 11:47 pm
by surachai.ch
It works, thank you.