PDA

View Full Version : Traps SNMP


Nothing
31st March 2008, 17:36
Bonjour,

Depuis 2h que je suis sur ce problème, et je vous avoue que je sèche...

Quand je désire déclarer les traps snmp, mon installation de centreon gueule un coup...

En gros, il ne cherche pas au bon endroit le fichier genSnmpttConfFile ! :(

Mon fichier se trouve dans /usr/lib/nagios/plugins/traps/genSnmpttConfFile

et non dans :
/usr/share/nagios2/plugins//traps/genSnmpttConfFile


Dans quelle partie dois-je modifier ma configuration, pour qu'il pointe au bon endroit ?


Pour l'instant j'ai copié le contenu de /usr/lib/nagios/plugins/traps/genSnmpttConfFile vers /usr/share/nagios2/plugins/traps/genSnmpttConfFile (dont le dossier traps que j'ai crée avec les droits pour www-data.nagios).

Cependant comment être certain que tout va fonctionner comme il faut ?

Merci

PS : ci-dessous, un exemple de génération de configuration par Centreon... qui "ratais" avant ma modification:

Nagios 2.6
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-27-2006
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 1 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 45 commands.
Checking time periods...
Checked 6 time periods.
Checking extended host info definitions...
Checked 1 extended host info definitions.
Checking extended service info definitions...
Checked 1 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

Nagios 2.6
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-27-2006
License: GPL

Projected scheduling information for host and service
checks is listed below. This information assumes that
you are going to start running Nagios with your current
config files.

HOST SCHEDULING INFORMATION
---------------------------
Total hosts: 1
Total scheduled hosts: 1
Host inter-check delay method: SMART
Average host check interval: 60.00 sec
Host inter-check delay: 60.00 sec
Max host check spread: 30 min
First scheduled check: Mon Mar 31 16:11:10 2008
Last scheduled check: Mon Mar 31 16:11:10 2008


SERVICE SCHEDULING INFORMATION
-------------------------------
Total services: 1
Total scheduled services: 1
Service inter-check delay method: SMART
Average service check interval: 60.00 sec
Inter-check delay: 60.00 sec
Interleave factor method: SMART
Average services per host: 1.00
Service interleave factor: 1
Max service check spread: 30 min
First scheduled check: Mon Mar 31 16:12:10 2008
Last scheduled check: Mon Mar 31 16:12:10 2008


CHECK PROCESSING INFORMATION
----------------------------
Service check reaper interval: 10 sec
Max concurrent service checks: 20


PERFORMANCE SUGGESTIONS
-----------------------
I have no suggestions - things look okay.


sh: /usr/share/nagios2/plugins//traps/genSnmpttConfFile: No such file or directory