Page 1 of 4

Pnpnagios package loss error

Posted: Mon Feb 25, 2019 9:24 am
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$
}

Re: Pnpnagios package loss error

Posted: Tue Feb 26, 2019 3:19 pm
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

Re: Pnpnagios package loss error

Posted: Tue Feb 26, 2019 10:29 pm
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 ..

Re: Pnpnagios package loss error

Posted: Wed Feb 27, 2019 8:10 am
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:

Re: Pnpnagios package loss error

Posted: Wed Feb 27, 2019 9:34 am
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,

Re: Pnpnagios package loss error

Posted: Wed Feb 27, 2019 1:53 pm
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

Re: Pnpnagios package loss error

Posted: Wed Feb 27, 2019 3:24 pm
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
}

Re: Pnpnagios package loss error

Posted: Wed Feb 27, 2019 3:48 pm
by scottwilkerson
Can you show the command definition for check-host-alive?

Re: Pnpnagios package loss error

Posted: Wed Feb 27, 2019 4:15 pm
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
}

Re: Pnpnagios package loss error

Posted: Thu Feb 28, 2019 4:37 pm
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