check_log not working properly

Jim Mozley jim.mozley at exponential-e.com
Mon Feb 16 13:26:02 CET 2004


Neil wrote:


> Looks like I'm very close. Another question. Am I correct that the 
> variable $host and $service should match the strings we defined in 
> services.cfg?

Yes.

> Here is an example of what I mean:
> define service{
>       use             nt-service-templace
>       host_name       iisserver1
>       service_description            w3svc
>       check_command   ""
>       }
> my $cmd = "[$epoch] 
> PROCESS_SERVICE_CHECK_RESULT;iisserver1;w3svc;$nagios_code;$msg";
> I can use variables there but I hardcoded it for clarity.
> And also, after reading and reading topics about this, swatch or nagios 
> doesn't have to work together.

Correct. But if you put events into Nagios you take advantage of all its 
features such as a web interface and notifications, a consolidated view 
of all system network events, etc. This is probably better then swatch 
just sending out an email.


> Although, swatch just needs to populate 
> the nagios.cmd with the format that NAGIOS is expecting. Am I right?

Correct.

Jim


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&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