Custom Check files got changed after Nagios XI Upgrade
Posted: Tue May 16, 2017 8:04 am
Hi,
# Server Details
Machine Type – Virtual Machine
Server Operating System - CentOS release 6.7
Operating System Architecture - i686
# Nagios XI Details
Old Version - 2014R2.7
Upgraded to Version - 5.4.4
We performed Nagios XI upgrade from version 2014R2.7 to latest version 5.4.4.
Followed below steps to version upgrade -
1 - cd /tmp
2 - wget https://assets.nagios.com/downloads/nag ... est.tar.gz
3 - tar xzf xi-latest.tar.gz
4 - cd nagiosxi
5 - ./upgrade
By performing above process i got the message "Nagios XI Upgrade Complete!"
After the upgrade we received alerts for oracle DB checks. After investigation we found that template file (/usr/local/nagios/libexec/check_oracle.pl) which we were using for oracle DB check got edited.
We set oracle environment variable as "11.2.0" as variable in template file before upgrade but after upgrade it was showing "8.1.7" as set variable in template file (/usr/local/nagios/libexec/check_oracle.pl). because of this all our oracle DB checks were getting failed.
/usr/local/nagios/libexec/check_oracle.pl is a custom script written for oracle DB checks.
Is Nagios XI upgrade edit the custom check scripts (/usr/local/nagios/libexec/check_oracle.pl) at the time of upgrade?
also wanted to know after performing "./upgrade" script what existing nagios xi files it modify / edit / changes.
Thanks in advance,
Rohan
# Server Details
Machine Type – Virtual Machine
Server Operating System - CentOS release 6.7
Operating System Architecture - i686
# Nagios XI Details
Old Version - 2014R2.7
Upgraded to Version - 5.4.4
We performed Nagios XI upgrade from version 2014R2.7 to latest version 5.4.4.
Followed below steps to version upgrade -
1 - cd /tmp
2 - wget https://assets.nagios.com/downloads/nag ... est.tar.gz
3 - tar xzf xi-latest.tar.gz
4 - cd nagiosxi
5 - ./upgrade
By performing above process i got the message "Nagios XI Upgrade Complete!"
After the upgrade we received alerts for oracle DB checks. After investigation we found that template file (/usr/local/nagios/libexec/check_oracle.pl) which we were using for oracle DB check got edited.
We set oracle environment variable as "11.2.0" as variable in template file before upgrade but after upgrade it was showing "8.1.7" as set variable in template file (/usr/local/nagios/libexec/check_oracle.pl). because of this all our oracle DB checks were getting failed.
/usr/local/nagios/libexec/check_oracle.pl is a custom script written for oracle DB checks.
Is Nagios XI upgrade edit the custom check scripts (/usr/local/nagios/libexec/check_oracle.pl) at the time of upgrade?
also wanted to know after performing "./upgrade" script what existing nagios xi files it modify / edit / changes.
Thanks in advance,
Rohan