Ad Widget

Collapse

Does RemoteCommands work with Active Check agents?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elvar
    Senior Member
    • Feb 2008
    • 226

    #1

    Does RemoteCommands work with Active Check agents?

    I have a remote command set up to restart Postfix if SMTPD is not running and according to my event logs it says it executed the restart command but yet nothing logged in /var/log/mail.log nor zabbix_agentd.log. I have EnableRemoteCommands=1 and logging of remote commands but yet I see nothing. Does remote commands even work with Active Check only agents?

    2010.Mar.08 12:58:53 executed Command:
    {HOSTNAME}:sudo /etc/init.d/postfix restart

    Regards
  • elvar
    Senior Member
    • Feb 2008
    • 226

    #2
    Good news and bad news.

    Good news = The remote command to restart postfix works fine for me on agents that operate in passive mode.

    Bad news = The remote command to restart postfix doesn't work on any of my monitored agents that operate in active check mode only.

    Is there a way to make it work with active check agents as well?

    Comment

    • elvar
      Senior Member
      • Feb 2008
      • 226

      #3
      Having read various forum posts in the last couple days on active checks, it seems like a lot of you zabbix power users use Active Checks instead of Passive. If that is the case, are you guys not making use of remote commands then?

      Comment

      • trikke
        Senior Member
        • Aug 2007
        • 140

        #4
        Hi,

        as far as I know you can have your agent defined as "active" by configuring DisableActive=0 in your agent.conf.

        Your items can be passive by defining "Zabbix Agent" or "Zabbix Agent (active)" on the item config.

        So basically this schould be possible!

        Greets
        Patrick

        Comment

        • elvar
          Senior Member
          • Feb 2008
          • 226

          #5
          Originally posted by trikke
          Hi,

          as far as I know you can have your agent defined as "active" by configuring DisableActive=0 in your agent.conf.

          Your items can be passive by defining "Zabbix Agent" or "Zabbix Agent (active)" on the item config.

          So basically this schould be possible!

          Greets
          Patrick
          The problem is, I don't have the ability to set up an inbound port forward for any "passive" checks to work. My only options are Active check items.

          Comment

          Working...