[isf-wifidog] Nagios/Wifidog

Fábio Ribeiro fabiocaqui1 at gmail.com
Mar 15 Sep 10:19:29 EDT 2009


Menil Jean,
i will learn this script and to try use here.

Tks a lot.

2009/9/15 Menil Jean-Philippe <Jean-Philippe.Menil at univ-nantes.fr>

> Fábio Ribeiro a écrit :
>
>> Hello all,
>> i would like monitor my Wifidog service with Nagios. Samebody, help me
>> about this?
>> Is There a plugin for wifidog?
>>
>> Tks a lot.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> WiFiDog mailing list
>> WiFiDog at listes.ilesansfil.org
>> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
>>
> Hi,
>
> there's no plugin for wifidog,
>
> I monitor different process of wifidog by script, that nagios ask by snmp
> An exemple of script:
>
> -----------------------------------------------------------------------
> #!/bin/sh
> # script de verification des process wifidog par cite
> # Pour ajouter une cite, il faut l'ajouter dans le tabCitesId avec son
> identifiant se rapportant a son fichier de conf
> # (c'est ce qui sera greppé dans le ps)
> # il faut aussi l'ajouter (dans le meme ordre) dans le tabCitesNom avec son
> nom plus explicite
>
>
> #original avec toute les cites
>
> tabCitesId=(ID1 ID2 ID3 ID4 ID5 ID6 ID7 ID8)
> tabCitesNom=("Cite 1" "Cite 2" "Cite 3" "Cite 4" "Cite 5" "Cite 6" "Cite 7"
> "Cite 8")
> tabProcess=(slapd freeradius postgres apache2)
>
>
> for process in ${tabProcess[*]}
> do
>        if test "`ps ax |grep $process |grep -v grep`" == ''
>                then
>                output="$output$process ne semble pas tourner\n"
>        fi
> done
>
> declare -i i=0
> for citeId in ${tabCitesId[*]}
> do
>        if test "`ps ax |grep $citeId.conf |grep -v grep`" == ''
>                then
>                output="$output${tabCitesNom[$i]} semble etre HS\n"
>        fi
>        i=$i+1
> done
>
> if test "$output" == ''
>        then
>        echo "Les $i cites sont OK"
>        exit 0
> else
>        echo "$output"
>        exit 1
> fi
>
> -----------------------------------------------------------------------
>
> I graph the users with Cacti, same as nagios, snmp, script:
> #!/bin/bash
> /usr/bin/wdctl -s /tmp/wdctl-ID1.sock status | grep connected | awk '{print
> $1}'
>
> Hope this help
>
> --
> Menil Jean-Philippe
> DSI de l'Université de Nantes
> tél: 02 51 12 53 92
> Fax: 02 51 12 58 60
> Jean-Philippe.Menil at univ-nantes.fr
> _______________________________________________
> WiFiDog mailing list
> WiFiDog at listes.ilesansfil.org
> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listes.ilesansfil.org/pipermail/wifidog/attachments/20090915/4a5189cc/attachment.htm>


Plus d'informations sur la liste de diffusion WiFiDog