Pnpnagios package loss error

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.
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Pnpnagios package loss error

Post by alex3105 »

Good Morning,

I have Centos 7 with Nagios Core 4.4.1 and 0.626 pnpnagios with 60 hosts between Windows computers, servers, switches, etc; but I have the problem for a long time that when a computer is turned off or disconnected from the network .. I receive the notification and see on my map by the nagvis of the fall of the computer, but in my pnpnagios the sector of lost packages does not show any activity.

I would be grateful if you would confirm me if I would be well installed by supporting me in confirming your configuration.

I have already reinstated in pnpnagios twice in two different ways, but I always have the same result, when a computer is disconnected there is no activity in the second graphic of packages lost.

https://nksistemas.com/instalacion-de-p ... on-centos/
http://docs.pnp4nagios.org/en/pnp-0.6/doc_complete

I have also followed the following link without success:
https://support.nagios.com/forum/viewto ... =7&t=11811

---- nagios.cfg -----

process_performance_data=1

define command{
command_name process-service-perfdata-file
command_line /bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$
}

define command{
command_name process-host-perfdata-file
command_line /bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$
}


------ commands.cfg -------

define command{
command_name process-service-perfdata-file
command_line /bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$
}

define command{
command_name process-host-perfdata-file
command_line /bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$
}
Attachments
pnp12.JPG
pnp1.JPG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post by scottwilkerson »

alex3105 wrote:but I have the problem for a long time that when a computer is turned off or disconnected from the network .. I receive the notification and see on my map by the nagvis of the fall of the computer, but in my pnpnagios the sector of lost packages does not show any activity.
If a host is down there is no data for the graphing to log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post by alex3105 »

Dear Scottwilkerson, I was referring to the second graphic of lost packets .. when the host loses connectivity you should see activity in this part ..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post by scottwilkerson »

alex3105 wrote:Dear Scottwilkerson, I was referring to the second graphic of lost packets .. when the host loses connectivity you should see activity in this part ..
I would want to see the output from the host detail page for this check, specifically these 3 lines

Code: Select all

Host Status:	
Status Information:	
Performance Data:
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post by alex3105 »

Dear Scottwilkerson,

attached as requested:

Host Status: UP (for 2d 11h 43m 58s)
Status Information: PING OK - Packet loss = 0%, RTA = 0.28 ms
Performance Data: rta=0.284000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0

Host Status: UP (for 2d 11h 54m 29s)
Status Information: PING OK - Packet loss = 0%, RTA = 0.34 ms
Performance Data: rta=0.341000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0

Best regards,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post by scottwilkerson »

alex3105 wrote:Dear Scottwilkerson,

attached as requested:

Host Status: UP (for 2d 11h 43m 58s)
Status Information: PING OK - Packet loss = 0%, RTA = 0.28 ms
Performance Data: rta=0.284000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0

Host Status: UP (for 2d 11h 54m 29s)
Status Information: PING OK - Packet loss = 0%, RTA = 0.34 ms
Performance Data: rta=0.341000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0

Best regards,
I guess I was referring to what is reported in the Performance Data: field during the time when you don't have any performance data.

I am guessing, that for some reason the check is timing out before it can get the data.

This maybe can be rectified by adjusting the check to make sure it doesn't timeout before the 30 second limit
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post by alex3105 »

This is the configuration my host has .. you could confirm which field I should change please.

define host{
use servers,host-pnp
host_name host
alias host
address 192.168.1.204
check_command check-host-alive
check_interval 2
check_period 24x7
max_check_attempts 1
retry_interval 1
notifications_enabled 1
notification_period 24x7
notification_options d,u,r,s
contact_groups admins
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post by scottwilkerson »

Can you show the command definition for check-host-alive?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post by alex3105 »

It is attached as requested:

define command {

command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post by scottwilkerson »

alex3105 wrote:This is the configuration my host has .. you could confirm which field I should change please.

define host{
use servers,host-pnp
host_name host
alias host
address 192.168.1.204
check_command check-host-alive
check_interval 2
check_period 24x7
max_check_attempts 1
retry_interval 1
notifications_enabled 1
notification_period 24x7
notification_options d,u,r,s
contact_groups admins
}
Are you sure this is the same host?

I ask because in the state history you showed earlier it showed the check timed out after 30 seconds but check_ping default plugin timeout is 10 seconds if one isn't specified with -t
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked