Error deploying 5.8.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
infofedsec
Posts: 32
Joined: Wed Apr 17, 2019 5:28 am

Error deploying 5.8.1

Post by infofedsec »

To be compliant with the corporate standards we have had to deploy Nagios via puppet. We have managed to get it installed and the web interface running however the monitoring engine and performance grapher will not run. Additionally when i went download a system profile for this ticket i got profile build failed, code 1.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error deploying 5.8.1

Post by dchurch »

Nagios XI requires a specific set of permissions in order to work correctly. Some operations will fail intermittently if the permissions are not set properly.

Try running this on the command line (as root):

Code: Select all

cd /usr/local/nagiosxi/scripts
./reset_config_perms.sh
chown -R nagios:nagios  /usr/local/nagios/libexec
chmod -R 755  /usr/local/nagios/libexec
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
infofedsec
Posts: 32
Joined: Wed Apr 17, 2019 5:28 am

Re: Error deploying 5.8.1

Post by infofedsec »

I ran this and nothing changed. The monitoring engine and performance grapher still won't run and profiledownload gives the same error
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error deploying 5.8.1

Post by dchurch »

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
infofedsec
Posts: 32
Joined: Wed Apr 17, 2019 5:28 am

Re: Error deploying 5.8.1

Post by infofedsec »

sent you a pm
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error deploying 5.8.1

Post by dchurch »

MySQL is running, but I saw this error when the database was starting up:

Code: Select all

210228  1:53:10 [ERROR] mysqld: Can't create/write to file '/var/run/mariadb/mariadb.pid' (Errcode: 2)
210228  1:53:10 [ERROR] Can't start server: can't create PID file: No such file or directory
Can you verify that directory exists on your nagios xi machine and that it's chowned to mysql:mysql?
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
infofedsec
Posts: 32
Joined: Wed Apr 17, 2019 5:28 am

Re: Error deploying 5.8.1

Post by infofedsec »

i can confirm its definitely there
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error deploying 5.8.1

Post by dchurch »

I noticed you're also missing some Perl libraries: SOAP::Lite should be installed and isn't. Needed for /usr/local/nagios/libexec/sn_ticketer.pl.

What's the output from the following command:

Code: Select all

service nagios restart
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error deploying 5.8.1

Post by dchurch »

I found more errors:

Code: Select all

    <p><pre>SQL Error [ndoutils] : Table 'nagios.nagios_servicestatus' doesn't exist</pre></p>
    <p><pre>SQL Error [ndoutils] : Table 'nagios.nagios_hoststatus' doesn't exist</pre></p>
Apparently some of the database tables are missing. Perhaps a re-creation of the database is necessary.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
infofedsec
Posts: 32
Joined: Wed Apr 17, 2019 5:28 am

Re: Error deploying 5.8.1

Post by infofedsec »

Whats the best way to do the recreation? I feel like the repair commands will only repair what exists
Locked