CSS support for column width in “service details”

This patch has been created against Nagios version 3.0.6 but could still work in future versions that make use of Nagios’ C-based CGI interfaces.

Change into the source tree and apply the patch:

  • cd nagios-3.0.6
  • patch -p 0 < status.c-column-width-patch.diff

In order to set the column width edit the apropirate CSS file (share/stylesheets/status.css) and add these lines, while changing them as needed:

.statusHost {  }
.statusService { width: 300px; }
.statusStatus {  }
.statusCheck {  }
.statusDuration {  }
.statusAttempt {  }
.statusInformation {  }

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

DOWNLOAD: CSS column support for (1146 downloads)

SNMP Agent simulator (Net-SNMP/PHP)

This little (quick and dirty) application allows you simulate any kind of SNMP agent, just by having an export of its numeric OID tree.

For instance this is usefull for offline-development of new check-plugins. You don’t need physical access to the SNMP server running the agents. All you need is a numeric SNMP-dump of the actual tree you are interested in, which may be obtained in a single on-site run. An example of the LanManager (77) tree beyond enterprises (1.3.6.1.4.1) could look like:

  • snmpwalk -O n -C c -c public -v 2c myhostname 1.3.6.1.4.1.77 | sort >lanmgr.dump

While some agents don’t supply OIDs in increasing order, we can work around that using “-C c” and “sort” in this example.

As soon as you are done with this just copy the output (here “lanmgr.dump”) and integrate it into your own SNMP daemon. In order to add the LanManager tree to your local Net-SNMP daemon you would add the following line to /etc/snmp/snmpd.conf:

  • pass_persist .1.3.6.1.4.1.77 /usr/local/sbin/mySNMPagent.php /tmp/lanmgr.dump

ATTENTION: this is a tool in very early stage of development. While it may be useful for a lot of cases, there was no heavy testing so far. Multiline hex-output is not yet supported. Other stuff may be missing.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
Loading...

DOWNLOAD: mySNMPagent (1260 downloads)

Host-Resource-MIB queries: cpu, processes, storage (v2.5)

Query the Host Resource MIB of various operating systems for cpu usage, processes and storage/volumes. These scripts have been tested against Linux and Windows XP, but should do the job for any other OS as well.

The current version is a complete rewrite in Perl and only uses the OID-Trees, so you don’t need to add the Host-Resource-MIB to your local configuration.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

DOWNLOAD: check plugins for Host-Ressource-MIB (1076 downloads)

Compaq-HP Proliant Server and Blade Checks (v2.0)

Check CPUs, fans, array controllers, logical / physical drives, temperature and power supplies on your Proliant servers or blade systems through SNMP.

The plugin uses Compaq/HPs Insight Manager SNMP Agents installed on either Windows or Linux machines to check CPUs, fans, array controllers, logical / physical drives, temperature and power supplies on your Proliant servers or blade systems.

Compaq MIBs are included in the attached archive. The new version 2 is a complete rewrite in Perl and only uses the OID-Trees, so you don’t need to add the Compaq MIBs to your local configuration.

1 Star2 Stars3 Stars4 Stars5 Stars (7 votes, average: 4.57 out of 5)
Loading...

DOWNLOAD: check plugins for Compaq/HP (1004 downloads)