Access to status.log via a Perl script

Lyle Giese lyle at lcrcomputer.net
Tue Sep 6 17:41:14 CEST 2005


I am working on building one of the traffic light project for Nagios.  
(specifically 
http://www.nagiosexchange.org/Wiki_Home.wiki.0.html?&tx_drwiki_pi1%5Bkeyword%5D=NagiosTLight 
)

I have one quick question for the experts here.  It looks like Juilian 
got his status via status.cgi and parsed the resulting webpage that 
comes back.  I have a small configuration and want to pull status from 
status.log file and then customize the status.  I have most of it written.

The question I have is about status.log.  I am writting a small perl 
script and opening status.log read-only, read it into an array and 
promptly close it.  Will that cause any problems with Nagios?  What 
happens if Nagios wants to write to it at the same time this script is 
reading status.log?

I know this solution does not scale well, but for what I am doing, it 
will never get that big.

Thanks,
Lyle Giese


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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