Page 2 of 2

Re: SNMP Notifications not sent

Posted: Wed Mar 05, 2014 4:14 am
by aap
Hi,

Thanks for your reply.

I changed the files to lowercase whilst in the import folder and ran the (/usr/local/nagiosxi/scripts/reconfigure_nagios.sh) script. However, the same behaviour re-occured - the hostname reverted to uppercase. The only way I got the name to remain lowercase was to use the 'Import Config Files' tool in CCM. This renamed the hostname successfully however we lose all historical data for this host - the graphing tool no longer shows old data.

My question now is this - is it possible to actually rename hosts to lowercase without losing historical data?

Re: SNMP Notifications not sent

Posted: Wed Mar 05, 2014 11:20 am
by sreinhardt
Yes and no, the biggest issue I can see for data loss would be historical reporting from logs not rrds. To get graphing back as well, you would just need to rename the rrd files to be lower case as well. This will cause all new data to go right back into them and display all previous data.

Re: SNMP Notifications not sent

Posted: Wed Mar 05, 2014 2:36 pm
by aap
Okay. Thanks. I will do that and let you know how I get on.

Re: SNMP Notifications not sent

Posted: Wed Mar 05, 2014 2:39 pm
by slansing
Great, we will await your reply.

Re: SNMP Notifications not sent

Posted: Fri Mar 07, 2014 7:23 am
by aap
The deed has been done. Here's how we did it...

We bulk renamed all the hosts using powershell, deleted the current hosts and reimported the now host config files using the import tool.

We then stopped Nagios, and ran the command

for i in *; do mv "$i" "$(echo $i|tr A-Z a-z)"; done

on the perfdata folder. Applied configuration and after about 20 minutes of nail biting, the hosts all re-appeared with the correct data. Looks good so far.

Thanks for all your help.

Re: SNMP Notifications not sent

Posted: Fri Mar 07, 2014 10:49 am
by slansing
Sounds good, let us know if any issues pop up, I'd give it bit before we know for sure.