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$
}
Pnpnagios package loss error
-
- Posts: 103
- Joined: Sat Jul 28, 2018 10:54 am
Pnpnagios package loss error
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Pnpnagios package loss error
If a host is down there is no data for the graphing to logalex3105 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.
-
- Posts: 103
- Joined: Sat Jul 28, 2018 10:54 am
Re: Pnpnagios package loss error
Dear Scottwilkerson, I was referring to the second graphic of lost packets .. when the host loses connectivity you should see activity in this part ..
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Pnpnagios package loss error
I would want to see the output from the host detail page for this check, specifically these 3 linesalex3105 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 ..
Code: Select all
Host Status:
Status Information:
Performance Data:
-
- Posts: 103
- Joined: Sat Jul 28, 2018 10:54 am
Re: Pnpnagios package loss error
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,
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,
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Pnpnagios package loss error
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.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 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
-
- Posts: 103
- Joined: Sat Jul 28, 2018 10:54 am
Re: Pnpnagios package loss error
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
}
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
}
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Pnpnagios package loss error
Can you show the command definition for check-host-alive?
-
- Posts: 103
- Joined: Sat Jul 28, 2018 10:54 am
Re: Pnpnagios package loss error
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
}
define command {
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Pnpnagios package loss error
Are you sure this is the same host?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
}
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