No info from Apcupsd

  • Per Larsson

    Per Larsson - 2011-07-03


    I've been trying for some time to get my UPS and battery status to show up in phpSysInfo (just upgraded to 3.0.11), however I get nothing about my UPS in the outputted web page. Not an error, not a warning, nothing.

    I'm using apcupsd 3.14.8 on Ubuntu 11.04 with a Smart-UPS 1500. apcaccess works fine, and port 3551 is opened by apcupsd. I can connect to it with for example telnet and there is no firewall blocking it.

    I've confgured phpsysInfo with the following lines and made sure they're not commented out:

    define('PSI_UPS_PROGRAM', 'Apcupsd');
    define('PSI_UPS_APCUPSD_LIST', '');

    I don't even know where to begin troubleshooting. Can anyone help me?

    Thanks in advance.

  • Mieczysław Nalewaj

    Turn on debugging.

  • Per Larsson

    Per Larsson - 2011-07-10

    Ok, I've enabled debugging with

    define('PSI_DEBUG', true);

    I can't find where it's outputted. Where would the debug output go?

  • Per Larsson

    Per Larsson - 2011-07-10

    Turns out it couldn't find apcaccess. Thank you very much for your help.

  • Anonymous - 2011-08-12

    Same problem here. When i turn on debug i get an extra error in log.
    apcaccess does work when i try it manually in the command line

  • Erkan

    Erkan - 2011-08-14

    Hi, can you try this command:

    $> whereis apcaccess

    I think "apcaccess" is located in a different path, so you need to add it to: define('PSI_ADD_PATHS', '…');

    And maybe add change permission on the command with to allow other user (www-data) to execute apcaccess with root privilege. $> chmod +s apcaccess


  • Anonymous - 2011-08-14

    Thank you very much, I've tried to find apcaccess with the find command but didn't found something whit whereis I've found it in the /sbin/ directory. I've put the directory in the config file and everything is working as is should be.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks