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.
disable notification and change hostname
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: disable notification and change hostname
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.
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"
-
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Re: disable notification and change hostname
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.
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
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:
Hope this helps.
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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Re: disable notification and change hostname
It works, thank you.