[Nagiosplug-devel] Python plugin without output

Tarjei Huse tarjei at scanmine.com
Tue Oct 21 10:52:06 CEST 2008


Ingo Lantschner wrote:
>>> re you using NRPE or Nagios directly
>> It uses Nagios directly.
>>     
>>> Does your plugin write to stdout
>> Yes
>>     
>>> Any newlines in the output
>> Just one after the output line.
>>     
> hmh, that's all ok ...
> What about the pathes? How do you switch to the nagios user?
>   
I use su nagios:
[root at reinaas objects]# su nagios -
bash-3.2$ /etc/nagios3/plugins/check_rss_time.py
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
bash-3.2$

Regards,
Tarjei


> Cheers, Ingo
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20081021/08dcd40d/attachment-0002.html>


More information about the Devel mailing list