Custom Check files got changed after Nagios XI Upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rohanlrn
Posts: 3
Joined: Tue May 16, 2017 7:04 am

Custom Check files got changed after Nagios XI Upgrade

Post 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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Custom Check files got changed after Nagios XI Upgrade

Post 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
Previous Nagios employee
rohanlrn
Posts: 3
Joined: Tue May 16, 2017 7:04 am

Re: Custom Check files got changed after Nagios XI Upgrade

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Custom Check files got changed after Nagios XI Upgrade

Post 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?
rohanlrn
Posts: 3
Joined: Tue May 16, 2017 7:04 am

Re: Custom Check files got changed after Nagios XI Upgrade

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Custom Check files got changed after Nagios XI Upgrade

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked