Email Notifications - Not displaying all lines of output
Posted: Thu Sep 17, 2020 3:20 pm
Hey Nagios,
How can i have all of the output from a service check be displayed within the associated email notification as well?
sensitive information has been redacted:
Here's the service check when viewing it within the GUI, when viewing the specific check you can see more lines than just the bolded one Here's the email notification, it ONLY shows the bolded line, i want to have ALL the output be provided in the email notification, please advise Also, would you mind providing updated commands for the ones provided in the linked ticket below? since 5.7 upgrade the first one doesn't work, and i'm not sure if the other ones are either, i'm assuming this may be due to the DB change in 5.7:
Here's the locked thread where y'all helped me out prior. Since the 5.7 upgrade they do not seem to be resolving the issue anymore https://support.nagios.com/forum/viewto ... 16&t=56569
How can i have all of the output from a service check be displayed within the associated email notification as well?
sensitive information has been redacted:
Here's the service check when viewing it within the GUI, when viewing the specific check you can see more lines than just the bolded one Here's the email notification, it ONLY shows the bolded line, i want to have ALL the output be provided in the email notification, please advise Also, would you mind providing updated commands for the ones provided in the linked ticket below? since 5.7 upgrade the first one doesn't work, and i'm not sure if the other ones are either, i'm assuming this may be due to the DB change in 5.7:
Code: Select all
echo "desc nagios_servicestatus;"|mysql -pnagiosxi nagios|grep output
echo "use nagios;alter table nagios_servicestatus modify output varchar(65535) not null;alter table nagios_servicestatus modify long_output TEXT not null;alter table nagios_servicestatus modify perfdata TEXT not null;" | mysql -pnagiosxi
echo "use nagios;alter table nagios_hoststatus modify output varchar(65535) not null;alter table nagios_hoststatus modify long_output TEXT not null;alter table nagios_hoststatus modify perfdata TEXT not null;" | mysql -pnagiosxi
echo "use nagios;alter table nagios_servicechecks modify output varchar(65535) not null;alter table nagios_servicechecks modify long_output TEXT not null;alter table nagios_servicechecks modify perfdata TEXT not null;" | mysql -pnagiosxi
echo "use nagios;alter table nagios_hostchecks modify output varchar(65535) not null;alter table nagios_hostchecks modify long_output TEXT not null;alter table nagios_hostchecks modify perfdata TEXT not null;" | mysql -pnagiosxi