Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.
/ check_pfSense Public archive

Nagios/Icinga script to check pfsense devices

Notifications You must be signed in to change notification settings

PitWenkin/check_pfSense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This plugin is no longer actively developed.

All improvements were merged to https://github.com/diogouchoas/check_pfsense/

Check pfSense

Nagios/Icinga script to check pfsense devices

It's a combination of two pre-existing script:

https://gitlab.unetresgrossebite.com/DevOps/puppet/blob/30bf4d18dd98d5dc1b658be56a312051f61ac9bc/modules/nagios/files/custom_plugins/check_pfsense

which I improved with parts of

https://github.com/diogouchoas/check_pfsense/

Usage:

   -H   Hostname to query - (required)
   -C   SNMP read community (default=public)
   -t   Specify the check (required)
          cpu - Checks the cpu usage
          disk - Checks the cpu usage
          diskusage [-d disnbr] - Checks the cpu usage
          load - Checks the cpu usage
          memory - Checks the cpu usage
          procs - Checks the cpu usage
          states - Checks the cpu usage
          users - Checks the cpu usage
   -w   Warning threshold
          Default depends of query
   -c   Critical threshold
          Default depends of query
   -h   Usage help 

Examples:

Check Memory/Swap Usage

./check_pfSense.sh -H 192.168.1.1 -C public -t memory -w 80,30 -c 90,50
OK Memory usage: 63% - Total: 7.973M, used: 4.1022M, free: 2.974M

Check CPU Usage

./check_pfSense.sh -H 192.168.1.1 -C public -t cpu
OK 3% cpu used - 50/75

Check Load Average

./check_pfSense.sh -H 192.168.1.1 -C public -t load -w 2 -c 4
OK load = 0.15, 0.41, 0.86

About

Nagios/Icinga script to check pfsense devices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages