<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ingo Lantschner wrote:<br>
<blockquote
 cite="mid:4E2D3046-5482-45B2-91D4-D40A88A7D87F@lantschner.name"
 type="cite">
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">re you using NRPE or Nagios directly</pre>
    </blockquote>
    <pre wrap="">It uses Nagios directly.
    </pre>
    <blockquote type="cite">
      <pre wrap="">Does your plugin write to stdout</pre>
    </blockquote>
    <pre wrap="">Yes
    </pre>
    <blockquote type="cite">
      <pre wrap="">Any newlines in the output</pre>
    </blockquote>
    <pre wrap="">Just one after the output line.
    </pre>
  </blockquote>
  <pre wrap=""><!---->hmh, that's all ok ...
What about the pathes? How do you switch to the nagios user?
  </pre>
</blockquote>
I use su nagios:<br>
[root@reinaas objects]# su nagios -<br>
bash-3.2$ /etc/nagios3/plugins/check_rss_time.py <br>
OK - RSS - Newest 39 min 21-10-08 10:29 - Nr items 49|items=49;;0;100
articleage=39s;;;600 time=0s;;;10 size=18351B;;;10<br>
bash-3.2$ <br>
<br>
Regards,<br>
Tarjei<br>
<br>
<br>
<blockquote
 cite="mid:4E2D3046-5482-45B2-91D4-D40A88A7D87F@lantschner.name"
 type="cite">
  <pre wrap="">
Cheers, Ingo
  </pre>
</blockquote>
<br>
</body>
</html>