Ad Widget

Collapse

Running of script with custom shell commands doesn't works

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sugaretto
    Junior Member
    • Sep 2018
    • 4

    #1

    Running of script with custom shell commands doesn't works

    Hello zabbix guys!
    I'm using Zabbix 3.0.7 to monitor Vyatta network devices. Everything is proceeding as expected apart when I decide to try to create custom scripts to monitor the VPNs.
    The problem faced is regarding the shell of the Vyatta. These devices are linux based OS and don't have the bash shell running but the vbash, that is an extension of the bash (for extension I mean that it has all the standard bash commands + some customized commands related to the network stuff).
    If I create a script that use only standard bash commands it works without any problem, but if I put some vbash commands into the script then it doesn't works anymore.

    The only solution that came into my mind is to change the /etc/passwd into on the Vyattas modifying the zabbix user line putting /bin/bash instead of /bin/false. Of course it doesn't worked

    FYI The version of the zabbix agent is 2.2.9.

    Any other suggestion/ideas?

    Thanks in advance to everybody
Working...