Odd problem with ePN

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Mar 13 05:38:21 CET 2007


Hi list,

I'm experiencing some problems with ePN on one of my home-brew plugins
(check_rsync, I included the link to Nagiosexchange below) that is
somehow failing under ePN. I haven't had the time to investigate this
but it is not my concern.

What happens beside the ePN problem is that somehow the plugin prints a
normal output into Nagios status (it says "rsync [...] failed with error
3" which is an auth error - probably the credentials not being passed
correctly to the command)

Even more odd, at each run not only the "Status Data Age" get reset to
current time, but also the "Current State Duration". In other words the
plugin always shows critical but "Current State Duration" always equals
"Status Data Age".

This was very confusing and I only realized it was failing under ePN
when I looked at the Nagios logs. They shows plenty on lines like these
(I shortened them a bit... Notice the same timestamp for the same server
on the same service):

[1173757417] SERVICE ALERT: server;Rsync;UNKNOWN;HARD;3;**ePN
check_rsync: "untie attempted while 1 inner references still exist at
perl5/5.8.8/IPC/Open3.pm line 197,".

[1173757417] SERVICE ALERT: server;Rsync;CRITICAL;HARD;3;CRITICAL: Rsync
command rsync --port=873 rsync://1.2.3.4 failed with error 3

Looks like for some reason two results are coming back at each check. If
possible I'd suggest making sure only one result is written on the pipe
per check fork.

Thomas

The check_rsync page on NagiosExchange:
http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1[download]=1&tx_netnagext_pi1[path]=xVUunWAtyJT6jbRdWsUsPr8HY2%252F8i104Y1jeo%252B%252F5vN%252BdY%252FhRvgcsVPLdE8c%252FaC9cUUOH4mH7pMZFCa%252Fb8q%252B5YQ%253D%253D&tx_netnagext_pi1[file]=PchYcj0Tdvm%252B8849fWZwGGXpYdg%252Bn2fMftj2AQJGxFM%253D&tx_netnagext_pi1[project]=check_rsync&tx_netnagext_pi1[ext]=

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV




More information about the Developers mailing list