cmd.cgi arguments info?

Danilo Godec danilo.godec at agenda.si
Thu Aug 19 18:18:55 CEST 2010


On 19.8.2010 11:58, Michael Friedrich wrote:
> Danilo Godec wrote:
>   
>>   Hi,
>>
>> where can I find information about cmd.cgi arguments available on my
>> version of Nagios (3.0.6)?
>>
>> I want to acknowledge detected problems from a remote machine using
>> 'curl' and need to turn the acknowledgment notification off...
>>    
>>     
> Have a look into cgi/cmd.c
>
> void request_command_data(int cmd){
>
> and then translate the cmd type e.g. CMD_DISABLE_HOST_NOTIFICATIONS into 
> appropriate integer in include/common.h
>
> but afaik disabling only the ack notification won't be possible in that 
> particular case, you'll need to disable host/service notifications then.
>   

I don't want to disable ACK notifications permanetnly...

When I use the web interface to acknowledge a problem, there is a check
box 'Send notification' that is checked by default. If I un-check it,
Nagios doesn't send out ACK notifications.

That's what I want / need to do, only 'automatically'...

I'll take a look at cgi/cmd.c, thanks for the idea.

 Thanks, Danilo


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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