PDA

View Full Version : cksum and md5sum


befortin
01-08-2005, 22:29
Hi,

I can't get the cksum and md5sum keys to work on all my Windows servers.

I tried with the following values :
key : cksum[C:\AlerteOpenManage\statut.txt]
Type : Zabbix Agent
Type of information : Numeric

and :
key : md5sum[C:\AlerteOpenManage\statut.txt]
Type : Zabbix Agent
Type of information : Numeric

The keys are stored in the database with \\ instead of \, when I click on "update", but I think it's ok this way.

Is there anything I'm doing wrong?

The value for "Last check", "Last value" and "Change" are "-".

[EDIT] : I just saw in the readme.txt file that I should use md5_hash instead of md5sum (see http://www.zabbix.com/manual/v1.1/config_items.php). But it still doesn't work.

befortin
02-08-2005, 21:50
I have also tried file[.....] and filesize[.....] and both of them doesn't work on my systems (Windows 2000 servers, Windows NT servers). Here's an example of one of these items, from the database :

==================================

mysql> mysql> select * from items where itemid = 17650;
+--------+------+----------------+-----------------------------------------+-----------+--------+---------------+--------------------+-------+---------+--------+-----------+-----------+-----------+-----------+--------+------------+---------------+-------+------------+-------+--------------+---------------------+----------------------+-----------------------+-----------------------+---------+-------+-------------+
| itemid | type | snmp_community | snmp_oid | snmp_port | hostid | description | key_ | delay | history | trends | nextcheck | lastvalue | lastclock | prevvalue | status | value_type | trapper_hosts | units | multiplier | delta | prevorgvalue | snmpv3_securityname | snmpv3_securitylevel | snmpv3_authpassphrase | snmpv3_privpassphrase | formula | error | lastlogsize |
+--------+------+----------------+-----------------------------------------+-----------+--------+---------------+--------------------+-------+---------+--------+-----------+-----------+-----------+-----------+--------+------------+---------------+-------+------------+-------+--------------+---------------------+----------------------+-----------------------+-----------------------+---------+-------+-------------+
| 17650 | 0 | public | interfaces.ifTable.ifEntry.ifInOctets.1 | 161 | 10020 | test file | file[C:\\test.log] | 5 | 90 | 365 | 0 | NULL | NULL | NULL | 0 | 0 | | | 0 | 0 | NULL | | 0 | | | 1 | | 0 |
+--------+------+----------------+-----------------------------------------+-----------+--------+---------------+--------------------+-------+---------+--------+-----------+-----------+-----------+-----------+--------+------------+---------------+-------+------------+-------+--------------+---------------------+----------------------+-----------------------+-----------------------+---------+-------+-------------+
1 row in set (0.00 sec)