Isuue regarding rebooting nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
mehmwt
Posts: 5
Joined: Fri Feb 16, 2024 8:09 am

Isuue regarding rebooting nagios

Post by mehmwt »

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.
You do not have the required permissions to view the files attached to this post.
User avatar
lgute
Posts: 112
Joined: Mon Apr 06, 2020 2:49 pm

Re: Isuue regarding rebooting nagios

Post by lgute »

Hi @mehmwt, thanks for reaching out.

What document are you using to setup your router monitoring?

FYI, XI has configuration wizards that can be used to handle the setup for monitoring routers/switches and many other apps and devices, so you do not have to manually configure monitoring.
Please let us know if you have any other questions or concerns.

-Laura
hyang
Posts: 9
Joined: Wed Aug 09, 2023 10:21 am

Re: Isuue regarding rebooting nagios

Post by hyang »

Hi @mehmwt,

Here's official documentation/video on how you can start monitoring your router.
mehmwt
Posts: 5
Joined: Fri Feb 16, 2024 8:09 am

Re: Isuue regarding rebooting nagios

Post by mehmwt »

Thanks for your feedback, i was following some youtube video but then i followed the offical documentation from nagios
( https://assets.nagios.com/downloads/nag ... uters.html ) and sucessfully added router in nagios environment.

But I have encountered some problems for which I need your guidance.

1) First, i have added a router in nagios, which should be member of router not switch (Screenshot not_switch is attached for reference)
2)Second, i have defined only one service PING to monitor but it shows other services as well which i did not defined in my switch.cfg file. (switch.cfg file screenshot is attached for reference)

I have attached also the screenshot of switch.cfg file for further reference.

Please guide me if i am missing something important in switch.cfg file or making some errors

Thanks
You do not have the required permissions to view the files attached to this post.
Post Reply