Acknowledgements and Scheduled Downtime not showing up in XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
shilton
Posts: 13
Joined: Mon Sep 19, 2016 8:25 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by shilton »

Ran the mysqlcheck
stopped and restarted nagios and ndo2db
tried to schedule downtime:
"One or more scheduled commands could not be sent to Nagios Core."
tried to set a new acknowledgement:
Acknowledgements and Comments did not reflect a new entry

Code: Select all

# mysqlcheck -f -r -u root -pnagiosxi --use_frm --databases nagios nagiosql
nagios.nagios_acknowledgements
warning  : Number of rows changed from 0 to 324
status   : OK
nagios.nagios_commands
warning  : Number of rows changed from 0 to 142
status   : OK
nagios.nagios_commenthistory
warning  : Number of rows changed from 0 to 962
status   : OK
nagios.nagios_comments
warning  : Number of rows changed from 0 to 2
status   : OK
nagios.nagios_configfiles
warning  : Number of rows changed from 0 to 1
status   : OK
nagios.nagios_configfilevariables
warning  : Number of rows changed from 0 to 131
status   : OK
nagios.nagios_conninfo
warning  : Number of rows changed from 0 to 1966
status   : OK
nagios.nagios_contact_addresses                    OK
nagios.nagios_contact_notificationcommands
warning  : Number of rows changed from 0 to 156
status   : OK
nagios.nagios_contactgroup_members
warning  : Number of rows changed from 0 to 33
status   : OK
nagios.nagios_contactgroups
warning  : Number of rows changed from 0 to 6
status   : OK
nagios.nagios_contactnotificationmethods
warning  : Number of rows changed from 0 to 4650
status   : OK
nagios.nagios_contactnotifications
warning  : Number of rows changed from 0 to 4650
status   : OK
nagios.nagios_contacts
warning  : Number of rows changed from 0 to 13
status   : OK
nagios.nagios_contactstatus
warning  : Number of rows changed from 0 to 13
status   : OK
nagios.nagios_customvariables
warning  : Number of rows changed from 0 to 47
status   : OK
nagios.nagios_customvariablestatus
warning  : Number of rows changed from 0 to 47
status   : OK
nagios.nagios_dbversion
warning  : Number of rows changed from 0 to 1
status   : OK
nagios.nagios_downtimehistory
warning  : Number of rows changed from 0 to 82
status   : OK
nagios.nagios_eventhandlers
warning  : Number of rows changed from 0 to 7
status   : OK
nagios.nagios_externalcommands
warning  : Number of rows changed from 0 to 27
status   : OK
nagios.nagios_flappinghistory
warning  : Number of rows changed from 0 to 3921
status   : OK
nagios.nagios_host_contactgroups
warning  : Number of rows changed from 0 to 81
status   : OK
nagios.nagios_host_contacts
warning  : Number of rows changed from 0 to 1
status   : OK
nagios.nagios_host_parenthosts                     OK
nagios.nagios_hostchecks                           OK
nagios.nagios_hostdependencies                     OK
nagios.nagios_hostescalation_contactgroups         OK
nagios.nagios_hostescalation_contacts              OK
nagios.nagios_hostescalations                      OK
nagios.nagios_hostgroup_members
warning  : Number of rows changed from 0 to 62
status   : OK
nagios.nagios_hostgroups
warning  : Number of rows changed from 0 to 16
status   : OK
nagios.nagios_hosts
warning  : Number of rows changed from 0 to 72
status   : OK
nagios.nagios_hoststatus
info     : Delete link points outside datafile at 22008
warning  : Number of rows changed from 0 to 72
status   : OK
nagios.nagios_instances
warning  : Number of rows changed from 0 to 1
status   : OK
nagios.nagios_logentries
warning  : Number of rows changed from 0 to 10126
status   : OK
nagios.nagios_notifications
warning  : Number of rows changed from 0 to 2867
status   : OK
nagios.nagios_objects
warning  : Number of rows changed from 0 to 2330
status   : OK
nagios.nagios_processevents
warning  : Number of rows changed from 0 to 5697
status   : OK
nagios.nagios_programstatus
warning  : Number of rows changed from 0 to 1
status   : OK
nagios.nagios_runtimevariables
warning  : Number of rows changed from 0 to 18
status   : OK
nagios.nagios_scheduleddowntime                    OK
nagios.nagios_service_contactgroups
warning  : Number of rows changed from 0 to 244
status   : OK
nagios.nagios_service_contacts
warning  : Number of rows changed from 0 to 36
status   : OK
nagios.nagios_service_parentservices               OK
nagios.nagios_servicechecks                        OK
nagios.nagios_servicedependencies                  OK
nagios.nagios_serviceescalation_contactgroups      OK
nagios.nagios_serviceescalation_contacts           OK
nagios.nagios_serviceescalations                   OK
nagios.nagios_servicegroup_members
warning  : Number of rows changed from 0 to 5
status   : OK
nagios.nagios_servicegroups
warning  : Number of rows changed from 0 to 2
status   : OK
nagios.nagios_services
warning  : Number of rows changed from 0 to 280
status   : OK
nagios.nagios_servicestatus
warning  : Number of rows changed from 0 to 280
status   : OK
nagios.nagios_statehistory
info     : Delete link points outside datafile at 5022968
warning  : Number of rows changed from 0 to 167031
status   : OK
nagios.nagios_systemcommands
info     : Delete link points outside datafile at 0
info     : Found block with too small length at 1084; Skipped
info     : Found block with too small length at 3164; Skipped
info     : Found block with too small length at 3944; Skipped
info     : Delete link points outside datafile at 23672
warning  : Number of rows changed from 0 to 108
status   : OK
nagios.nagios_timedeventqueue                      OK
nagios.nagios_timedevents                          OK
nagios.nagios_timeperiod_timeranges
warning  : Number of rows changed from 0 to 164
status   : OK
nagios.nagios_timeperiods
warning  : Number of rows changed from 0 to 27
status   : OK
nagiosql.tbl_command
warning  : Number of rows changed from 0 to 146
status   : OK
nagiosql.tbl_contact
warning  : Number of rows changed from 0 to 12
status   : OK
nagiosql.tbl_contactgroup
warning  : Number of rows changed from 0 to 6
status   : OK
nagiosql.tbl_contacttemplate
warning  : Number of rows changed from 0 to 2
status   : OK
nagiosql.tbl_domain
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_host
warning  : Number of rows changed from 0 to 110
status   : OK
nagiosql.tbl_hostdependency                        OK
nagiosql.tbl_hostescalation                        OK
nagiosql.tbl_hostextinfo                           OK
nagiosql.tbl_hostgroup
warning  : Number of rows changed from 0 to 17
status   : OK
nagiosql.tbl_hosttemplate
warning  : Number of rows changed from 0 to 66
status   : OK
nagiosql.tbl_info
warning  : Number of rows changed from 0 to 218
status   : OK
nagiosql.tbl_lnkContactToCommandHost
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_lnkContactToCommandService
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_lnkContactToContactgroup              OK
nagiosql.tbl_lnkContactToContacttemplate
warning  : Number of rows changed from 0 to 12
status   : OK
nagiosql.tbl_lnkContactToVariabledefinition        OK
nagiosql.tbl_lnkContactgroupToContact
warning  : Number of rows changed from 0 to 32
status   : OK
nagiosql.tbl_lnkContactgroupToContactgroup         OK
nagiosql.tbl_lnkContacttemplateToCommandHost
warning  : Number of rows changed from 0 to 2
status   : OK
nagiosql.tbl_lnkContacttemplateToCommandService
warning  : Number of rows changed from 0 to 2
status   : OK
nagiosql.tbl_lnkContacttemplateToContactgroup
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_lnkContacttemplateToContacttemplate   OK
nagiosql.tbl_lnkContacttemplateToVariabledefinition OK
nagiosql.tbl_lnkHostToContact                      OK
nagiosql.tbl_lnkHostToContactgroup                 OK
nagiosql.tbl_lnkHostToHost                         OK
nagiosql.tbl_lnkHostToHostgroup
warning  : Number of rows changed from 0 to 39
status   : OK
nagiosql.tbl_lnkHostToHosttemplate
warning  : Number of rows changed from 0 to 107
status   : OK
nagiosql.tbl_lnkHostToVariabledefinition
warning  : Number of rows changed from 0 to 7
status   : OK
nagiosql.tbl_lnkHostdependencyToHost_DH            OK
nagiosql.tbl_lnkHostdependencyToHost_H             OK
nagiosql.tbl_lnkHostdependencyToHostgroup_DH       OK
nagiosql.tbl_lnkHostdependencyToHostgroup_H        OK
nagiosql.tbl_lnkHostescalationToContact            OK
nagiosql.tbl_lnkHostescalationToContactgroup       OK
nagiosql.tbl_lnkHostescalationToHost               OK
nagiosql.tbl_lnkHostescalationToHostgroup          OK
nagiosql.tbl_lnkHostgroupToHost
warning  : Number of rows changed from 0 to 65
status   : OK
nagiosql.tbl_lnkHostgroupToHostgroup
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_lnkHosttemplateToContact
warning  : Number of rows changed from 0 to 2
status   : OK
nagiosql.tbl_lnkHosttemplateToContactgroup
warning  : Number of rows changed from 0 to 20
status   : OK
nagiosql.tbl_lnkHosttemplateToHost
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_lnkHosttemplateToHostgroup
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_lnkHosttemplateToHosttemplate
warning  : Number of rows changed from 0 to 61
status   : OK
nagiosql.tbl_lnkHosttemplateToVariabledefinition   OK
nagiosql.tbl_lnkServiceToContact
warning  : Number of rows changed from 0 to 2
status   : OK
nagiosql.tbl_lnkServiceToContactgroup              OK
nagiosql.tbl_lnkServiceToHost
warning  : Number of rows changed from 0 to 131
status   : OK
nagiosql.tbl_lnkServiceToHostgroup
warning  : Number of rows changed from 0 to 34
status   : OK
nagiosql.tbl_lnkServiceToServicegroup              OK
nagiosql.tbl_lnkServiceToServicetemplate
warning  : Number of rows changed from 0 to 111
status   : OK
nagiosql.tbl_lnkServiceToVariabledefinition
warning  : Number of rows changed from 0 to 26
status   : OK
nagiosql.tbl_lnkServicedependencyToHost_DH         OK
nagiosql.tbl_lnkServicedependencyToHost_H          OK
nagiosql.tbl_lnkServicedependencyToHostgroup_DH    OK
nagiosql.tbl_lnkServicedependencyToHostgroup_H     OK
nagiosql.tbl_lnkServicedependencyToService_DS      OK
nagiosql.tbl_lnkServicedependencyToService_S       OK
nagiosql.tbl_lnkServiceescalationToContact         OK
nagiosql.tbl_lnkServiceescalationToContactgroup    OK
nagiosql.tbl_lnkServiceescalationToHost            OK
nagiosql.tbl_lnkServiceescalationToHostgroup       OK
nagiosql.tbl_lnkServiceescalationToService         OK
nagiosql.tbl_lnkServicegroupToService
warning  : Number of rows changed from 0 to 7
status   : OK
nagiosql.tbl_lnkServicegroupToServicegroup         OK
nagiosql.tbl_lnkServicetemplateToContact
warning  : Number of rows changed from 0 to 3
status   : OK
nagiosql.tbl_lnkServicetemplateToContactgroup
warning  : Number of rows changed from 0 to 11
status   : OK
nagiosql.tbl_lnkServicetemplateToHost              OK
nagiosql.tbl_lnkServicetemplateToHostgroup
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_lnkServicetemplateToServicegroup      OK
nagiosql.tbl_lnkServicetemplateToServicetemplate
warning  : Number of rows changed from 0 to 90
status   : OK
nagiosql.tbl_lnkServicetemplateToVariabledefinition OK
nagiosql.tbl_lnkTimeperiodToTimeperiod             OK
nagiosql.tbl_logbook                               OK
nagiosql.tbl_mainmenu
warning  : Number of rows changed from 0 to 7
status   : OK
nagiosql.tbl_service
warning  : Number of rows changed from 0 to 119
status   : OK
nagiosql.tbl_servicedependency                     OK
nagiosql.tbl_serviceescalation                     OK
nagiosql.tbl_serviceextinfo                        OK
nagiosql.tbl_servicegroup
warning  : Number of rows changed from 0 to 2
status   : OK
nagiosql.tbl_servicetemplate
warning  : Number of rows changed from 0 to 97
status   : OK
nagiosql.tbl_session
info     : Delete link points outside datafile at 0
info     : Delete link points outside datafile at 832
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_session_locks
info     : Delete link points outside datafile at 0
info     : Delete link points outside datafile at 184
warning  : Number of rows changed from 0 to 1
status   : OK
nagiosql.tbl_settings
warning  : Number of rows changed from 0 to 12
status   : OK
nagiosql.tbl_submenu
warning  : Number of rows changed from 0 to 29
status   : OK
nagiosql.tbl_timedefinition
warning  : Number of rows changed from 0 to 170
status   : OK
nagiosql.tbl_timeperiod
warning  : Number of rows changed from 0 to 26
status   : OK
nagiosql.tbl_user
warning  : Number of rows changed from 0 to 3
status   : OK
nagiosql.tbl_variabledefinition
info     : Delete link points outside datafile at 5392
warning  : Number of rows changed from 0 to 152
status   : OK
Last edited by tmcdonald on Tue Sep 19, 2017 12:21 pm, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by dwhitfield »

What's the output of sestatus? Also, please attach your /etc/sudoers. Has there been any other hardening on this server?
shilton
Posts: 13
Joined: Mon Sep 19, 2016 8:25 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by shilton »

Info sent in PM.

Scheduled Downtimes and Acknowledgements were working in the recent past, no server reconfiguration other than Nagios XI upgrades in that window.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by tgriep »

Can you run the following commands and post the output?

Code: Select all

chage -l nagios
grep nag /etc/passwd
grep nag /etc/group
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
shilton
Posts: 13
Joined: Mon Sep 19, 2016 8:25 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by shilton »

Info sent in a PM
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by cdienger »

Tom is out this week. Please PM me the info and I can take a look and make it available for other techs here as well.

Mod Edit: Files received and placed on shared drive
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shilton
Posts: 13
Joined: Mon Sep 19, 2016 8:25 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by shilton »

cdienger wrote:Tom is out this week. Please PM me the info and I can take a look and make it available for other techs here as well.
PM sent.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by tmcdonald »

Something is odd, there is a missing file (profile.txt) from the profile you sent. Everything else was present though. That might point to something, just not sure what.

I did notice that in your /usr/local/nagiosxi/html/config.inc.php file you have $cfg['use_https']=false; set but you appear to be using SSL elsewhere - can you edit that file to say $cfg['use_https']=true; and try again? In addition, go to Admin -> System Settings in the web interface and make sure the Program URL uses https:// at the beginning.
Former Nagios employee
shilton
Posts: 13
Joined: Mon Sep 19, 2016 8:25 am

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by shilton »

tmcdonald wrote:Something is odd, there is a missing file (profile.txt) from the profile you sent. Everything else was present though. That might point to something, just not sure what.

I did notice that in your /usr/local/nagiosxi/html/config.inc.php file you have $cfg['use_https']=false; set but you appear to be using SSL elsewhere - can you edit that file to say $cfg['use_https']=true; and try again? In addition, go to Admin -> System Settings in the web interface and make sure the Program URL uses https:// at the beginning.
Thanks for the help tmcdonald,

I changed these settings and restarted Nagios but still no ability to schedule downtime for a host.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Acknowledgements and Scheduled Downtime not showing up i

Post by scottwilkerson »

Can you verify this, from the command line on your Nagios XI server, can localhost be found?

Code: Select all

ping localhost
or

Code: Select all

cat /etc/hosts
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked