[Nagios-user] Run plug-in test as Nagios user

David Gerbec david.gerbec at agenda.si
Wed May 23 14:23:25 CEST 2007


adi yesaya pravi:
> Hi all,
>  
> My plug-in had an output problem, it always says :
> "Return code of 9 is out of bonds"
> 
> I got a headache because when i tested the plug-in manually it worked
> and gave me some nice output.
> Then I surfed the web and found out that i have to change the ownership
> of the plug-in and run the plug-in as a nagios user.
> I did it and it worked! :-)
>  
> My question is why do we have to run the plug-in tests as Nagios user
> and change the ownership of the plugin (and other related file to it) to
> the nagios user?

Plugins are run under the nagios user for security resons, running stuff
under the user root is not a good idea.

As for changeing ownership to files related to plugins, try useing sudo
(man sudo).



Regards,
David Gerbec
Agenda Open Systems
[www.agenda.si]


>  
> Thanks before,
> Adi Yesaya
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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