SNMP Notifications not sent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: SNMP Notifications not sent

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP Notifications not sent

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: SNMP Notifications not sent

Post by aap »

Okay. Thanks. I will do that and let you know how I get on.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SNMP Notifications not sent

Post by slansing »

Great, we will await your reply.
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: SNMP Notifications not sent

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SNMP Notifications not sent

Post by slansing »

Sounds good, let us know if any issues pop up, I'd give it bit before we know for sure.
Locked