nrdp.cfg:
Code: Select all
#
# AUTO GENERATED NRDP CONFIG FROM WINDOWS INSTALLER
#
[passive checks]
# Host check - This is to stop "pending check" status in Nagios
%HOSTNAME%|__HOST__ = /system/agent_version
# Service checks
%HOSTNAME%|CPU Usage = /cpu/percent --warning 80 --critical 90 --aggregate avg
%HOSTNAME%|Disk C = /disk/logical/C:|/used_percent --warning 80 --critical 90
%HOSTNAME%|Swap Usage = /memory/swap --warning 60 --critical 80
%HOSTNAME%|Memory Usage = /memory/virtual --warning 80 --critical 90
%HOSTNAME%|Process Count = /processes --warning 300 --critical 400disk_e.cfg, in the same directory as nrdp.cfg:
Code: Select all
[passive checks]
%HOSTNAME%|Disk E = /disk/logical/E:|/used_percent --warning 80 --critical 90Code: Select all
[00928] 2018/08/21 09:41:29.415 starting logging at level ERROR
[00928] 2018/08/21 09:41:30.857 Python exception encountered:
[00928] 2018/08/21 09:41:30.857 Internal Message: failed to initialize instance properly
[00928] 2018/08/21 09:41:30.857 Type => <class 'ConfigParser.MissingSectionHeaderError'>
[00928] 2018/08/21 09:41:30.857 Value => File contains no section headers.
file: C:\Program Files (x86)\Nagios\NCPA\etc\ncpa.cfg.d\disk_e.cfg, line: 1
'\xef\xbb\xbf[passive checks]\n'
[00928] 2018/08/21 09:41:30.857 Traceback (most recent call last):
[00928] 2018/08/21 09:41:30.857 File "C:\ncpa\agent\ncpa_windows.py", line 286, in Initialize
[00928] 2018/08/21 09:41:30.857 File "C:\ncpa\agent\ncpa_windows.py", line 64, in parse_config
[00928] 2018/08/21 09:41:30.857 File "C:\Python27\lib\ConfigParser.py", line 305, in read
[00928] 2018/08/21 09:41:30.857 File "C:\Python27\lib\ConfigParser.py", line 512, in _read
[00928] 2018/08/21 09:41:30.857 MissingSectionHeaderError: File contains no section headers.
file: C:\Program Files (x86)\Nagios\NCPA\etc\ncpa.cfg.d\disk_e.cfg, line: 1
'\xef\xbb\xbf[passive checks]\n'
[17968] 2018/08/21 09:41:30.859 ending loggingThanks.