Page 1 of 1

PNP4NAGIOS - COMMAND CHECK_PORT

Posted: Tue Apr 19, 2016 3:59 am
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

Re: PNP4NAGIOS - COMMAND CHECK_PORT

Posted: Tue Apr 19, 2016 4:22 pm
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/

Re: PNP4NAGIOS - COMMAND CHECK_PORT

Posted: Thu Apr 21, 2016 4:21 am
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!

Re: PNP4NAGIOS - COMMAND CHECK_PORT

Posted: Thu Apr 21, 2016 1:07 pm
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.