check_log usage
Tedman Eng
teng at dataway.com
Wed Dec 21 02:17:08 CET 2005
check_log is a local plugin.
Are you trying to check /var/adm/messages on your local Nagios server? Most
likely not.
If not, then you'll need execute the plugin remotely or accept remote
service results:
http://www.nagios.org/faqs/viewfaq.php?faq_id=59
> -----Original Message-----
> From: Julie S. Lin [mailto:jlin at myvest.com]
> Sent: Tuesday, December 20, 2005 3:31 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_log usage
>
>
> Hi All
>
> I have two solaris boxen in my group "eagle-servers". however, they
> claims "0 pattern match and check OK" under service detail....
> even though I edited the log file and put it "Memory Error"
> for testing
> purposes..
>
> Could someone kindly have a look at let me know what small
> change I need
> to make?
> thanks.
>
> julie
>
>
> I have configured check_log in services.cfg follows :
>
> define service{
> use generic-service
> hostgroup_name eagle-servers
> service_description LOGCHECK-Mem
> is_volatile 0
> check_period workhours
> max_check_attempts 1
> normal_check_interval 10
> retry_check_interval 1
> contact_groups julie
> notification_interval 120
> notification_period workhours
> notification_options w,u,c
> check_command check_log
> }
>
> I have configured the check_log in checkcommands.cfg as follows:
>
> # 'check_log' command definition
> define command{
> command_name check_log
> command_line $USER1$/check_log -F /var/adm/messages -O
> /tmp/check_log_messages -q "Memory Error"
> }
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web.
> DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS
> when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list