Insert from database
Posted: Tue Aug 04, 2015 4:16 am
Hi,
I want to update the Service Status screen manually from mysql command with a new alert. is it possible ?
what's the minimum fields to update in order to see it as an active alert ? tried something like that :
echo "use nagios; INSERT INTO nagios_servicestatus (output,notifications_enabled) VALUES ('test123','1');" | mysql -h xxxxxxxx -t -pxxxxxxx
can you send me an example ?
Thanks
I want to update the Service Status screen manually from mysql command with a new alert. is it possible ?
what's the minimum fields to update in order to see it as an active alert ? tried something like that :
echo "use nagios; INSERT INTO nagios_servicestatus (output,notifications_enabled) VALUES ('test123','1');" | mysql -h xxxxxxxx -t -pxxxxxxx
can you send me an example ?
Thanks