nobody43 / zabbix-smartmontools

Disk SMART monitoring for Linux, FreeBSD and Windows. LLD, trapper.
The Unlicense
54 stars 19 forks source link

Check access restrictions #16

Closed CheckB closed 5 years ago

CheckB commented 5 years ago

zabbix_get -s 192.168.1.4 -k smartctl.discovery [get, "Example host"] zabbix_get [26034]: Check access restrictions in Zabbix agent configuration

./smartctl-lld.py
Traceback (most recent call last):
   File "./smartctl-lld.py", line 354, in <module>
     host = '"% s"'% (sys.argv [2])
IndexError: list index out of range
#!/usr/bin/python3
 ./python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux

Zabbix 4.0, debian 9 All the instructions

nobody43 commented 5 years ago

Local usage would be ./smartctl-lld.py getverb "Example host"

I guess the problem in Server or ServerActive directives. Do you have multiple NICs?

CheckB commented 5 years ago

Do you have multiple NICs?

Yes.

It turns out all much more interesting.

nobody43 commented 5 years ago

Then you must assign SourceIP in agent config to use appropriate net.

nobody43 commented 5 years ago

@CheckB Is it resolved?

CheckB commented 5 years ago

Yes, thx.