You may want to see Chet Luthar's comment on what's used for 
deduplication and clear matching etc:
http://forums.zenoss.com/viewtopic.php?p=30214#30214

Specifically, I believe he's said this elsewhere, but here:
device
component
eventKey (or summary if eventKey is blank)
eventClass (or zEventClearClasses of the eventClass if they exist)

I think you're not sending an eventkey, so it's using summary, and 
you're using the output of the date command which changes each time you 
run it - so no match for deduplication.

You'll probably want to either add an eventkey if you can that will be 
the same for events that should be deduplicated... Or, change the 
summary to be the same for the same events.
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



zarxcky wrote, On 1/19/2009 4:04 AM:
> Hi all,
> 
> Currently scripting bash scripts which using zensendevent tool to monitor 
> backups that coming to the backup servers.
> 
> The scripts works fine, can send event when things not right and clear the 
> events when things working alright again.
> 
> The problem now lying in the event Count send by zensendevent command not 
> incrementing. Therefore I got hundreds of Critical events which is referring 
> to one Critical events. No problem with Clear events command which can remove 
> all those Critical Event, but when Critical events coming over and over 
> again, the event count not incrementing and really filled up the Events Tab 
> within device.
> 
> To send Critical events:
> 
> 
> Code:
> 
> /usr/bin/zensendevent -d hidro.logistics.com -p hidro -k hidro -s Critical -c 
> /Backup/HIDRO/ --server zenoss.logistics.com \
> "Warning\!: HIDRO rev #$(echo $hidro) NOT MATCH with COUGAR rev #$(echo 
> $cougar) on `/bin/date` \!"
> 
> 
> 
> 
> To send Clear events:
> 
> 
> Code:
> 
> /usr/bin/zensendevent -d hidro.logistics.com -p hidro -k hidro -s Clear -c 
> /Backup/HIDRO/ --server zenoss.logistics.com \
> "Info\!: HIDRO rev #$(echo $hidro) IS MATCH with COUGAR rev #$(echo $cougar) 
> on `/bin/date` \!"
> 
> 
> 
> 
> Is there anything wrong with the command shown above? How to make the event 
> count incrementing? Trying to find on Google and also this forum does not 
> reveals any hints.
> 
> Thanks!
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=30235#30235
> 
> -------------------- m2f --------------------
> 
> 
> 
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to