Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Automatic initiation of upsc and upsmon on boot

Hello;

I am trying to identify how to get the upsc and upsmon applications to launch automatically at boot. 

Please note my efforts and understanding thus far below:

I am running my Sophos server as a UPS slave on my network. My UPS is connected to my ReadyNas DUO server (configured as master) which is broadcasting the UPS information to my Sophos server (configured as slave). 

I have adjusted my firewall settings to allow communication between the two servers (was surprised to find that SNMP was not the protocol being used in the broadcast when creating the firewall rules). When I initiate the upsc and upsmon commands, the UPS is detected and the Sophos server responds to the UPS status (powers down etc). 

When studying up on the NUT system I noted that the upsd driver was not required for a slave configuration like the one I am configuring as it searches for local hosts only. 

When activating the upsd driver it obviously doesnt work. I am certain this upsd driver is loading at boot, and I have noticed during my search through several configuration files that it will not initiate upsc and upsmon if it does not identify a local UPS (mine is on a network so it produces a null result).

Can someone perhaps assist me in identifying how I can initiate upsmon and upsc during the boot up sequence? As I currently need to activate them each time I reboot my server.


This thread was automatically locked due to age.
Parents
  • Hello Trollvottel

    So I tested the system and had no luck. The commands you provided work fine. 

    My concern however, is that upsd is primarily for a localhost and based on your commands we were initiating upsd? I just need upsmon and upsc to initiate automatically and it works perfectly.

    I did note that level 3 "appears" to be getting skipped. I have a picture of what I am talking about, just not sure how to attach it to the forum?
Reply
  • Hello Trollvottel

    So I tested the system and had no luck. The commands you provided work fine. 

    My concern however, is that upsd is primarily for a localhost and based on your commands we were initiating upsd? I just need upsmon and upsc to initiate automatically and it works perfectly.

    I did note that level 3 "appears" to be getting skipped. I have a picture of what I am talking about, just not sure how to attach it to the forum?
Children
  • Forgive me,

    For some reason I had to be in the rc3.d directory and execute the command. I created the symbolic links in root accidentally.

    My issue is now resolved and it works perfectly.

    Thank you so much for your help and patience.

    Kind regards