LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Closed Thread
  Search this Thread
Old 06-13-2013, 03:32 AM   #1
Aazareth
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
Nagios Plugin Check_logfile


Bonjour à vous,

J’espère que certains pourront m'aider et je les remercie d'avance.

J’ai installé le plugin Check_logfile afin de faire du parsing de log.
Jusqu'à la tout va bien. J'ai installé le NSCLIENT++ 4.0.101 sur mon serveur Windows où se trouve le journal de log.
J'ai bien rempli mon nsclient.ini.

Quand je lance cette commande :

/usr/local/nagios/libexec/check_nrpe -H 172.16.60.151 -c check_logfile -a file=c:\\log\\00001888.txt column-split=\; "filter=column4 like 'erreur'" "crit=column4 like '`date +%d.%m.%Y`'" "top-syntax=\${file}:\${count}"

J'obtiens bien le nombre d'erreur du fichier de log.

J'ai paramétrer le Centréon avec les argument de cette commande pour créer une alerte qui marche seulement il n'y a pas de RAZ du fichier de Log autrement dit les erreurs sont toujours TOUTES présentes.

L'objectif final serait de remonter en alerte que les nouvelles erreurs.

Merci d'avance.

:P
 
Old 06-13-2013, 09:59 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,604

Rep: Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103
This thread is being closed as the LQ rules currently do not allow non-English posts. Please feel free to repost in English. We apologize for the inconvenience.

--jeremy
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Nagios plugin? dwarf007 Linux - Software 20 10-03-2011 06:11 AM
Nagios Help ---cisco plugin tgridley Linux - Software 2 08-11-2011 08:42 AM
[SOLVED] Nagios Plugin nico34 Linux - Server 4 06-17-2011 06:46 AM
[SOLVED] nagios plugin - check_procs rutledgetome Linux - Software 5 01-22-2010 09:51 AM
Nagios Plugin fullgore *BSD 3 10-22-2008 08:52 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration