Fuitad
01-07-2005, 01:24
I'm trying to monitor some qmail stuff with Zabbix.
a file is created in tmp with 2 lines of data.
I then try to read it with zabbix with the following command:
UserParameter=qmail[message],/bin/cat /tmp/z_qmailmessage | head -n 1
In my "latest values" window, I always see 0. I turned on debugging and I see this:
006989:20050630:192201 Connection from [myip]. Allowed servers [ips]
006989:20050630:192201 Before read()
006989:20050630:192201 After read() 2 [15]
006989:20050630:192201 Got line:qmail[message]
006989:20050630:192201 Sending back:24
006986:20050630:192201 In check_security()
Now, I'm sure it has something to do with those two \n that's in there but I can't figure it out. Someone?
I'm using ZABBIX 1.1alpha10
a file is created in tmp with 2 lines of data.
I then try to read it with zabbix with the following command:
UserParameter=qmail[message],/bin/cat /tmp/z_qmailmessage | head -n 1
In my "latest values" window, I always see 0. I turned on debugging and I see this:
006989:20050630:192201 Connection from [myip]. Allowed servers [ips]
006989:20050630:192201 Before read()
006989:20050630:192201 After read() 2 [15]
006989:20050630:192201 Got line:qmail[message]
006989:20050630:192201 Sending back:24
006986:20050630:192201 In check_security()
Now, I'm sure it has something to do with those two \n that's in there but I can't figure it out. Someone?
I'm using ZABBIX 1.1alpha10