Page 1 of 1
Clear Unknown Service
Posted: Tue Nov 10, 2015 1:00 pm
by kwhogster
Nagios 4.1.1 Raspberry PI Raspbian
I have a windows 2012 Server that I had an external usb cd\dvd drive connected. When I restarted the server Nagios detected the usb drive as my F Drive and now I can not clear it.
I have disabled the monitoring of this service and now it shows as unknown
I restarted the server again without the usb drive connected but it still shows up as unknown
How to I remove this device?
Tom
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:04 pm
by eloyd
You edit /usr/local/nagios/etc/services.cfg (assuming a default install of Nagios) and remove the service from the configuration file.
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:10 pm
by kwhogster
But I wish to monitor the other local drives on the system
Thoughts
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:12 pm
by rkennedy
Can you please post the contents of your /usr/local/nagios/etc/services.cfg file for us to take a look at?
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:23 pm
by eloyd
kwhogster wrote:But I wish to monitor the other local drives on the system
Thoughts
@rkennedy is right, we need to see the config. But you can remove the F drive and still leave the other drives without issue.
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:29 pm
by kwhogster
Thanks guys
I can not find a services.cfg file
root@raspberrypi:/# ls /usr/local/nagios/etc
cgi.cfg htpasswd.users nagios.cfg~ resource.cfg
cgi.cfg~ nagios.cfg objects resource.cfg~
root@raspberrypi:/#
thoughts
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:33 pm
by rkennedy
Which file did you modify in core to setup the monitoring of the F drive?
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:37 pm
by tgriep
Somewhere in this folder
Is a configuration file that has your service check for the F Drive.
Can you search this folder for that check and post it here?
Re: Clear Unknown Service
Posted: Tue Nov 10, 2015 1:45 pm
by kwhogster
Thanks guys
figured it out
I had another drive that was F and when i plugged in the usb cd/dvd drive and restarted my server it became F drive
now I need to modify the service to use G drive not F
This can be closed now
Thanks for the fast response