Temptrax plugin for Netsaint

Olaf Hoyer ohoyer at gaff.hhhr.ision.net
Tue Aug 5 10:05:33 CEST 2003


On Mon, 4 Aug 2003, Ashwin Kotian wrote:

> I've just purchased the Sensatronics Digital temperature monitoring device & am able to run the following successfully from the command line:
>
> /usr/lib/netsaint/plugins/check_temptraxf -d /dev/ttyS0 -p 1 -w 68 -c 75
>
> However in Netsaint version 0.0.7b8-2, if I add the same command in the service definition as follows:
>
> service[host]=Lab Temperature;0;24x7;3;5;1;linux-admins;120;24x7;1;1;1;;"/usr/lib/netsaint/plugins/check_temptraxf -d /dev/ttyS0 -w 68 -c 75"
>
> It fails with Netsaint logs reporting: Error: Unable to open /dev/ttyS0 for reading/writing!!
>
> What is the problem here ??? Please help...
>

Looks like permission problem.
As which user do you run the manual test, and as which user does
netsaint run?

You could set the plugin setuid root (ok, somewhat bad idea
securitywise) or give some additional permissions to the device.

HTH
Olaf

-- 
Olaf Hoyer        ohoyer at gaff.hhhr.ision.net
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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