View Full Version : SNMP Traps
JoePrecious
06-12-2008, 06:47 PM
Hi
I'm really enjoying playing with Centreon 2 and look forward to the final release.
I was wondering what the status is with regard to SNMP traps? The latest installation instruction still seem to imply they they don't work but this seems to relate to an older beta.
I have some working SNMP traps in my current Nagios installation so would really like to see if I get these to work in Centreon 2 - happy to help out with the testing.
At the moment, I've just installed beta 4 and I still get an error when I try and import new MIbs regarding directories that don't exist.
Thanks
Joe
Getro
06-16-2008, 10:52 AM
Hi,
I tried to use SNMP traps in 2b3, the module was not working at all. I did some perl debugging and spent 2 days to get this working. I don't know what's the status in 2b4.
Will post the paths for the 2b3.
Hi,
What the problem with SNMP Traps ? Install problem ? Config problem ?
JoePrecious
06-16-2008, 11:49 AM
Hi,
What the problem with SNMP Traps ? Install problem ? Config problem ?
Hi
I think the installation seems to go fine, I certainly don't see any error messages.
I then go to the Configuration section and Services. I can create a new vendor but if I try and import a MIB file, I get the following error:-
sh: /usr/sbin/snmpttconvertmib: No such file or directory
Moving traps in DataBase...
sh: /usr/local/nagios/libexec/traps/centFillTrapDB: No such file or directory
Generate Traps configuration files from Nagios configuration form!
The new traps don't then appear in the database. I haven't really gone any further because I wasn't sure if it was meant to be working yet or not, and I need these traps (Symantec Backup Exec) for further testing.
Thanks
Joe
JoePrecious
08-14-2008, 04:53 PM
Hi
I've just installed RC2 hoping SMTP traps would be working now but I'm still having some issues.
When I try and import a MIB, it seems to process the traps now but then fails when trying to import them into the traps database with the following error:-
Moving traps in DataBase...
sh: /usr/local/nagios/libexec/traps/centFillTrapDB: No such file or directory
So I checked and the traps folder doesn't exist. I created the folder and copied the centFillTrapDB script into it and make it executable. I then tried the import again and it got further but failed with:-
Moving traps in DataBase...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Possible unintended interpolation of @CENTREON_ETC in string at /usr/local/nagios/libexec/traps/centFillTrapDB line 32.
Global symbol "@CENTREON_ETC" requires explicit package name at /usr/local/nagios/libexec/traps/centFillTrapDB line 32.
Execution of /usr/local/nagios/libexec/traps/centFillTrapDB aborted due to compilation errors.
I'm not sure what else to do now as its a bit beyond me. I really want to use Centreon but need SMTP traps to work as I currently use them.
Thanks
JoePrecious
08-14-2008, 05:00 PM
Actually, seem to have got this working by editing the centFillTrapDB script so the line:-
require "@CENTREON_ETC@/conf.pm";
now reads:-
require "/etc/centreon/conf.pm";
I've managed to import the MIBs so will see if I can get the traps working.
Joe