Page 1 of 1

Upgraded from 3.5.1 to 4.4.5 - HELP!

Posted: Wed Sep 11, 2019 2:56 am
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

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Posted: Wed Sep 11, 2019 6:26 am
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

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Posted: Wed Sep 11, 2019 7:32 pm
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

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Posted: Thu Sep 12, 2019 6:53 am
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.

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Posted: Fri Sep 13, 2019 12:19 am
by josscurnuck
All good, I have figured it out. I appreciate the guidance.

Thanks
J

Re: Upgraded from 3.5.1 to 4.4.5 - HELP!

Posted: Fri Sep 13, 2019 6:35 am
by scottwilkerson
josscurnuck wrote:All good, I have figured it out. I appreciate the guidance.

Thanks
J
Great!

Locking