Command to check Windows logs
Re: Command to check Windows logs
Thanks eloyd. 8)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Command to check Windows logs
Looks like this is not going anywhere. Thanks for the input. will have to find help from elsewhere.
Re: Command to check Windows logs
Is this step not working for you? Generally we wait for feedback after a post to see if further troubleshooting needs to be done.tgriep wrote:If they are in the Unconfigured Objects, you would click on them to import them into XI and that is how the service checks will be setup for you.
Former Nagios Employee.
me.
me.
Re: Command to check Windows logs
I have to agree with @hsmith here - the quoted post from @tgriep is the next step in getting passive results to work. If that step is not working for you, please tell us otherwise we have no way of knowing.
Former Nagios employee
Re: Command to check Windows logs
My apologies for jumping the gun.
So, the server I'm wanting to create the service on isn't appearing in the unconfigured objects. I was trying to create the service using traditional way but I don't have the syntax (if there's one) for this. I did find an article here - https://kb.op5.com/display/HOWTOs/How+t ... ventlog+ID but it didn't work for me. as I got the unknown error message as mentioned earlier.
Thanks guys.
So, the server I'm wanting to create the service on isn't appearing in the unconfigured objects. I was trying to create the service using traditional way but I don't have the syntax (if there's one) for this. I did find an article here - https://kb.op5.com/display/HOWTOs/How+t ... ventlog+ID but it didn't work for me. as I got the unknown error message as mentioned earlier.
Thanks guys.
Re: Command to check Windows logs
op5 is not a Nagios Enterprise product. Are you using op5 or actually using Nagios?
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Command to check Windows logs
Nagios. I was referring to the command line, not the product. I found something similar to the command lines from op5 site but I couldn't get the service to work.
Re: Command to check Windows logs
I'm a little confused by this, can you clarify?jamesc23 wrote:I was referring to the command line, not the product.
Also, just so you know, the passive results come in including a host name and a service description for a service check, or just a host name if it is a host check. If there is a matching host/service in the running configuration, it will be updated with this information. If not, it will show in Unconfigured Objects. Are you sure you do not already have a host/service set up?
Former Nagios employee
Re: Command to check Windows logs
We're obviously not on the same page.
Let's start again. I'm quite new to Nagios and am working on setting up/standardising Nagios that I've picked up from previous employee. I want to set up a service that can monitor an event and alert us when there's an error. I tried to create a service using check_mrpe but I couldn't get it to work. Then you mentioend NSCA so I configured this and I think it's enabled. I just couldn't get NSCA to report on an event log.
The host I was working on was already setup in Nagios and I believe that's why it doesn't appear in the unconfigured objects. Now I'm under the impression that if a host isn't configured with anything it should show up under unconfigured objects. So, I deleted all services that's associated to this host but I still don't see this host under unconfigured objects.
All I'm trying to achieve is to set up a service using whatever module that will give me a report on windows event ID.
Hope this clarifies a few things?
Thanks.
Let's start again. I'm quite new to Nagios and am working on setting up/standardising Nagios that I've picked up from previous employee. I want to set up a service that can monitor an event and alert us when there's an error. I tried to create a service using check_mrpe but I couldn't get it to work. Then you mentioend NSCA so I configured this and I think it's enabled. I just couldn't get NSCA to report on an event log.
The host I was working on was already setup in Nagios and I believe that's why it doesn't appear in the unconfigured objects. Now I'm under the impression that if a host isn't configured with anything it should show up under unconfigured objects. So, I deleted all services that's associated to this host but I still don't see this host under unconfigured objects.
All I'm trying to achieve is to set up a service using whatever module that will give me a report on windows event ID.
Hope this clarifies a few things?
Thanks.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Command to check Windows logs
By default debugging isn't enabled in nsca. Edit /usr/local/nagios/etc/nsca.cfg to turn debugging on:
As noted, if things are working at all - debug logging will start rolling into your /var/log/messages.
Example:
Code: Select all
# DEBUGGING OPTION
# This option determines whether or not debugging
# messages are logged to the syslog facility.
# Values: 0 = debugging off, 1 = debugging on
debug=1Example:
Code: Select all
Sep 25 14:03:38 nagiosserver nsca[10605]: SERVICE CHECK -> Host Name: 'monitoredserver', Service Description: 'IMAP Service', Return Code: '0', Output: 'IMAP OK - 0.086 second response time on port 143 [* OK monitoredserver.domain.net Cyrus IMAP4 v2.2.13 server ready]|time=0.086065s;;;0.000000;10.000000'