mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
* openWRT/*: Added code for new ASYNC agent for OpenWRT/Arduino agent, this would be the new SYNC/ASYNC agent for Pandora FMS 2.0. This is first development version, DO NOT TEST YET. It has several code specific for OpenWRT enviroment. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@686 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
17 lines
692 B
Bash
17 lines
692 B
Bash
#!/bin/sh
|
|
# (c) Sancho Lerena 2008
|
|
# Pandora FMS GetSync sample for OpenWRT/Arduino Pandora FMS Agent
|
|
|
|
# pandora_sync should return a single line with Pandora FMS async module id
|
|
# separated with spaces. All ID's returned has "async" data pending to read
|
|
# the way to get this data is left to user. In this sample is resolved
|
|
# by an Arduino code that returns Digital signals with new async data by
|
|
# using code DD
|
|
|
|
# This returns D9 if D9 gate needs to be readed due an asyncronous incoming signal
|
|
# Could return D1 D5 D9 if gates D1, D5 and D9 needs to be readed
|
|
# Could return 0 if no received signal since last time readed
|
|
|
|
PANDORA_HOME=/opt/pandora
|
|
|
|
$PANDORA_HOME/pandora_serialread DD |