Page 1 of 1

Python plugin reports status (null)

Posted: Thu May 02, 2013 9:16 am
by elsticky
Hi all,

We're writing some scripts to check our services here with Python. We wrote them to use paramiko to connect to another system. All went well and our scripts are working when we run them in the command line. Unfortunately, when trying to implement them in Nagios Core we get (null) as Status Information. To me it looks like in some way Nagios does not find/know how to work with paramiko. I concluded this because when deleting the paramiko part it just works fine.

Re: Python plugin reports status (null)

Posted: Thu May 02, 2013 11:05 am
by abrist
Are you running the script from the cli as user nagios? if not, su over to nagios and see if it works. If it does not, you may have permission problems.

Re: Python plugin reports status (null)

Posted: Fri May 03, 2013 1:15 am
by elsticky
At the moment i'm using my administrator account on ubuntu (which is not called nagios) , should I rename it? My colleague is working with a user named 'nagios' but there it seems also not working. Btw, does it matter where our scripts are stored? Currently they're located on the desktop and full path is described in the commands.cfg

Re: Python plugin reports status (null)

Posted: Fri May 03, 2013 5:38 am
by elsticky
It seems that we were missing the nrpe plugin and this was causing the problem.

Re: Python plugin reports status (null)

Posted: Fri May 03, 2013 11:40 am
by abrist
Is this resolved then?

Re: Python plugin reports status (null)

Posted: Mon May 06, 2013 3:45 am
by elsticky
Yes this is resolved!