Upgraded from 3.5.1 to 4.4.5 - HELP!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
josscurnuck
Posts: 3
Joined: Tue Sep 10, 2019 1:37 am

Upgraded from 3.5.1 to 4.4.5 - HELP!

Post by josscurnuck »

Hello,

I have taken on the lovely job of upgrading Nagios from 3.5.1 to 4.4.5. This has been a pain for me, the previous person who originally installed it didn't do such a good job which has left me pulling my hair out. Originally I wanted to start fresh with a new install but my manager didn't agree so I did as he wished. I have figured out most of the problems up until this point. I go to verify my config and I am greeted with these two errors. I have tried to re write the contact.cfg from scratch with the new documentation on nagios website but I still suffer from the same issue.

Image
https://imgur.com/a/ktZiQ3r

Blacked out VM's for privacy reasons

I know I have to provide more information but I will answer as the questions come in.

Thanks
J
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Post by scottwilkerson »

The errors that are displaying are commands that are missing
check-host-alive
notify-by-email
notify-camera-by-email
notify-host-by-email
notify-aircon-by-email
notify-phone-by-email
notify-by-email

You may be able to find these command definitions by searching through the configuration files of the old setup
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
josscurnuck
Posts: 3
Joined: Tue Sep 10, 2019 1:37 am

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Post by josscurnuck »

scottwilkerson wrote:The errors that are displaying are commands that are missing
check-host-alive
notify-by-email
notify-camera-by-email
notify-host-by-email
notify-aircon-by-email
notify-phone-by-email
notify-by-email

You may be able to find these command definitions by searching through the configuration files of the old setup
I did think this was the case but they are definitely in the command.cfg file. is the commands.cfg file meant to be in /usr/local/nagios/etc or /usr/local/nagios/etc/objects?

Might check the command configs whilst I am at it, has it changed?

Cheers
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Post by scottwilkerson »

josscurnuck wrote:is the commands.cfg file meant to be in /usr/local/nagios/etc or /usr/local/nagios/etc/objects?
this depends on the directive in the nagios.cfg that includes the file
josscurnuck wrote: Might check the command configs whilst I am at it, has it changed?
A nagios install has a few sample commands that haven't changed, but many of these names you have are custom commands.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
josscurnuck
Posts: 3
Joined: Tue Sep 10, 2019 1:37 am

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Post by josscurnuck »

All good, I have figured it out. I appreciate the guidance.

Thanks
J
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Post by scottwilkerson »

josscurnuck wrote:All good, I have figured it out. I appreciate the guidance.

Thanks
J
Great!

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked