Hi There
I want to use nagiox monitor a specific log file. Could you tell me how to config it? thanks
How can monintor a specific log file
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: How can monintor a specific log file
Hello,
There are a number of plugins related to this on our exchange:
http://exchange.nagios.org/directory/Plugins/Log-Files
For instance this plugin:
http://exchange.nagios.org/directory/Pl ... es/details
Is the log file you are attempting to monitor on a remote host? If so, you may need to configure NRPE on that host, and then place the plugin there, and once that is configured call it from Nagios XI, let us know if you need help with this.
There are a number of plugins related to this on our exchange:
http://exchange.nagios.org/directory/Plugins/Log-Files
For instance this plugin:
http://exchange.nagios.org/directory/Pl ... es/details
Is the log file you are attempting to monitor on a remote host? If so, you may need to configure NRPE on that host, and then place the plugin there, and once that is configured call it from Nagios XI, let us know if you need help with this.
Re: How can monintor a specific log file
thanks, I download file and add in NagiosXI plug-in. I can configure the new command and add the new service. But I don't know how can configure it to monitor a specific log file.
For example: I want to monitor server name: Server1 , c:\logfolder\ aa.log file how can I setting for monitor it?
For example: I want to monitor server name: Server1 , c:\logfolder\ aa.log file how can I setting for monitor it?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: How can monintor a specific log file
Okay, so you are trying to monitor a log file on a windows server? For that you will need to first install NSClient++ and configure it properly:
http://assets.nagios.com/downloads/nagi ... _Agent.pdf
http://assets.nagios.com/downloads/nagi ... Client.pdf
From here, it does not look like anyone has written a plugin to parse text out of a file and return a return code based on what it matches with your arguments, which are the basics of any plugin for Nagios. You may need to write your own, if you are looking for event log monitoring there are tons of options available. Now, on the Linux side many people have written log parsing plugins.
http://assets.nagios.com/downloads/nagi ... _Agent.pdf
http://assets.nagios.com/downloads/nagi ... Client.pdf
From here, it does not look like anyone has written a plugin to parse text out of a file and return a return code based on what it matches with your arguments, which are the basics of any plugin for Nagios. You may need to write your own, if you are looking for event log monitoring there are tons of options available. Now, on the Linux side many people have written log parsing plugins.