Clear Unknown Service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Clear Unknown Service

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Clear Unknown Service

Post by eloyd »

You edit /usr/local/nagios/etc/services.cfg (assuming a default install of Nagios) and remove the service from the configuration file.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Clear Unknown Service

Post by kwhogster »

But I wish to monitor the other local drives on the system

Thoughts
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Clear Unknown Service

Post by rkennedy »

Can you please post the contents of your /usr/local/nagios/etc/services.cfg file for us to take a look at?
Former Nagios Employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Clear Unknown Service

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Clear Unknown Service

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Clear Unknown Service

Post by rkennedy »

Which file did you modify in core to setup the monitoring of the F drive?
Former Nagios Employee
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Clear Unknown Service

Post by tgriep »

Somewhere in this folder

Code: Select all

/usr/local/nagios/etc/objects
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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Clear Unknown Service

Post 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
Locked