Page 1 of 1
VM monitoring in Nagios Core
Posted: Wed Jan 25, 2017 5:01 am
Hi,
we have Nagios Core version 3.2.0
Recently we moved two servers from Physical to VM, Which we are monitoring in Nagios Core, then after nagios is showing critical status for those two machines and in services status as "CRITICAL: No Plugin Output!".
Please let us know if any plugin required.
Thanks,
Re: VM monitoring in Nagios Core
Posted: Wed Jan 25, 2017 10:30 am
by rkennedy
You'll more than likely need the plugin. Can you post two things for us to review?
1. The output of ls -al /usr/local/nagios/libexec/
2. The service definitions associated with the services reporting 'No Plugin Output!'
Re: VM monitoring in Nagios Core
Posted: Fri Jan 27, 2017 1:39 am
Hi,
1.
Code: Select all
~$ ls -al /usr/local/nagios/libexec/
total 3596
drwxrwxr-x 3 nagios nagios 4096 Oct 27 2011 .
drwxr-xr-x 11 admin nagios 4096 Dec 8 2009 ..
-rw-r--r-- 1 admin admin 20480 Oct 11 2010 .check_netapp.swp
-rwxr-xr-x 1 root root 55 Jul 7 2009 NoPluginOut
-rwxr-xr-x 1 nagios nagios 69104 Dec 8 2009 check_apt
-rwxr-xr-x 1 nagios nagios 2254 Dec 8 2009 check_breeze
-rwxr-xr-x 1 admin admin 7470 Oct 12 2010 check_brocade_fcswitch-pl
-rwxr-xr-x 1 nagios nagios 83090 Dec 8 2009 check_by_ssh
lrwxrwxrwx 1 root root 9 Dec 8 2009 check_clamd -> check_tcp
-rwxr-xr-x 1 nagios nagios 46087 Dec 8 2009 check_cluster
-r-sr-xr-x 1 root nagios 79851 Dec 8 2009 check_dhcp
-rwxr-xr-x 1 nagios nagios 77316 Dec 8 2009 check_dig
-rwxr-xr-x 1 nagios nagios 105072 Dec 8 2009 check_disk
-rwxr-xr-x 1 nagios nagios 8080 Dec 8 2009 check_disk_smb
-rwxr-xr-x 1 nagios nagios 84061 Dec 8 2009 check_dns
-rwxr-xr-x 1 nagios nagios 41433 Dec 8 2009 check_dummy
-rwxr-xr-x 1 admin admin 13621 Jan 4 2011 check_emc_clarion.pl
-rw-r--r-- 1 admin admin 1992 Jan 4 2011 check_emc_clarion.txt
-rwxr-xr-x 1 admin admin 3425 Oct 13 2010 check_fibrealliance.sh
-rwxr-xr-x 1 nagios nagios 3056 Dec 8 2009 check_file_age
-rwxr-xr-x 1 nagios nagios 6318 Dec 8 2009 check_flexlm
-rwxr-xr-x 1 nagios nagios 81970 Dec 8 2009 check_fping
lrwxrwxrwx 1 root root 9 Dec 8 2009 check_ftp -> check_tcp
-rwxr-xr-x 1 nagios nagios 63993 Dec 8 2009 check_game
-rwxr-xr-x 1 nagios nagios 78341 Dec 8 2009 check_hpjd
-rwxr-xr-x 1 nagios nagios 131297 Dec 8 2009 check_http
-r-sr-xr-x 1 root nagios 85828 Dec 8 2009 check_icmp
-rwxr-xr-x 1 nagios nagios 52390 Dec 8 2009 check_ide_smart
-rwxr-xr-x 1 root root 1782 Jul 21 2009 check_idnet_status
-rwxr-xr-x 1 nagios nagios 15137 Dec 8 2009 check_ifoperstatus
-rwxr-xr-x 1 nagios nagios 12523 Dec 8 2009 check_ifstatus
lrwxrwxrwx 1 root root 9 Dec 8 2009 check_imap -> check_tcp
-rwxr-xr-x 1 nagios nagios 7355 Dec 8 2009 check_ircd
lrwxrwxrwx 1 admin nagios 9 Dec 7 2009 check_jabber -> check_tcp
-rwxr-xr-x 1 admin nagios 63945 Apr 21 2009 check_ldap
lrwxrwxrwx 1 root root 10 Dec 8 2009 check_ldaps -> check_ldap
-rwxr-xr-x 1 nagios nagios 64122 Dec 8 2009 check_load
-rwxr-xr-x 1 nagios nagios 6026 Dec 8 2009 check_log
-rwxr-xr-x 1 nagios nagios 20287 Dec 8 2009 check_mailq
-rwxr-xr-x 1 nagios nagios 51800 Dec 8 2009 check_mrtg
-rwxr-xr-x 1 nagios nagios 51707 Dec 8 2009 check_mrtgtraf
-rwxr-xr-x 1 admin nagios 75355 Apr 21 2009 check_mysql
-rwxr-xr-x 1 admin nagios 71471 Apr 21 2009 check_mysql_query
-rwxr-xr-x 1 nagios nagios 64437 Dec 8 2009 check_nagios
-rwxr-xr-x 1 admin admin 21581 Oct 11 2010 check_netapp
-rwxr-xr-x 1 admin nagios 22051 Oct 1 2010 check_netapp3.pl
-rwxr-xr-x 1 admin admin 21545 Oct 11 2010 check_netapp_old
-rwxr-xr-x 1 admin admin 4924 Oct 27 2010 check_netapp_ops.pl
lrwxrwxrwx 1 root root 9 Dec 8 2009 check_nntp -> check_tcp
lrwxrwxrwx 1 admin nagios 9 Dec 7 2009 check_nntps -> check_tcp
-rwxrwxr-x 1 nagios nagios 63837 Dec 8 2009 check_nrpe
-rwxr-xr-x 1 nagios nagios 77330 Dec 8 2009 check_nt
-rwxr-xr-x 1 nagios nagios 79634 Dec 8 2009 check_ntp
-rwxr-xr-x 1 nagios nagios 73380 Dec 8 2009 check_ntp_peer
-rwxr-xr-x 1 nagios nagios 70736 Dec 8 2009 check_ntp_time
-rwxr-xr-x 1 nagios nagios 98712 Dec 8 2009 check_nwstat
-rwxr-xr-x 1 nagios nagios 8326 Dec 8 2009 check_oracle
-rwxr-xr-x 1 nagios nagios 65444 Dec 8 2009 check_overcr
-rwxr-xr-x 1 admin nagios 61365 Apr 21 2009 check_pgsql
-rwxr-xr-x 1 nagios nagios 87359 Dec 8 2009 check_ping
lrwxrwxrwx 1 root root 9 Dec 8 2009 check_pop -> check_tcp
-rwxr-xr-x 1 nagios nagios 85511 Dec 8 2009 check_procs
-rwxr-xr-x 1 admin admin 3828 Oct 15 2010 check_quota_netapp.pl
-rwxr-xr-x 1 nagios nagios 63191 Dec 8 2009 check_real
-rwxr-xr-x 1 nagios nagios 9584 Dec 8 2009 check_rpc
-rwxr-xr-x 1 nagios nagios 1137 Dec 8 2009 check_sensors
lrwxrwxrwx 1 admin nagios 9 Dec 7 2009 check_simap -> check_tcp
-rwxr-xr-x 1 nagios nagios 90367 Dec 8 2009 check_smtp
-rwxr-xr-x 1 nagios nagios 117963 Dec 8 2009 check_snmp
-rwxr-xr-x 1 admin admin 10158 Oct 13 2010 check_snmp_FCports_brocade-v1.2.pl
lrwxrwxrwx 1 admin nagios 9 Dec 7 2009 check_spop -> check_tcp
-rwxr-xr-x 1 admin admin 1725 Jan 26 2011 check_sqljob.sh
-rwxr-xr-x 1 nagios nagios 60209 Dec 8 2009 check_ssh
lrwxrwxrwx 1 admin nagios 9 Dec 7 2009 check_ssmtp -> check_tcp
-rwxr-xr-x 1 nagios nagios 66264 Dec 8 2009 check_swap
-rwxr-xr-x 1 nagios nagios 73817 Dec 8 2009 check_tcp
-rwxr-xr-x 1 nagios nagios 62717 Dec 8 2009 check_time
lrwxrwxrwx 1 root root 9 Dec 8 2009 check_udp -> check_tcp
-rwxr-xr-x 1 nagios nagios 71187 Dec 8 2009 check_ups
-rwxr-xr-x 1 nagios nagios 62113 Dec 8 2009 check_users
-rwxr-xr-x 1 nagios nagios 6045 Oct 27 2011 check_vmfs.sh
-rwxr-xr-x 1 nagios nagios 2939 Dec 8 2009 check_wave
-rwxr-xr-x 1 admin admin 2322 Jun 16 2011 check_win_process
-rwxr-xr-x 1 admin admin 2131 Jun 16 2011 check_win_process.sav
-rwxr-xr-x 1 root root 441 Jul 7 2009 email.sh
-rwxr-xr-x 1 root root 3532 Nov 11 2010 get_last_plate_read
-rwxr-xr-x 1 root root 3128 Mar 8 2010 get_last_plate_read.new
-rwxr-xr-x 1 root root 1393 Feb 16 2010 get_last_plate_read.old
-rwxrwxrwx 1 root root 3547 Nov 11 2010 get_last_plate_read_test
-rwxr-xr-x 1 nagios nagios 65475 Dec 8 2009 negate
drwxr-xr-x 2 admin admin 4096 Jan 26 2011 nullsqllog
-rw-r--r-- 1 admin admin 59 Jan 26 2011 url.properties
-rwxr-xr-x 1 nagios nagios 61416 Dec 8 2009 urlize
-rwxr-xr-x 1 nagios nagios 1938 Dec 8 2009 utils.pm
-rwxr-xr-x 1 nagios nagios 862 Dec 8 2009 utils.sh
-rwxrwxrwx 1 nagios nagios 61 Oct 27 2011 vmware_esxi_conf.txt
2. Service Definitions
Code: Select all
define service{
#TibRv
use RVD-service ; Name of service template to use
host_name csd-svcimapp01
service_description Tibrv:7970
#network
#daemon tcp:csd-svcimapp01:7970
#service 7970
# Queues - Anzahl - Name - Instance - Instance Nummer Scheduler
#number_queues 5
#dpiX.CSD.FAB2.Production.ActionItems.ActionItemServer,3,0,1 () (tibco,tibco)
#dpiX.CSD.FAB2.Production.Equipment.FabSrv,3,0,1 () (tibco,tibco)
#dpiX.CSD.FAB2.Production.Equipment.PJobSrv,3,0,1 () (tibco,tibco)
#dpiX.CSD.FAB2.Production.Equipment.PJobSetupSrv,3,0,1 () (tibco,tibco)
#dpiX.CSD.FAB2.Production.Equipment.IDsrv,3,0,1 () (tibco,tibco)
#number_single_instance 2
#dpiX.CSD.FAB2.Production.Equipment.EQC,AOI1,CVD1,ETCH1,L1,PINSP1,ACLS_SCRUB1,STRIP2,ETCH1,ETCH2 () (tibco,tibco)
#dpiX.CSD.FAB2.Production.Equipment.EquipmentServer,PINSP1,L1,ETCH1,CVD1,AOI1 () (tibco,tibco)
#max_clients 512
#max_services 1
}
define serviceextinfo{
host_name csd-svcimapp01
service_description Tibrv:7970
#action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes_url /logs/csd-svcimapp01/7970/daemon
icon_image_alt TIB-Daemon
}
define service{
use RVD-Dataloss-service ; Name of service template to use
host_name csd-svcimapp01
service_description Tibrv:7970:DataLoss
}
define serviceextinfo{
host_name csd-svcimapp01
service_description Tibrv:7970:DataLoss
notes_url /logs/csd-svcimapp01/7970/daemon
icon_image_alt TIB-Dataloss
}
Thanks,
Re: VM monitoring in Nagios Core
Posted: Fri Jan 27, 2017 1:28 pm
by rkennedy
Some of the permissions appear to be incorrect in your plugin folder (admin:admin) which could affect it. As for diving into what the actual problem is, it looks like you're using the RVD-Dataloss-service template. Please post this template for us to review, as well as the command definition that it's using in conjunction.