07-11-2007 08:13 AM
I have LMS 2.5. I have been trying to get the syslog portion set up. I get an error in the syslogcollector log that says unable to add monitor. I know next to nothing about syslog. I have tried to find info on the web, and it always talks about a Remote Syslog Collector. Can the syslog collector and the syslog analyzer be the same box? Because that is all I have, one box.
Thanks,
Kari
Solved! Go to Solution.
07-12-2007 08:03 AM
This is exactly what I thought. You have bad filter settings. When you disable or delete all of your filters, but keep the mode set to DROP, all messages will be dropped (hence the Forwaded count of 0). If you just want to verify syslog is working, disable all your filters, and set the mode to KEEP. Send some test messages, and the Forwarded count should start increasing. Once that happens, syslog messages should be written to the database.
07-11-2007 08:15 AM
Absolutely they can be on the same machine. If you cannot subscribe the Analyzer to the Collector, There could be quite a few problems. The most obvious is that TCP ports 3333 and 4444 may be occupied by other services. Shutdown dmgtd, then look at netstat -a -n to see if either of those ports are in still in use.
07-11-2007 09:55 AM
Okay, I looked and they are not in use. I tried again to subscribe, and again the log told me "unable to add monitor". When I go to subscribe, it gives me a box that talks about the certificate, and making sure it is on the peer server, but if it is the same server, do I need to do anything special? And when I look at Server-Security, it says that the self-signed certificate is found and valid, but whenever I log in with IE it says there is a problem with the certificate. I always ignore it and carry on, but I thought that information might be helpful.
Thank you,
Kari
07-11-2007 09:58 AM
Please post your SyslogCollector.log, SyslogAnalzyer.log, SyslogAnalyzerUI.log, and AnalyzerDebug.log.
07-11-2007 10:11 AM
07-11-2007 10:28 AM
There is nothing obvious here which means that SyslogCollector debugging needs to be enabled. This is done in the Collector.properties file which can be found by searching under NMSROOT. After enabling debug, pdterm/pdexec SyslogCollector, reproduce the problem, then post the new SyslogCollector.log.
07-11-2007 11:12 AM
At first I set it to debug. Then I stopped the service, set it to warning. Both times when I went into syslog status collector, it had the ip of the server and a bunch of NAs in the other fields. I clicked on subscribe, it asks for the ip. I have been giving it its ip. Clicked okay, it changed from the address to the name of the server.
07-11-2007 11:16 AM
Looks like it's working now. However, you may have a problem with your filters. Please include a screenshot of your syslog filters screen.
07-11-2007 11:31 AM
Honestly, I haven't done anything to the filters page. I thought that if I left it alone, all messages would be sent to the Analyzer. But when I run a report, I don't see anything. And after I change the debug back to info and go back into Collector and try to subscribe and go look at the log, it still says unable to add monitor. Is there some sort of delay in when the collector collects and the analyzer grabs it and analyzes?
Thanks for all the time you've spent posting.
Kari
07-11-2007 01:28 PM
There is a delay on Windows depending on the number of messages coming in per second. As soon as the message is written to the syslog.log file, SyslogCollector should process it, though. There is no delay in the Cisco pieces on Solaris.
I would still like to see screenshots from your filter page and from the Syslog Collector Status page.
07-12-2007 03:26 AM
I was hoping that if I left it alone, it would magically be working when I came back in today, but no. When I run a syslog report, there are no records. I can see from the syslog collector page that the devices are sending messages, it just isn't getting to the syslog analyzer.
The screenshot of the message filter is how it was configured originally. I did try clicking on Keep and enabling some of the filters (and on the syslog collector page, it shows that a lot of the messages were filtered), but that didn't seem to help either.
07-12-2007 08:03 AM
This is exactly what I thought. You have bad filter settings. When you disable or delete all of your filters, but keep the mode set to DROP, all messages will be dropped (hence the Forwaded count of 0). If you just want to verify syslog is working, disable all your filters, and set the mode to KEEP. Send some test messages, and the Forwarded count should start increasing. Once that happens, syslog messages should be written to the database.
07-12-2007 08:46 AM
Alright, I'm an idiot, you're a genius. Thank you so much for your help. I can see it forwarding, and I can run reports.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide