[Nagios-users] "distributable" downtime delete commands?

Paul Dubuc work at paul.dubuc.org
Wed Feb 6 23:34:28 CET 2013


Paul Dubuc wrote:
> Paul Dubuc wrote:
>> Among the enhancements listed for Nagios 3.3.1:
>>
>> 3.3.1. - 07/25/2011 ENHANCEMENTS
>>
>> * Downtime delete commands made "distributable" by deleting by host group
>> name, host name or start time/comment (Opsview team)
>>
>> Where are these commands documented?  I don't see them in the online
>> documentation:
>>
>> http://old.nagios.org/developerinfo/externalcommands/commandlist.php?category_id=6&version_id=0&btnSubmit=Update
>>
>>   only lists delete commands that require a downtime ID.
>>
>
> For anyone else who's interested, here are the external command formats for
> these new commands. They're very handy for automating downtime deletion since
> downtime IDs are hard to obtain for that purpose. Values in in brackets are
> optional and serve to make filtering more specific:
>
>
> DEL_DOWNTIME_BY_HOSTGROUP_NAME;<hostgroup_name>;[<host_name>];[<service_desription>];[<start_time>];[<comment>]
>
> DEL_DOWNTIME_BY_HOST_NAME;<host_name>;[<service_desription>];[<start_time>];[<comment>]
>
> DEL_DOWNTIME_BY_START_TIME_COMMENT;<start_time>;[<comment>]
>
> DEL_DOWNTIME_BY_START_TIME_COMMENT;<comment>

This last one should be:

DEL_DOWNTIME_BY_START_TIME_COMMENT;;<comment>

You must have either a <start_time>, or a <comment>, or both with 
DEL_DOWNTIME_BY_START_TIME_COMMENT.



------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb




More information about the Developers mailing list