Restart naemon with errors

13 views
Skip to first unread message

Manuel Gutiérrez Molina

unread,
Oct 9, 2024, 9:10:08 AM10/9/24
to Thruk
Is there a way to disable the reload button if there are errors when checking? Another option would be that even if the reload is carried out with errors, when you click on reload again it does a restart allowing you to start naemon again.
This problem comes from certain users who click the reload button even though there are errors and it stops working, currently we have to correct the errors and restart naemon from the shell.
Screenshot_10.jpg
Screenshot_11.jpg
Screenshot_9.jpg

Sven Nierlein

unread,
Oct 10, 2024, 3:17:19 AM10/10/24
to th...@googlegroups.com, Manuel Gutiérrez Molina
Hi,

basically both task (check/reload) are just simple commands in the end. We usually have
the "reload" command do a config check, and then the init script decides whether it
can do a reload or not.
That's also how we do things in OMD. If you do a etc/init.d/naemon reload but the
config is not valid, it won't do a reload but exit with an error.
I don't think Thruk is the right place to do this check.

Cheers,
Sven
OpenPGP_signature.asc
Reply all
Reply to author
Forward
0 new messages