[Nagiosplug-help] Calling PERL script from within a BASH Plug-in

Matthias Eble matthias.eble at mailing.kaufland-informationssysteme.com
Sat Jul 14 22:01:57 CEST 2007


Russ Nealis schrieb:
> Hi Guys,
> 
> I wrote a very basic plug-in to grep through my syslog. Instead of 
> parsing my entire syslog, which can get up to 1 gig, I only grep through 
> at least the past 10 minutes. To do this I grab a syslog line at a 
> predetermined line and run a PERL script on it to parse the time stamp. 
> This PERL script will then tell me how many seconds back the line was... 
> if more than 10 minutes then the amount of lines used is sufficient. In 
> any event, my basic problem is that from the command line the script 
> works properly, but when I use it through NRPE/Nagios it fails to call 
> the PERL script properly.

Russ,

I didn't examine your script, but one common error is that people don't 
test their plugins with the correct user account (nrpe-user;usually 
nagios). Syslog files often have strong permissions.

Matthias




More information about the Help mailing list