Simon,

What's the Nagios command you are creating for downtimes?

We only propagate certain commands down to the slave. This is done via our broker module called altinity_distributed_commands.o. This intercepts commands sent to Nagios and writes to the slave_commands.cache file for delivery by opsviewd.

However, some commands are "not distributable" because they may reference an internal id that is not necessarily consistent between master and slaves (eg, downtime ids). Hence asking what command you are using.

FYI, the downtime commands used through the UI, SCHEDULE_HOST_SVC_DOWNTiME, etc, are distributed. The full list is here (near the bottom): https://secure.opsera.com/wsvn/wsvn/opsview/trunk/opsview-base/patches/altinity_distributed_commands.c

Ton


On 21 Feb 2011, at 11:53, Simone Felici wrote:


Okay, auto-solved.

For who is interested in, the commands are written into this file in nagios external command syntax:

/usr/local/nagios/var/slave_commands.cache

The file is created by nagios user, then opsviewd parse this file every 15 seconds (more or less)
and deleted after. Internal routines send the commands to all slaves.

It's a personal interpretation, also use it at your own risk :)
Maybe some opsview-guru could confirm or correct what above.

Bye, Simon


Il 21/02/2011 10:24, Simone Felici ha scritto:

Hello!

I'm trying to set-up a scheduled downtime at specific dates.
If I put in downtime a host/service from OPSView GUI I can see the downtime is propagated from
master to slaves too. But what if I would insert a scheduled downtime via cron?
The script is not an issue, I've made some tests and it works. The problem is, the scheduled
downtime triggered via cron from the master is *not* propagated to slaves and having the
notifications sent from slaves for this host (it's monitored there), the notifications are sent and
the downtime not considered.
How does OPSView the sync of these informations? How could I propagated a downtime started via CRON
to slaves?

Thank's for the hints!

Simon
_______________________________________________
Opsview-users mailing list
Opsview-users@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-users
_______________________________________________
Opsview-users mailing list
Opsview-users@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-users


Ton Voon
Product Architect




Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | RG6 1AZ | UK

UK:      +44 (0) 845 057 7887
USA:     +1 866 879 9184
Skype:   tonvoon
Web:     www.opsview.com

This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although we routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments.

_______________________________________________
Opsview-users mailing list
Opsview-users@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to