summaryrefslogtreecommitdiffstats
path: root/nagios-server-addons.spec.in
Commit message (Collapse)AuthorAgeFilesLines
* auto-config: provide a command to run auto discovery.Ramesh Nachimuthu2015-02-111-0/+3
| | | | | | | | | | | | Provide a command to perform auto-discovery. Change-Id: I26aa48532f4e8c9f305c36294f48cddf5785b491 Bug-URL: https://bugzilla.redhat.com/1164682 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/9514 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* brick plugin: set rrd configuration to multiple.ndarshan2014-11-261-0/+9
| | | | | | | | | | | | | | | | | | By default perfdata is created in single rrd file which causes failure of fetching DS in upgrade scenario. Because earlier brick utilization had only one DS. Now with thin LV monitoring included in brick utilization, It will be having two DS. The graph templates wont be able to read them in single rrd file. So in case of upgrade we run the script rrd_convert as a pre step to migrate the old data to new rrd files.and this patch also sets pnp4nagios rrd configuration to multiple rrd file for each DS. Change-Id: Iadb50250b2e93d73b61e25be90a0770dae0780f3 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1143995 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9188 Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-server-addons:Add php template for cluster utilization pluginNishanth Thomas2014-11-171-0/+1
| | | | | | | | | | | | | | | There was no php template available for cluster utilization and it was using the the default template and causing the improper display Change-Id: I21f458a678d12807d275cc536e56aa14eae22a80 Bug-url: https://bugzilla.redhat.com/show_bug.cgi?id=1119233 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: http://review.gluster.org/9002 Tested-by: Nishanth Thomas <nishusemail@gmail.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* autoconf: unregister the temp_node1 instead of deleting it.Ramesh Nachimuthu2014-11-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | | Unregistering the temp_node1 instead of deleting it while configuring nagios . new field 'register' will be added to temp_node1 and its services with value 0, so that it won't be considered by nagios. If both files, temp_node1.cfg and temp_node1.cfg.sample are present during upgrade then we will remove the file temp_node1.cfg.sample and add the 'register 0' flag to definitions in temp_node1.cfg file. Bug-Url: https://bugzilla.redhat.com/1162446 Bug-Url: https://bugzilla.redhat.com/1162443 Bug-Url: https://bugzilla.redhat.com/1115387 Change-Id: I3c76d6c6a9a9e411315859e07238a7902ddd2380 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/9123 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Revert "packaging: install temp_node1.cfg only for the first time"Ramesh Nachimuthu2014-11-171-27/+0
| | | | | | | | | | | | This reverts commit 11f96adbb1f8bff8cf7b385da10200a5627d980a. Bug-Url:https://bugzilla.redhat.com/1162446 Bug-Url:https://bugzilla.redhat.com/1162443 Change-Id: I831bb0c84721a0c3181a2d58421520a6fb788621 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/9122 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* packaging: install temp_node1.cfg only for the first timeRamesh Nachimuthu2014-10-291-0/+27
| | | | | | | | | | | | Installing temp_node1.cfg conditionally during first installation only. It won't be re-installed during upgrade. Change-Id: I26cc945d5b8b650d8457b7232d9dc0f3c5eac105 Bug-Url: https://bugzilla.redhat.com/1115387 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/8303 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* packaging: Avoid overwriting config files during upgrade.Ramesh Nachimuthu2014-07-021-2/+2
| | | | | | | | | | | Adding %config(noreplace) flag for config files so that config files will not be over written during RPM upgarde. Change-Id: Iff5ff8f8df589745e9d69bc22f8bf10674d1f49f Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/8220 Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* disk_usage: set rrd configuration to multiplev0.1.1Timothy Asir Jeyasingh2014-06-261-0/+1
| | | | | | | | | | | | | | By default perfdata are created in single rrd file which causes failure of fetching DS for newly configured disks. This patch fixes this issue by setting pnp4nagios rrd configuration to multiple. Change-Id: I05ca0561e9b926a3ee0c655699fa30544c20e2ad Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/8169 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-server: Added noarch directive to specSahina Bose2014-06-211-0/+1
| | | | | | | | Change-Id: Ibb9fcdcb7f5a2c951011883f54ec14c209049555 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/8144 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Tested-by: Kanagaraj M <kmayilsa@redhat.com>
* interfaces: set rrd configuration to multipleBala.FA2014-06-161-0/+1
| | | | | | | | | | | | | | | By default perfdata are created in single rrd file which causes failure of fetching DS for newly configured network interfaces. This patch fixes this by setting pnp4nagios rrd configuration to multiple rrd file for each DS of network interfaces. Change-Id: I3e6fa0e4336fb866ceb37a5e3165a515d42bfae6 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1087837 Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: http://review.gluster.org/8059 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* spec: chkconfig for nagios/nsca servicesRamesh Nachimuthu2014-06-111-0/+8
| | | | | | | | | | | | | | Adding chkconfig for nagios and nsca services. By default nagios and nsca is disabled in all the run levels. So we have to enable them by running 'chkconfig <service> on' during installation. Change-Id: I8527abca24ec286f85c425db9cbeb216047eaa97 Bug-Url: https://bugzilla.redhat.com/1080449 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/8012 Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
* Add sudo configuration for nagios user for nagios pluginsTimothy Asir2014-06-061-0/+1
| | | | | | | | | Change-Id: Ibb601ace97c34a4bd91f2f9658d305a68a7aacaa Bug-Url: https://bugzilla.redhat.com/1085291 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7895 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* nagios-server-addons: Fix for dummy config file issue.ndarshan2014-06-031-0/+1
| | | | | | | | | | | | | | | | | | | This patch replaces the configfile node1.cfg(gluster-host) by temp_node1.cfg which is of type linux-server having service PING. And this dummy config file is renamed to temp_node1.cfg.sample during auto-discovery as it is not needed after we configure actual hosts. Also this patch sets the config variable allow_empty_hostgroup_assignment to 1, which is needed for nagios to allow declaration of empty host-group with services. Change-Id: I03cc54975f5ff5857f8d82b66110e049e4195009 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1091236 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/7952 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-server-addons: Added requires for mod_sslShubhendu Tripathi2014-05-301-0/+1
| | | | | | | | | | Added requires for mod_ssl. The same is required for SSL enabling for nagios and pnp4nagios. Change-Id: Ib391ebb7008396ea34e045cc1cc4041305470a14 Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: http://review.gluster.org/7935 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* nagios-server-addons: Redirect http to https for nagiosShubhendu Tripathi2014-05-291-0/+11
| | | | | | | | | | Enabled redirecting nagios and pnp4nagios urls to https Change-Id: I3d1e62438c7265aca6cd930f37fd4aac08d83f76 Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: http://review.gluster.org/7906 Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
* Add check_brick_usage template into pnp4nagios template pathTimothy Asir2014-05-211-0/+1
| | | | | | | | | Change-Id: I7e81e22e73dc4cf336ad335f69735d54b9e9714a Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7807 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
* nagios-server-addons: Disabled check_remote_host serviceShubhendu Tripathi2014-05-201-0/+1
| | | | | | | | | | | | Disabled the gluster host service check_command service check_remote_host Change-Id: If71ed9d42ef65a9a9b36668fed7b449745cc5df1 Bug-URL: https://bugzilla.redhat.com/show_bug.cgi?id=1098468 Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: http://review.gluster.org/7797 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
* nagios-server-addons: Open NSCA portShubhendu Tripathi2014-05-151-0/+2
| | | | | | | | | | Modified to open NSCA port while installation Bug-URL: https://bugzilla.redhat.com/show_bug.cgi?id=1097193 Change-Id: I52edd1cfde7d61945ae4bdc4f6339fe246713959 Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: http://review.gluster.org/7758 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* nagios-server-addons : Added a php template for volume utilizationNishanth Thomas2014-05-131-0/+1
| | | | | | | | | | | | Volume Utilization plugin didn't have a php template written and hence the graph was not getting displayed properly Change-Id: I6726a6de5370d271467be03e9e8500421cf66e39 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1095427 Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: http://review.gluster.org/7724 Tested-by: Nishanth Thomas <nishusemail@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* auto config : Enhance the auto config to preserve user changesRamesh Nachimuthu2014-04-291-2/+2
| | | | | | | | | Enhace the auto configuration in nagios to preserve the user changes. pynag apis are used to read/write/update the nagios config files. Change-Id: I6820928fb2b0baff5d6e65c811a48b5ff718f9e3 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* spec: fix dependencies issue in spec fileKanagaraj M2014-04-291-0/+6
| | | | | | | Added BuildRequires for required packages. Change-Id: Ie3c1fbc27b93c582a3caf0a61a07897c7892880c Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
* snmp: Fix conf file name and permissionKanagaraj M2014-04-291-0/+1
| | | | | | | | | | | Renamed the file to snmpmanagers.conf, as .cfg files nagios specific files. Changed the permission to nagios:nagios, as trapgenerater fails otherwise. Change-Id: I2fbc4404c7177ee3bcaeab3151cbcba8e062772a Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
* packaging: Added dependency on nscaSahina Bose2014-04-291-0/+1
| | | | | | | | Added a dependency on nsca . required by passive check plugins Change-Id: If9c5b50adcbe8803d36bce3bc5f9bf0e20c07256 Signed-off-by: Sahina Bose <sabose@redhat.com>
* SNMP Trap Support : SNMP notification on status changeNishanth Thomas2014-04-291-0/+2
| | | | | | | | | | | These plugins will generate SNMP traps when there is a host or service state change in Nagios. Plugged into the Nagios Notification mechanism and uses netsnmp utils to generate SNMP traps Addressed the review comments Change-Id: I42c4d1968a48bc80e767f6fbc24d1637a92d21b0 Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
* autoconf: make 'nagios' as the owner of gluster conf folderRamesh Nachimuthu2014-04-291-0/+1
| | | | | | | | | | | | | Currently root is the owner of gluster config folder /etc/nagios/gluster. Because if this, autocof fails to write the config as it is running under nagios user. With this patch, I am changing the owner of gluster config folder to 'nagios' user. Bug-Url: https://bugzilla.redhat.com/1085302 Change-Id: I0cacc266c22cd66e3558a6b78b39009db0ba9a26 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* AutoDiscovery: Auto discovery for gluster entitiesRamesh Nachimuthu2014-04-291-0/+2
| | | | | | | | | | Basic plugin which will discover all the basic gluster entities and creates nagios configuration. Change-Id: I71f05dec9bcce74969db300393f7f7c178161dba Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/22100 Reviewed-by: Sahina Bose <sabose@redhat.com>
* packaging: Added dependency on check_dummy pluginSahina Bose2014-04-291-0/+1
| | | | | | | | | | | | Added a dependency on check_dummy plugin Change-Id: I324d7f7edf3be16e0e2bd6e3949592e67bbf8851 Bug-Url: https://bugzilla.redhat.com/1080124 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/21974 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Balamurugan Arumugam <barumuga@redhat.com> Reviewed-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com>
* plugins: Plugin to check the cluster utilizationSahina Bose2014-04-291-2/+2
| | | | | | | | | | | | | | | This plugin sums up the volume utilization outputs in a cluster Added a utils livestatus for common code related to mk_livestatus Added constants for livestatussocket path Change-Id: Id665ad3aaa1140e54c831d721ee874421ae84fa3 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/10 Reviewed-by: Bala FA <barumuga@redhat.com>
* spec: fix for spec file issues 1. By default all the .py files will get ↵Ramesh Nachimuthu2014-04-291-3/+3
| | | | | | | | | | executable permission 2. Fixed the dependency issues. Change-Id: I48bae616ad86ce631aa60e759be575bd1321085a Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/43 Reviewed-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* all: import plugins/templates/config from githubv0.1.0Bala.FA2014-04-291-2/+124
| | | | | | | | | All plugins/templates/config are imported from https://github.com/gluster-rhsc/nagios-plugin.git Change-Id: Icbbf23c0595e2b36548015489341d9ff823bac50 Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/6
* Initial commitBala.FA2014-04-291-0/+79
Change-Id: Iae865d7dce78de83f0931d99b67455b9a0f12e1c Signed-off-by: Bala.FA <barumuga@redhat.com>