[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_auditlog TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_commands TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_events TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_eventqueue TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_incidents TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_meta TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_options TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_sysstat TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_usermeta TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_users TO nagiosxi;'
GRANT
Backing up PostgresQL databases...
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: permission denied for relation xi_eventqueue_eventqueue_id_seq
pg_dump: The command was: SELECT sequence_name, start_value, last_value, increment_by, CASE WHEN increment_by > 0 AND max_value = 9223372036854775807 THEN NULL WHEN increment_by < 0 AND max_value = -1 THEN NULL ELSE max_value END AS max_value, CASE WHEN increment_by > 0 AND min_value = 1 THEN NULL WHEN increment_by < 0 AND min_value = -9223372036854775807 THEN NULL ELSE min_value END AS min_value, cache_value, is_cycled, is_called from xi_eventqueue_eventqueue_id_seq
Error backing up PostgresQL database 'nagiosxi' !
Last edited by avandemore on Fri Dec 16, 2016 11:35 am, edited 1 time in total.
Reason:Please use code tags for output.
I have just one more issue that presented itself recently. Nagios isn't sending out email alerts. Should I create a new incident?
When I try to get a service (for example) to send a custom message, this is what appears in the log.
# tail -f /usr/local/nagios/var/nagios.log
[1481911077] wproc: NOTIFY job 136 from worker Core Worker 21369 is a non-check helper but exited with return code 255
[1481911077] wproc: host=Cenvapprd33; service=CPU Usage; contact=harrisj
[1481911077] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481911077] wproc: stderr line 01: No entry for terminal type "unknown";
[1481911077] wproc: stderr line 02: using dumb terminal settings.
[1481911077] wproc: NOTIFY job 135 from worker Core Worker 21367 is a non-check helper but exited with return code 255
[1481911077] wproc: host=Cenvapprd33; service=CPU Usage; contact=mosesj
[1481911077] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481911077] wproc: stderr line 01: No entry for terminal type "unknown";
[1481911077] wproc: stderr line 02: using dumb terminal settings.
The message "no entry for terminal type "unknown"" is the same as what appears in the upgrade log
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
Fixing php-mcrypt bug...
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
No entry for terminal type "unknown";
using dumb terminal settings.