author | anthony <anthony> | |
Fri, 19 May 2006 13:46:16 +0000 (13:46 +0000) | ||
committer | anthony <anthony> | |
Fri, 19 May 2006 13:46:16 +0000 (13:46 +0000) | ||
commit | 49cd2468501a2a492fa9de5cd1819be821a77c5a | |
tree | e8c60f94442c3f1d344beea29dfde189860cc10f | tree | snapshot |
parent | e24bfedcc0e262d3be078b1f01fb55fde9012361 | commit | diff |
1. (major) The code in apcups.c was adapted from apcupsd-3.12.3 the command
'apcaccess status'. The code I used calls 'exit()' if it cannot connect
to the apcupsd daemon. A reasonable action for a standalone program.
Not good for a monitoring daemon. This was completely an oversight on my part.
2. (minor) Some dead code is now defined out if APCMAIN is not defined.
3. (minor) My units in collection.cgi where incorrect.
4. (minor) if the apcups plugin cannot connect to the apcupsd it will
simply not call the submit routines allowing the rrd files to fill with NAN
as expected, rather than submitting zeros.
'apcaccess status'. The code I used calls 'exit()' if it cannot connect
to the apcupsd daemon. A reasonable action for a standalone program.
Not good for a monitoring daemon. This was completely an oversight on my part.
2. (minor) Some dead code is now defined out if APCMAIN is not defined.
3. (minor) My units in collection.cgi where incorrect.
4. (minor) if the apcups plugin cannot connect to the apcupsd it will
simply not call the submit routines allowing the rrd files to fill with NAN
as expected, rather than submitting zeros.
contrib/collection.cgi | diff | blob | history | |
src/apcups.c | diff | blob | history |