PNP4NAGIOS - COMMAND CHECK_PORT

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
juanfmg
Posts: 8
Joined: Tue Apr 19, 2016 2:56 am

PNP4NAGIOS - COMMAND CHECK_PORT

Post by juanfmg »

Hi there,

im noob in pnp4nagios
I´ve installed and i can see the graph correc with "ping,cpu load,memoria,disk,etc"

But i use to use a command that check ports in my wan networks ( tipical check_port)

My problem is when is add "srv-pnp" or " host-pnp" to a host that im checking that port i get the error in pnp4nagios folder does not exist o folder empty:

Please check the documentation for information about the following error.

perfdata directory "/usr/local/pnp4nagios/var/perfdata/"xxxxxxxxxxxxxxx"does not exist. <a href="http://docs.pnp4nagios.org/faq/5">Read FAQ online</a>

file [line]:

application/models/data.php [148]:

back

I think there is a problem with the command check_port and the perfdata of pnp4nagios

Noone know about this? anyone is getting the same problem?


best regards
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: PNP4NAGIOS - COMMAND CHECK_PORT

Post by tgriep »

Can you attach your PNP4NAGIOS config files so we can review them?
Can you run the check_port command in a command prompt in the Nagios server and post the output from that command?
Also, run this and post it here.

Code: Select all

ls -l /usr/local/pnp4nagios/var/perfdata/
Be sure to check out our Knowledgebase for helpful articles and solutions!
juanfmg
Posts: 8
Joined: Tue Apr 19, 2016 2:56 am

Re: PNP4NAGIOS - COMMAND CHECK_PORT

Post by juanfmg »

Hi tgriep
thank you for your reply.

I ´ve solved the problem adding a -v (verbose) on my commnad ( check_port -h %arg...etc etc -v)
after thar pnp4nagios y showing me the correct graph


hope help more people

remind that no all command support -v

best regards!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: PNP4NAGIOS - COMMAND CHECK_PORT

Post by rkennedy »

Great! Thanks for sharing your solution as well.

Closing this thread out, but feel free to make a new one if you have any questions in the future.
Former Nagios Employee
Locked