Isuue regarding rebooting nagios
Posted: Tue Feb 20, 2024 7:14 am
Hello,
I want to monitor a router using nagios, i have followed the following steps:
First, I have opened the /usr/local/nagios/etc/
and uncomment the line
cfg_file=/usr/local/nagios/etc/objects/switch.cfg
and save and close the file
secondly, in cd /usr/local/nagios/etc/objects i opened the switch.cfg file and define the host and service.
After that i try to restart the nagios services by using commad
sudo systemctl restart nagios
but it gives me error (restart_error screenshot is attached for reference) and suggest me to run the command systemctl status nagios.service which shows that failed to start nagios.
Please help me if i am doing anything wrong or missing some important steps, looking forward for your responses.
I want to monitor a router using nagios, i have followed the following steps:
First, I have opened the /usr/local/nagios/etc/
and uncomment the line
cfg_file=/usr/local/nagios/etc/objects/switch.cfg
and save and close the file
secondly, in cd /usr/local/nagios/etc/objects i opened the switch.cfg file and define the host and service.
After that i try to restart the nagios services by using commad
sudo systemctl restart nagios
but it gives me error (restart_error screenshot is attached for reference) and suggest me to run the command systemctl status nagios.service which shows that failed to start nagios.
Please help me if i am doing anything wrong or missing some important steps, looking forward for your responses.