Page 1 of 1

Custom Check files got changed after Nagios XI Upgrade

Posted: Tue May 16, 2017 8:04 am
by rohanlrn
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

Re: Custom Check files got changed after Nagios XI Upgrade

Posted: Tue May 16, 2017 11:31 am
by avandemore
An upgrade will replace any altered stock plugins or components during an upgrade. There is a warning about this in the upgrade script. Since check_oracle is used by a default Nagios XI plugin, you should rename yours to avoid any name collisions in the future.

You can also see our documentation on Oracle here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Custom Check files got changed after Nagios XI Upgrade

Posted: Wed May 17, 2017 4:55 am
by rohanlrn
Hi avandemore,

Thank you for your reply.

As you said "an upgrade will replace any altered stock plugins or components during an upgrade", but my check plugins (/usr/local/nagios/libexec/check_oracle.pl) which got changed is not stock plugin. we downloaded this plugin from nagios forum & modified it as per our need.

Is custom scripts which are downloaded or written, will they get alter / modify / changed at the time of upgrade of XI version?

Also please help me how can i post my query in "Customer Support" section as i have a licensed version & paid subcription of XI. i am not able to see any tab or option which will allow me to post query in "Board index ‹ Customer Support ‹ Nagios XI" section.

Thank You,
Rohan

Re: Custom Check files got changed after Nagios XI Upgrade

Posted: Wed May 17, 2017 12:12 pm
by dwhitfield
rohanlrn wrote: We set oracle environment variable as "11.2.0" as variable in template file
Which template file is this? Do you mean it's set in /usr/local/nagios/libexec/check_oracle.pl itself? If so, could you post that script for us to take a look?

Re: Custom Check files got changed after Nagios XI Upgrade

Posted: Thu May 18, 2017 9:35 am
by rohanlrn
Hi dwhitfield,

Attached are the files which got modified / changed after upgrade.

Also we face scenario where some service checks notifications were disabled, but after upgrade those service checks notifications got enabled automatically & started sending alerts. can you help us with this also.

Thanks,
Rohan

Re: Custom Check files got changed after Nagios XI Upgrade

Posted: Thu May 18, 2017 4:16 pm
by tgriep
When the Nagios XI server is upgraded, it will upgrade the plugins as well as set the default template's back to the original settings and if the host or services that the notifications were re-enabled use those templates, you would have to edit the template and disable the notifications.

Another option, if your server has the Enterprise feature, you can go use the Bulk Modification Tool in the Core Config Manager menu, click the Change a single configuration option button, select the Notifications Enabled from the pull down menu, select your hosts or services, turn it off and save the changes.