Hi,
I am relatively new to Zabbix and I'm having a difficult time implementing the monitoring of syslogs. I think I must be doing something incredibly dumb. I'm hoping a second set of eyes from the forum members might help me.
Environment
To keep things simple I have two servers: the one to monitor and the Zabbix server.
Zabbix Object Configuration
For test puropses my Item is defined as follows:
Any time someone logs in via ssh, /var/log/secure has a line with sshd in it therefore the above Item should match anything.
Next, I have a very simple Trigger:
Agent .conf
Problem
There are a couple of problems. First, unless I add the Zabbix Server to my "syslog" Template, the Agent on the monitored box does not report any data. I've confirmed by both using the GUI's Last data screen as well as enabling DebugLevel=4 on the Agent box.
If I add the Zabbix Server to my "syslog" Template, I see data like the following in the Agent's log:
but then I get this error in the Zabbix Server's log:
Again, I'm running both the Agent and the Server as root, SELinux is set to Permissive so I'm not sure why I'm getting a Permission denied error.
Any help would be greatly appreciated!
Thx!
-pablo
I am relatively new to Zabbix and I'm having a difficult time implementing the monitoring of syslogs. I think I must be doing something incredibly dumb. I'm hoping a second set of eyes from the forum members might help me.
Environment
To keep things simple I have two servers: the one to monitor and the Zabbix server.
- CentOS 7
- SELinux set to Permissive
- The Agent and Zabbix Server are running as root
- The backend store is Postgres
- Version 2.4.4.1 of the Agent and Zabbix Server
- Firewalls disabled
Zabbix Object Configuration
For test puropses my Item is defined as follows:
Code:
log[/var/log/secure,sshd]
Next, I have a very simple Trigger:
Code:
{syslog:log[/var/log/secure,sshd].nodata(60)}=0
- ServerActiove=10.200.0.61
- Hostname=Zabbix server
Problem
There are a couple of problems. First, unless I add the Zabbix Server to my "syslog" Template, the Agent on the monitored box does not report any data. I've confirmed by both using the GUI's Last data screen as well as enabling DebugLevel=4 on the Agent box.
If I add the Zabbix Server to my "syslog" Template, I see data like the following in the Agent's log:
Code:
31508:20150317:112919.540 setup_old2new: is_same_file(/var/log/secure, /var/log/secure) = 1 31508:20150317:112919.540 process_logrt() old file list: 31508:20150317:112919.540 nr:0 filename:'/var/log/secure' mtime:1426605493 size:18131 processed_size:18131 seq:1 incomplete:0 dev:64769 ino_hi:0 ino_lo :67969294 md5size:512 md5buf:4e5c42406fc0603a8578276968d0b327 31508:20150317:112919.540 process_logrt() new file list: (mtime:0 lastlogsize:18131 start_idx:0) 31508:20150317:112919.540 nr:0 filename:'/var/log/secure' mtime:1426605493 size:18131 processed_size:18131 seq:1 incomplete:0 dev:64769 ino_hi:0 ino_lo:67969294 md5size:512 md5buf:4e5c42406fc0603a8578276968d0b327 31508:20150317:112919.540 End of process_logrt():SUCCEED error_count:0 31508:20150317:112919.540 End of process_active_checks() 31508:20150317:112919.540 In get_min_nextcheck()
Code:
3976:20150317:122834.998 item "Zabbix server:log[/var/log/secure,sshd]" became supported 3975:20150317:122955.061 item "Zabbix server:log[/var/log/secure,sshd]" became not supported: Cannot open file "/var/log/secure": [13] Permission denied
Any help would be greatly appreciated!
Thx!
-pablo
***
I hadn't configured my Agent's Hostname properly. *sigh* The Hostname has to match the name configured under Configuration > Hosts
Comment