Python plugin reports status (null)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
elsticky
Posts: 4
Joined: Thu May 02, 2013 9:13 am

Python plugin reports status (null)

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Python plugin reports status (null)

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
elsticky
Posts: 4
Joined: Thu May 02, 2013 9:13 am

Re: Python plugin reports status (null)

Post 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
elsticky
Posts: 4
Joined: Thu May 02, 2013 9:13 am

Re: Python plugin reports status (null)

Post by elsticky »

It seems that we were missing the nrpe plugin and this was causing the problem.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Python plugin reports status (null)

Post by abrist »

Is this resolved then?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
elsticky
Posts: 4
Joined: Thu May 02, 2013 9:13 am

Re: Python plugin reports status (null)

Post by elsticky »

Yes this is resolved!
Locked