Thank you.
Isn't check_logfile a local check on server? What about another host/client?
Search found 15 matches
- Fri Sep 16, 2016 3:57 am
- Forum: Open Source Nagios Projects
- Topic: Check file content
- Replies: 3
- Views: 2927
- Thu Sep 15, 2016 4:07 am
- Forum: Open Source Nagios Projects
- Topic: Check file content
- Replies: 3
- Views: 2927
Check file content
Hi,
Is there any plugin/command for searching a logfile for a specific pattern?
I have a log file on a server, I would like to monitor this log file if there are any lines in this file containing a string like "error" .
Thank you.
Is there any plugin/command for searching a logfile for a specific pattern?
I have a log file on a server, I would like to monitor this log file if there are any lines in this file containing a string like "error" .
Thank you.
- Fri Feb 19, 2016 9:33 am
- Forum: Open Source Nagios Projects
- Topic: Linux and nrpe
- Replies: 4
- Views: 1472
Re: Linux and nrpe
Well.. I managed to download the NRPE package from nagios and installed it, edited nrpe.cfg and added my monitoring server IP to allowed hosts, restarted the nrpe service and it worked. Don't know if this is the right method?
- Fri Feb 19, 2016 4:16 am
- Forum: Open Source Nagios Projects
- Topic: Linux and nrpe
- Replies: 4
- Views: 1472
Linux and nrpe
Hi (again), I have managed to learn nagios and have tested the monitoring of a few Windows servers. Now I have a Linux machine I want to try to monitor. On Windows machines, I have a small client software - Do Linux also need some form of client software? I've tried disk check via nrpe to host but I...
- Thu Feb 18, 2016 4:45 am
- Forum: Open Source Nagios Projects
- Topic: ESX check authentication
- Replies: 3
- Views: 1001
Re: ESX check authentication
Doesn't work. Had to add "-D [email protected]" in the command and it now works.
- Wed Feb 17, 2016 5:25 am
- Forum: Open Source Nagios Projects
- Topic: ESX check authentication
- Replies: 3
- Views: 1001
ESX check authentication
Hi, I have added a host using the Host wizard and selected ESXi, username and password. When I run CPU Usage check, I get error message: CHECK_VMWARE_API UNKNOWN - Error: Can not complete login due to an incorrect username or password. On my ESX 6 environment, I have added a local account: monitorin...
- Thu Dec 17, 2015 2:27 am
- Forum: Open Source Nagios Projects
- Topic: Check file age problems
- Replies: 15
- Views: 4497
Re: Check file age problems
Thank you!hsmith wrote:Glad to hear it you got it in our off hours! Would you like me to close this topic?
I don't know - does it mean no one can borrow this thread and comment if they have similar problems?
- Wed Dec 16, 2015 8:14 am
- Forum: Open Source Nagios Projects
- Topic: Check file age problems
- Replies: 15
- Views: 4497
Re: Check file age problems
Finally I got it to work!
Tried another computer and it works!! Updated the client on the machine the command didn't work on and now it works!
Seems like an outdated version!
Thank you for all help!
Tried another computer and it works!! Updated the client on the machine the command didn't work on and now it works!
Seems like an outdated version!
Thank you for all help!
- Wed Dec 16, 2015 5:32 am
- Forum: Open Source Nagios Projects
- Topic: Check file age problems
- Replies: 15
- Views: 4497
Re: Check file age problems
Well... after some adjustments in .ini files and enabled: port=5666 allow_arguments=1 allow_nasty_meta_chars=1 use_ssl=1 I got: check_nrpe -H 192.168.1.11 -t 30 -c checkfiles -a path='C:\\logs\\' pattern='test.log' 'filter=written < -10m' MaxCrit=1 Result code: 3 UNKNOWN: No handler for that command
- Wed Dec 16, 2015 4:13 am
- Forum: Open Source Nagios Projects
- Topic: Check file age problems
- Replies: 15
- Views: 4497
Re: Check file age problems
Well.. When typing the whole thing again it works.. kind of.. check_nrpe -H 192.168.1.11 -t 30 -c CheckFiles -a path='C:\\logs\\' pattern='test.log' 'filter=written < -10m' MaxCrit=1 Result code: 0 CheckFile ok|'found files'=0;0;1 If I don't edit the log file in 10 min it still says OK, if i set 1 m...