Sending command to nagios using send_nsca

Ouellet, Patrick Patrick.Ouellet at promutuel.ca
Thu May 29 16:41:27 CEST 2008


I've done this quite a few time for sending status message for services to nagios.
But I would like to know if I can use send_nsca to put a service under scheduled downtime ?
 
I put a service in scheduled downtime using the web gui and check nagios.log
It looked like that.
SCHEDULE_SVC_DOWNTIME;devlin01;efiwas10;1212003116;1212003716;1;0;7200;infpla;Copie de graduation
 
So I tried to send something like this to nagios but I can`t really make it work.
 
echo "hostname;service_name;1212071869;1212071929;1;0;7200;nagios_user;Copie de graduation" | send_nsca -H nagios_host -c send_nsca.cfg -d ";"
 
Do anyone ever been sucessful at this, is it even possible ?
 
Thank you

Pour rejoindre l'équipe Linux de façon efficace, SVP envoyez un courriel à l'adresse: GD01-Linux (sans "@promutuel.ca" à la fin)
 
P Est-ce nécessaire d'imprimer ce message? 

Patrick Ouellet
Admin. Système Linux, Équipe Linux
Direction Technologie
Groupe Promutuel

418 683-1187, poste 2393
1 800 510-4630, poste 2393

 

promutuel.ca <http://www.promutuel.ca/> 

Si vous n'êtes pas le destinataire de ce message, veuillez le détruire après avoir informé l'expéditeur de son erreur. Par ailleurs, il est interdit de copier ou de modifier tout courriel sans l'autorisation de l'auteur. Promutuel n'assume aucune responsabilité à l'égard du contenu des messages personnels envoyés par ses employés. 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080529/2a347601/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2538 bytes
Desc: image001.gif
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080529/2a347601/attachment.gif>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list