View Full Version : English: How to setup SNMP correctly
leon.blokland
09-05-2008, 02:39 PM
Hi,
I'm trying to setup a Nagios 3 + Centreon 2 monitoring server.
Now slowly everything starts to start working except for the SNMP part.
I installed everything we need during this process, but I do not understand how the SNMP trap works.
It looks like the server is polling information correctly from machines using SNMP commands, but when I send SNMP information to the centreon server it doesn't seem to do anything with the info.
I already imported the MiB files.
The goal is to receive Backup Exec information so we know the backup(s) succeeded or failed.
I hope anyone can help me out with this one.
Cheers,
Leon
maxbal
09-12-2008, 09:09 PM
The configuration to use Snmp from Centreon is spécific, you need to use
snmptrapd (daemon to get back traps)
snmptt (translate snmp traps)
If you want more information, tell me
countrdd
09-13-2008, 05:44 PM
I like more information if at all possible. I have to setup the same thing very soon.
leon.blokland
09-14-2008, 11:07 AM
Hi Maxbal,
as far as I know these deamons (or whatever) are already there.
I just need to know how to follow the incoming snmp messages.
Where are they going, and more important, how is centreon/nagios using it.
Can you point us into the right direction?
Cheers,
Leon
leon.blokland
09-29-2008, 11:43 PM
Hmm, isn't there anyone out there who wants to continue this topic in English??
Why is this board in French all the time...I think there are a lot more people out there who know stuff in English isn´t it?
Well, maybe someone wants to chat about SNMP a bit more, please respond.
Cheers,
Leon
leon.blokland
09-29-2008, 11:53 PM
According to Maxball these 2 things are important:
snmptrapd (daemon to get back traps)
snmptt
As far as I can see in the Centreon setup there should be some kind of SNMPTT logfile (snmptrapd.log). I cannot find this file anywhere on my system.
Also there deamons / services are not loaded.
As these are passive checks my best guess is that some kind of deamon / service should be active and listening for incoming traps, which can be followed in log files.
Mahybe anyone can point us in the right direction....
Leon
maxbal
10-01-2008, 03:52 PM
I tried to explain the process to get back a snmp trap
Your snmptrapd (daemon) should be started with option -On on the binary file, in other case you should see in your log file snmptrad.log reception of all transtlate traps, in this case snmptt doesn't work
Normally, il the daemon is well configured, a new log file should be created snmptt.log or unknownsnmptt.log (be careful to put in the good directory snmpttconvertmib !!!)
if the trap is known you shloud have an entry inside snmptt.log ond if other inside unknownsnmptt.log
If your traps is unknow, you can add centreon mib files to resolve traps, because this integration modify the snmptt.ini automatically to translate MIB File
One time you resolved it, you have to create a service as explain in tuto
Tchao
leon.blokland
10-02-2008, 09:59 PM
ok, i just tried....
I started the service with 'service snmptrapd start'
then it responds with 'OK'
I guess that is right.
But then when i send a trap to the system there will be no log files created.
According to the snmptt.ini it should be somewhere in /var/log/....log but I cannot see it.
How can I check if the config is correct?
Ciao,
Leon
maxbal
10-06-2008, 06:41 PM
The first you should receive is net-snmptrap.log... to receive traps on your nagios, don't forget to configure your client to send traps on nagios server...
If windows (services) if Linux (snmpd.conf)....
When you will receive logs from your client, you could continue your investigations
Be careful, it seems on the release RC5, a binary file doesn't work correctly traphandler.2x
Tchao
leon.blokland
12-27-2008, 08:06 PM
Well, here I am again.
I was a bit busy last two months with other things.
I just installed Centreon 2.0 on a Fedora 8 server, all seems ok after a little struggle now so SNMP - here we go again. :)
What about NagTrap anyone?
Cheers,
Leon