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.
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
Upgraded from 3.5.1 to 4.4.5 - HELP!
-
- 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!
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
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
-
- Posts: 3
- Joined: Tue Sep 10, 2019 1:37 am
Re: Upgraded from 3.5.1 to 4.4.5 - HELP!
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?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
Might check the command configs whilst I am at it, has it changed?
Cheers
-
- 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!
this depends on the directive in the nagios.cfg that includes the filejosscurnuck wrote:is the commands.cfg file meant to be in /usr/local/nagios/etc or /usr/local/nagios/etc/objects?
A nagios install has a few sample commands that haven't changed, but many of these names you have are custom commands.josscurnuck wrote: Might check the command configs whilst I am at it, has it changed?
-
- Posts: 3
- Joined: Tue Sep 10, 2019 1:37 am
Re: Upgraded from 3.5.1 to 4.4.5 - HELP!
All good, I have figured it out. I appreciate the guidance.
Thanks
J
Thanks
J
-
- 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!
Great!josscurnuck wrote:All good, I have figured it out. I appreciate the guidance.
Thanks
J
Locking