Ad Widget

Collapse

Action : Restart Syslog

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcarpio
    Member
    • Jun 2008
    • 96

    #1

    Action : Restart Syslog

    I'm running RHEL 5.1 64-Bit, I am trying to setup an action to restart syslog if/when it dies.

    I have downloaded the binaries from the zabbix website and tried to use them, as well I have compiled the zabbix binaries from source and still can not get my action to work here is what my action looks like

    server_name:/usr/bin/sudo /sbin/service syslog restart

    I have granted sudo NOPASSWORD to the zabbix agent to restart syslog however I keep receiving this error:

    25847:20080804:161008 Requested [system.run[/usr/bin/sudo /sbin/service syslog restart,nowait]]
    25847:20080804:161008 Sending back [ZBX_NOTSUPPORTED]

    I have even tried simply:

    server_name:/bin/touch /var/tmp/zabbix_test.log

    but I get the same ZBX_NOTSUPPORTED, all of my actions work fine on RHEL 4.6 64Bit with the binaries from the zabbix site..

    Any suggestions?

    Thanks.
  • vinny
    Senior Member
    • Jan 2008
    • 145

    #2
    It is ur action that is not well supported :
    first in the agent configuration, are remote commands allowed ?

    then on the remote server, have u performed the command by hand under the user zabbix ?

    vinny
    -------
    Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

    Comment

    Working...